Skip to content

Instantly share code, notes, and snippets.

@mks-d
Created July 5, 2021 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mks-d/c4ea368596085c94bb51cc6c2d257611 to your computer and use it in GitHub Desktop.
Save mks-d/c4ea368596085c94bb51cc6c2d257611 to your computer and use it in GitHub Desktop.
RIS Integration - RAD1 + RAD 2 FHIR Bundle
{
"resourceType":"Bundle",
"id":"8519fb54-ce84-4246-92a7-dfbc8901456d",
"meta":{
"lastUpdated":"2021-07-02T14:04:05.161+00:00"
},
"type":"searchset",
"total":1,
"link":[
{
"relation":"self",
"url":"http://openmrs:8080/openmrs/ws/fhir2/R4/ServiceRequest?_id=6b9f82d3-e867-4506-8461-9fb7f65a8869&_include=ServiceRequest%3Apatient&_include=ServiceRequest%3Arequester&_include=ServiceRequest%3Apatient"
}
],
"entry":[
{
"fullUrl":"http://openmrs:8080/openmrs/ws/fhir2/R4/ServiceRequest/6b9f82d3-e867-4506-8461-9fb7f65a8869",
"resource":{
"resourceType":"ServiceRequest",
"id":"6b9f82d3-e867-4506-8461-9fb7f65a8869",
"text":{
"status":"generated",
"div":"<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>6b9f82d3-e867-4506-8461-9fb7f65a8869</td></tr><tr><td>Status:</td><td>UNKNOWN</td></tr><tr><td>Intent:</td><td>ORDER</td></tr><tr><td>Code:</td><td> X-RAY Ultrasound Jel, 5L Stock on hand </td></tr><tr><td>Subject:</td><td><a href=\"http://localhost:8080/openmrs/ws/fhir2/R4/Patient/e8ccd2de-a238-420d-aebb-ec80d720cdab\">Johnson Lenald (Numéro Dossier: HCD-3000001)</a></td></tr><tr><td>Encounter:</td><td><a href=\"http://localhost:8080/openmrs/ws/fhir2/R4/Encounter/2715a1bf-37e0-4eef-ab7e-94319eb502b6\">Encounter/2715a1bf-37e0-4eef-ab7e-94319eb502b6</a></td></tr><tr><td>Occurrence:</td><td>2021-07-02 12:19:32.0 - 2021-07-02 13:19:32.0</td></tr><tr><td>Requester:</td><td><a href=\"http://localhost:8080/openmrs/ws/fhir2/R4/Practitioner/7ada9081-d7cf-11eb-992b-0242c0a8d006\">Super Man (Identifier: superman)</a></td></tr></tbody></table></div>"
},
"status":"unknown",
"intent":"order",
"code":{
"coding":[
{
"code":"e1a77dc7-c7d6-41d2-9c4e-93acc1093bcf",
"display":"X-RAY Ultrasound Jel, 5L Stock on hand"
}
]
},
"subject":{
"reference":"Patient/e8ccd2de-a238-420d-aebb-ec80d720cdab",
"type":"Patient",
"display":"Johnson Lenald (Numéro Dossier: HCD-3000001)"
},
"encounter":{
"reference":"Encounter/2715a1bf-37e0-4eef-ab7e-94319eb502b6",
"type":"Encounter"
},
"occurrencePeriod":{
"start":"2021-07-02T12:19:32+00:00",
"end":"2021-07-02T13:19:32+00:00"
},
"requester":{
"reference":"Practitioner/7ada9081-d7cf-11eb-992b-0242c0a8d006",
"type":"Practitioner",
"identifier":{
"value":"superman"
},
"display":"Super Man (Identifier: superman)"
}
}
},
{
"fullUrl":"http://openmrs:8080/openmrs/ws/fhir2/R4/Patient/e8ccd2de-a238-420d-aebb-ec80d720cdab",
"resource":{
"resourceType":"Patient",
"id":"e8ccd2de-a238-420d-aebb-ec80d720cdab",
"text":{
"status":"generated",
"div":"<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>e8ccd2de-a238-420d-aebb-ec80d720cdab</td></tr><tr><td>Identifier:</td><td><div>HCD-3000001</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Johnson <b>LENALD </b></td></tr><tr><td>Gender:</td><td>MALE</td></tr><tr><td>Birth Date:</td><td>30/06/2016</td></tr><tr><td>Deceased:</td><td>false</td></tr></tbody></table></div>"
},
"identifier":[
{
"id":"3b7952a9-07e2-4b84-be08-2d64b50ac56f",
"use":"official",
"type":{
"text":"Numéro Dossier"
},
"value":"HCD-3000001"
}
],
"active":true,
"name":[
{
"id":"cdf4d733-b97d-4dec-94f9-f15ca9481409",
"family":"Lenald",
"given":[
"Johnson"
]
}
],
"gender":"male",
"birthDate":"2016-06-30",
"deceasedBoolean":false
}
},
{
"fullUrl":"http://openmrs:8080/openmrs/ws/fhir2/R4/Practitioner/7ada9081-d7cf-11eb-992b-0242c0a8d006",
"resource":{
"resourceType":"Practitioner",
"id":"7ada9081-d7cf-11eb-992b-0242c0a8d006",
"text":{
"status":"generated",
"div":"<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>7ada9081-d7cf-11eb-992b-0242c0a8d006</td></tr><tr><td>Identifier:</td><td><div>superman</div></td></tr><tr><td>Name:</td><td> Super <b>MAN </b></td></tr><tr><td>Gender:</td><td>MALE</td></tr></tbody></table></div>"
},
"identifier":[
{
"system":"http://fhir.openmrs.org/ext/provider/identifier",
"value":"superman"
}
],
"active":false,
"name":[
{
"id":"7ad9ae40-d7cf-11eb-992b-0242c0a8d006",
"family":"Man",
"given":[
"Super"
]
}
],
"gender":"male"
}
},
{
"fullUrl":"http://openmrs:8080/openmrs/ws/fhir2/R4/Observation/de195e81-c748-44ab-837d-def00924fff4",
"resource":{
"resourceType":"Observation",
"id":"de195e81-c748-44ab-837d-def00924fff4",
"text":{
"status":"generated",
"div":"<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>de195e81-c748-44ab-837d-def00924fff4</td></tr><tr><td>Status:</td><td>FINAL</td></tr><tr><td>Code:</td><td> Weight </td></tr><tr><td>Subject:</td><td><a href=\"http://localhost:8080/openmrs/ws/fhir2/R4/Patient/e8ccd2de-a238-420d-aebb-ec80d720cdab\">Johnson Lenald (Numéro Dossier: HCD-3000001)</a></td></tr><tr><td>Encounter:</td><td><a href=\"http://localhost:8080/openmrs/ws/fhir2/R4/Encounter/cb28b5d1-a106-4d89-9f0a-aae4692304b6\">Encounter/cb28b5d1-a106-4d89-9f0a-aae4692304b6</a></td></tr><tr><td>Effective:</td><td> 02 July 2021 12:03:44 </td></tr><tr><td>Issued:</td><td>02/07/2021 12:03:44 PM</td></tr><tr><td>Value:</td><td>65.0 </td></tr></tbody></table></div>"
},
"status":"final",
"code":{
"coding":[
{
"code":"5089AAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"display":"Weight"
}
]
},
"subject":{
"reference":"Patient/e8ccd2de-a238-420d-aebb-ec80d720cdab",
"type":"Patient",
"display":"Johnson Lenald (Numéro Dossier: HCD-3000001)"
},
"encounter":{
"reference":"Encounter/cb28b5d1-a106-4d89-9f0a-aae4692304b6",
"type":"Encounter"
},
"effectiveDateTime":"2021-07-02T12:03:44+00:00",
"issued":"2021-07-02T12:03:44.000+00:00",
"valueQuantity":{
"value":65.0
}
}
},
{
"fullUrl":"http://openmrs:8080/openmrs/ws/fhir2/R4/Observation/b31bd628-af86-44f3-8837-2c750da9bdaf",
"resource":{
"resourceType":"Observation",
"id":"b31bd628-af86-44f3-8837-2c750da9bdaf",
"text":{
"status":"generated",
"div":"<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>b31bd628-af86-44f3-8837-2c750da9bdaf</td></tr><tr><td>Status:</td><td>FINAL</td></tr><tr><td>Code:</td><td> Height </td></tr><tr><td>Subject:</td><td><a href=\"http://localhost:8080/openmrs/ws/fhir2/R4/Patient/e8ccd2de-a238-420d-aebb-ec80d720cdab\">Johnson Lenald (Numéro Dossier: HCD-3000001)</a></td></tr><tr><td>Encounter:</td><td><a href=\"http://localhost:8080/openmrs/ws/fhir2/R4/Encounter/cb28b5d1-a106-4d89-9f0a-aae4692304b6\">Encounter/cb28b5d1-a106-4d89-9f0a-aae4692304b6</a></td></tr><tr><td>Effective:</td><td> 02 July 2021 12:03:44 </td></tr><tr><td>Issued:</td><td>02/07/2021 12:03:44 PM</td></tr><tr><td>Value:</td><td>160.0 </td></tr></tbody></table></div>"
},
"status":"final",
"code":{
"coding":[
{
"code":"5090AAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"display":"Height"
}
]
},
"subject":{
"reference":"Patient/e8ccd2de-a238-420d-aebb-ec80d720cdab",
"type":"Patient",
"display":"Johnson Lenald (Numéro Dossier: HCD-3000001)"
},
"encounter":{
"reference":"Encounter/cb28b5d1-a106-4d89-9f0a-aae4692304b6",
"type":"Encounter"
},
"effectiveDateTime":"2021-07-02T12:03:44+00:00",
"issued":"2021-07-02T12:03:44.000+00:00",
"valueQuantity":{
"value":160.0
}
}
},
{
"fullUrl":"http://openmrs:8080/openmrs/ws/fhir2/R4/AllergyIntolerance/ce8679ba-a39b-4ae1-84e7-e47e62a12cf0",
"resource":{
"resourceType":"AllergyIntolerance",
"id":"ce8679ba-a39b-4ae1-84e7-e47e62a12cf0",
"text":{
"status":"generated",
"div":"<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>ce8679ba-a39b-4ae1-84e7-e47e62a12cf0</td></tr><tr><td>Clinical Status:</td><td>Active</td></tr><tr><td>Verification Status:</td><td>Confirmed</td></tr><tr><td>Type:</td><td>ALLERGY</td></tr><tr><td>Category:</td><td> Enumeration[medication] </td></tr><tr><td>Code:</td><td> Aspirin </td></tr><tr><td>Patient:</td><td><a href=\"http://localhost:8080/openmrs/ws/fhir2/R4/Patient/e8ccd2de-a238-420d-aebb-ec80d720cdab\">Johnson Lenald (Numéro Dossier: HCD-3000001)</a></td></tr><tr><td>Recorded Date:</td><td>02/07/2021</td></tr><tr><td>Recorder:</td><td><a href=\"http://localhost:8080/openmrs/ws/fhir2/R4/Practitioner/3dc52bab-d7cf-11eb-992b-0242c0a8d006\">Super User</a></td></tr><tr><td>Note:</td><td><div/></td></tr><tr><td>Reaction:</td><td/></tr><tr><td>Substance:</td><td> Aspirin </td></tr></tbody></table></div>"
},
"clinicalStatus":{
"coding":[
{
"system":"http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",
"code":"active",
"display":"Active"
}
],
"text":"Active"
},
"verificationStatus":{
"coding":[
{
"system":"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",
"code":"confirmed",
"display":"Confirmed"
}
],
"text":"Confirmed"
},
"type":"allergy",
"category":[
"medication"
],
"code":{
"coding":[
{
"code":"09291895-fb7d-4989-9e31-723ab44856d2",
"display":"Aspirin"
}
]
},
"patient":{
"reference":"Patient/e8ccd2de-a238-420d-aebb-ec80d720cdab",
"type":"Patient",
"display":"Johnson Lenald (Numéro Dossier: HCD-3000001)"
},
"recordedDate":"2021-07-02T14:56:01+00:00",
"recorder":{
"reference":"Practitioner/3dc52bab-d7cf-11eb-992b-0242c0a8d006",
"type":"Practitioner",
"display":"Super User"
},
"reaction":[
{
"substance":{
"coding":[
{
"code":"09291895-fb7d-4989-9e31-723ab44856d2",
"display":"Aspirin"
}
]
}
}
]
}
},
{
"fullUrl":"http://openmrs:8080/openmrs/ws/fhir2/R4/AllergyIntolerance/407ff256-aa15-4dac-92c1-8173ba46232c",
"resource":{
"resourceType":"AllergyIntolerance",
"id":"407ff256-aa15-4dac-92c1-8173ba46232c",
"text":{
"status":"generated",
"div":"<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>407ff256-aa15-4dac-92c1-8173ba46232c</td></tr><tr><td>Clinical Status:</td><td>Active</td></tr><tr><td>Verification Status:</td><td>Confirmed</td></tr><tr><td>Type:</td><td>ALLERGY</td></tr><tr><td>Category:</td><td> Enumeration[medication] </td></tr><tr><td>Code:</td><td> Benzathine penicillin </td></tr><tr><td>Patient:</td><td><a href=\"http://localhost:8080/openmrs/ws/fhir2/R4/Patient/e8ccd2de-a238-420d-aebb-ec80d720cdab\">Johnson Lenald (Numéro Dossier: HCD-3000001)</a></td></tr><tr><td>Recorded Date:</td><td>02/07/2021</td></tr><tr><td>Recorder:</td><td><a href=\"http://localhost:8080/openmrs/ws/fhir2/R4/Practitioner/3dc52bab-d7cf-11eb-992b-0242c0a8d006\">Super User</a></td></tr><tr><td>Note:</td><td><div/></td></tr><tr><td>Reaction:</td><td/></tr><tr><td>Substance:</td><td> Benzathine penicillin </td></tr></tbody></table></div>"
},
"clinicalStatus":{
"coding":[
{
"system":"http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",
"code":"active",
"display":"Active"
}
],
"text":"Active"
},
"verificationStatus":{
"coding":[
{
"system":"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",
"code":"confirmed",
"display":"Confirmed"
}
],
"text":"Confirmed"
},
"type":"allergy",
"category":[
"medication"
],
"code":{
"coding":[
{
"code":"407ff256-aa15-4dac-92c1-8173ba46232c",
"display":"Benzathine penicillin"
}
]
},
"patient":{
"reference":"Patient/e8ccd2de-a238-420d-aebb-ec80d720cdab",
"type":"Patient",
"display":"Johnson Lenald (Numéro Dossier: HCD-3000001)"
},
"recordedDate":"2021-07-02T16:56:01+00:00",
"recorder":{
"reference":"Practitioner/3dc52bab-d7cf-11eb-992b-0242c0a8d006",
"type":"Practitioner",
"display":"Super User"
},
"reaction":[
{
"substance":{
"coding":[
{
"code":"407ff256-aa15-4dac-92c1-8173ba46232c",
"display":"Benzathine penicillin"
}
]
}
}
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment