gt-health / GT-FHIR

Georgia Tech FHIR Server Web Page
36 stars 28 forks source link

Direct business layer (gt-fhir-webapp) access #82

Closed charmoney closed 7 years ago

charmoney commented 9 years ago

Students will need to develop projects directly against the FHIR API layer. As helpful as the HAPI FHIR web interface is for exploring the FHIR API, the webapp alone will not be sufficient.

A CRUD READ of the Patient/33 record through the webapp works perfectly: http://polaris.i3l.gatech.edu:8080/gt-fhir-webapp/read?serverId=home&resource=Patient&id=33&pretty=

However, executing the precise Request stated by the webapp fails.

curl -X GET -A "HAPI-FHIR/1.1 (FHIR Client)" -H "Accept-Charset: utf-8" -H "Accept-Ecoding: gzip" "http://polaris.i3l.gatech.edu:8080/gt-fhir-webapp/base/Patient/33"
{
    "resourceType":"OperationOutcome",
    "text":{
        "status":"generated",
        "div":"<div><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">error</td><td>[]</td><td><pre></pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
    },
    "issue":[
        {
            "severity":"error"
        }
    ]
}

How are students supposed to directly access and interact with the FHIR API?