Wiki Spaces

Documentation
Projects
Resources

Get Help from Others

Q&A: Ask OpenMRS
Discussion: OpenMRS Talk
Real-Time: IRC Chat | Slack

Projects

Page tree
Skip to end of metadata
Go to start of metadata

This is the API documentation  for the OpenMRS FHIR Module , Condition Resource. 

Condition Resource provides  records of detailed information about conditions, problems or diagnoses recognized by a clinician. For more information please refer http://hl7-fhir.github.io/condition.html

Shown below is an example of how an OpenMRS Obs objects would map to FHIR Condition resource.

The left side of the relationship indicates the OpenMRS Obs attribute, while the right indicated the FHIR Condition resource mapping.

Patient
String UUID :: Condition.myId
String accessionNumber :: not mapped
String comment ::  Condition.notes
ComplexData complexData :: -- not mapped --
Concept concept ::  Condition.code
Encounter encounter :: if person.isPatient Condition.encounter
Set<Obs> groupMembers:: not mapped
Location location :: not mapped
Date dateCreated :: Condition.dateAsserted
Date obsDatetime :: not mapped
Obs obsGroup:: not mapped
Integer obsId :: not mapped
Order order :: not mapped (at least for now)
Person person :: if person.isPatient Condition.patient
Integer personId :: not mapped
static long serialVersionUID :: not mapped
Concept valueCoded :: not mapped
ConceptName valueCodedName :: not mapped
String valueComplex :: not mapped
Date valueDatetime :: not mapped
Drug valueDrug :: not mapped
Integer valueGroupId :: not mapped
String valueModifier :: not mapped
Double valueNumeric :: not mapped
String valueText::  not mapped

Example FHIR Condition Resource

Shown below is a fleshed out FHIR Condition Resource.
FHIR Condition Resource

Available RESTful web services for the Condition Resource supported by the API

Read (GET Request)
URLDescription
/ws/fhir/Condition/{id}

Returns a FHIR Condition resource identified by a Condition UUID

Outcomes:

  • Returns a FHIR condition resource if the specified Condition exists
  • Returns an Operation Outcome resource with a 404 error message if the specified Condition does not exist
Search (GET Request)
URLDescription
/ws/fhir/Condition?_id={id}

Search condition by given id

Delete (DELETE Request)
URLDescription
/ws/fhir/Condition/{id}
Will delete a Condition with given id
PUT(Update Request)
URLDescription
/ws/fhir/Condition/{id} or
/ws/fhir/Condition/

Send condition resource in PUT request body for given URI specified with resource Id will update existing resource while request going

to URI which doesn't have a URI will create a resource.

POST (Post Request)
URLDescription
/ws/fhir/Condition
Create a Condition Resource for the given representation.
  • No labels