Website changes

This commit is contained in:
jamesagnew 2014-03-07 17:31:05 -05:00
parent ff28a821d4
commit df46f25e7e
15 changed files with 354 additions and 12 deletions

View File

@ -1,8 +1,21 @@
* Implement JSON parser and encoder
* Implement strategy for narrative generation
* Fix XML encoder to not encode empty elements
* Implement JSON parser and encoder- I'm thinking probably just using GSON
and writing the encode() part from scratch. For the parse() part, the
ParserState class from the XML parser should be able to be shared with
the Json parser, which will make it a lot easier to implement..?
* Implement strategy for narrative generation- I'm thinking maybe
an interface that turns a given resource into an HTML representation
and then a default implementation for our basic types (Patient, Observation)
and maybe a way to configure this in the FhirContext so that the parser
can take advantage?
* Add SimpleSetters for all primitive datatypes
* Implement and add Simple Getters in a similar way to simple setters
* Add support for modifierExtensions
*
* Add client and server support for other operations from
the list here (we currently support read, vread, and search
but there are many more): http://latest.fhir.me/http.html

View File

@ -1,4 +1,5 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
@ -30,7 +31,8 @@
<version>4.2.0</version>
</dependency>
<!-- <dependency> <groupId>org.codehaus.woodstox</groupId> <artifactId>stax2-api</artifactId> <version>3.1.3</version> </dependency> -->
<!-- <dependency> <groupId>org.codehaus.woodstox</groupId> <artifactId>stax2-api</artifactId>
<version>3.1.3</version> </dependency> -->
<!-- General -->
<dependency>
@ -44,9 +46,9 @@
<version>1.9</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.4</version>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.4</version>
</dependency>
<!-- Logging -->
@ -69,9 +71,9 @@
<version>4.3.3</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.3.2</version>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.3.2</version>
</dependency>
<!-- Server -->
@ -142,6 +144,55 @@
</dependency>
</dependencies>
<reporting>
<plugins>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.3</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.16</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<configuration>
</configuration>
<reportSets>
<reportSet>
<id>default</id>
<reports>
<report>javadoc</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>2.3</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.7</version>
<reportSets>
<reportSet>
<reports>
<report>project-team</report>
<report>issue-tracking</report>
<report>license</report>
<report>scm</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
<build>
<plugins>
</plugins>

View File

@ -0,0 +1,96 @@
Hacking HAPI
This page explains all of the steps neccesary to work with the actual source
code for HAPI. This might be done for example to fix bugs, add features, or
learn how HAPI works internally.
As of version 0.6, HAPI uses the {{{./http://maven.apache.org}Maven}} build system to build
it's source code. Generating the source takes the following steps.
* Getting the Source
The first step to building HAPI is obtaining the source code. HAPI uses CVS
as its {{{./source-repository.html}source-code repository}}.
Note that the correct subdirectory to check out from the repository is now
called "hapi-mvn". There is an outdated directory called "hapi" which
is kept only for reference.
If you are using Eclipse to check the project out, the project may show errors
when you first check it out. These will be resolved by running through the build
using Maven.
* Understanding the Project Structure
HAPI is now broken up into several subprojects:
*--------------------+------+
hapi-base | This is the core of the HAPI library. It contains things such as parsers, transport, validation, etc. If you are making changes to HAPI itself, this is probably where you want to start.
*--------------------+------+
hapi-sourcegen | This project is used to generate message libraries. It is only used at build time.
*--------------------+------+
hapi-structures-vXX | These projects contain the libraries used to generate and process individual messages for a specific version of HL7. They are generated using the proprietary HL7 database provided by HL7.org, and so are usually not modified by end users of the HAPI library.
*--------------------+------+
hapi-examples | This project provides several annotated examples of how to use HAPI.
*--------------------+------+
hapi-test | This project contains unit tests for the HAPI library
*--------------------+------+
* Install the build tools
Download the latest version of {{{http://maven.apache.org}Maven}}. The download page also
has instructions for installing Maven correctly.
* Building HAPI
Building a HAPI base JAR is as simple as typing:
+----------------+
mvn install
+----------------+
At the end of this build, you should have a compiled JAR in the following
subdirectory:
+----------------+
[workspace]/hapi-mvn/hapi-base/target/hapi-base-VERSION.jar
+----------------+
* Set up Eclipse
Once Maven has been run for the first time, you will need to define an Eclipse classpath variable
pointing to your local maven repository.
* First, find your local Maven repository. It will be a directory called ".m2/repository" in your home directory. So, for a user named "james", it would be in the following location, depending on OS:
*--------------------+------+
Windows XP | C:\Documents and Settings\James\.m2\repository
*--------------------+------+
Windows Vista | C:\Users\James\.m2\repository
*--------------------+------+
Linux | /home/james/.m2/repository
*--------------------+------+
* Next, in Eclipse, open the Preferences dialogue (in the Window menu).
* Navigate to the following section: Java -> Build Path -> Classpath Variables
* Click on "New"
** For "Name", enter "M2_REPO"
** For "Path", enter the path to the local repo. eg: "C:\Users\James\.m2\repository"
* Tips and tricks
To skip running the unit tests, execute the following:
+----------------+
mvn -Dmaven.test.skip -P CORE install
+----------------+

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,87 @@
#bodyColumn {
margin-left: 180px !important;
}
#breadcrumbs {
background: white;
padding: 0px;
border-bottom-width: 1px;
border-bottom-color: #C0C0C0;
border-bottom-style: solid;
}
#navcolumn {
background-color: white !important;
}
#leftColumn {
border: none !important;
width: 180px !important;
margin: 0px;
}
#navcolumn h5 {
color: #806020;
background-color: #FFF0C0;
border-bottom: 1px solid #E3701A;
}
#navcolumn li.expanded {
background: url("") !important;
}
.nobr {
white-space: nowrap;
}
.section {
padding: 0px;
}
.section h2 {
border-bottom-width: 2px;
border-bottom-style: solid;
border-bottom-color: #CF4711;
background-color: #FF5721;
color: #FFA;
}
.section h3 {
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #993300;
width: 66%;
background-image: url('images/littlehapiface.png');
background-repeat: no-repeat;
padding-left: 25px;
}
h1,h2,h3,h4,h5 {
color: #E3701A;
font-weight: bold;
}
h4 {
padding: 0px;
margin-bottom: -15px;
}
li.expanded ul {
border-left: 2px solid #C0FFC0;
margin: 0px 0px 4px 0px !important;
}
li.expanded ul li {
padding-left: 2px !important;
}
dfn {
color: #008000;
background-color: #E0FFE0;
border-bottom: 1px dotted #40A040;
}
a,a.externalLink,a:active,a:hover,a:link,a:visited {
color: #993300;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<project xmlns="urn:site" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:site http://maven.apache.org/xsd/decoration-1.1.0.xsd" name="HAPI">
<bannerLeft>
<name>HAPI</name>
<src>images/hapi_fhir_banner.png</src>
<href>http://hl7api.sourceforge.net/</href>
</bannerLeft>
<poweredBy>
<logo name="Hosted on SourceForge.net" href="https://sourceforge.net/projects/hl7api/" img="http://sflogo.sourceforge.net/sflogo.php?group_id=38899&amp;type=2" />
<logo name="Built with Maven 2" href="http://maven.apache.org" img="images/logos/maven-feather.png" />
</poweredBy>
<version position="left" />
<body>
<links>
<item name="Sourceforge Project Page" href="https://sourceforge.net/projects/hl7api/" />
<item name="hl7.org" href="http://hl7.org/" />
<item name="University Health Network" href="http://www.uhn.ca/" />
</links>
<menu name="Welcome">
<item name="Introduction" href="index.html" />
</menu>
<menu name="Documentation">
<item name="JavaDocs" href="./apidocs/index.html"/>
</menu>
<menu name="Reports">
<item name="Developers" href="team-list.html" />
<item name="Unit Test Report" href="surefire-report.html" />
<item name="FindBugs" href="findbugs.html" />
<item name="License" href="license.html" />
<item name="JXR" href="./xref/index.html"/>
</menu>
<head>
<link rel="shortcut icon" href="http://hl7api.sourceforge.net/images/favicon.png" />
<link rel="stylesheet" type="text/css" href="hapi.css" />
</head>
</body>
<skin>
<groupId>com.googlecode.fluido-skin</groupId>
<artifactId>fluido-skin</artifactId>
<version>1.3</version>
</skin>
</project>

View File

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<document xmlns="http://maven.apache.org/XDOC/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd">
<properties>
<title>The Open Source HL7 API for Java</title>
<author email="jamesagnew@users.sourceforge.net">James Agnew</author>
</properties>
<body>
<!-- The body of the document contains a number of sections -->
<section name="Welcome">
<p>
SOCIALPLUGINSHEREAPI
</p>
<p>
This is the homepage for the HAPI-FHIR library. This library is still
in experimental stage, so please tread with caution.
</p>
<subsection name="Getting HAPI-FHIR">
<p>
The easiest way to get started with HAPI-FHIR is to either download the
source code from our
<a href="https://sourceforge.net/p/hl7api/fhircode/ci/master/tree/">Git Repository</a>,
or to use Maven:
</p>
<source><![CDATA[<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-base</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>]]></source>
</subsection>
</section>
</body>
</document>