Hello everyone!
I am creating a .NET application using OpenEMR REST API.
I want to confirm that what I am doing is correct, because I cannot see any obervations in OpenEMR no matter what.
- First I create a patient:
{
“id”:“NisseX9”,
“title”:“Mr”,
“sex”:“Male”,
“fname”:“Nils”,
“mname”:"",
“lname”:“Larsson”,
“street”:“Tripp”,
“postal_code”:“12345”,
“city”:“Stockholm”,
“country_code”:“SE”,
“state”:"",
“phone_contact”:"+4670667788",
“email_contact":"test@test.com”,
“dob”:“1990-12-24”,
“race”:"",
“ethnicity”:""
}
I receive a number which I suppose is the internal ID for that patient.
- I then create an observation with the subject/reference as the identifier to map to the patient.
{
“resourceType”:“Observation”,
“id”:“heart-rate”,
“meta”:{
“profile”:[
“ttp://hl7.org/fhir/StructureDefinition/vitalsigns”
]
},
“text”:{
“status”:“generated”,
“div”:“Heart rate”
},
“status”:“final”,
“category”:[
{
“coding”:[
{
“system”:“ttp://terminology.hl7.org/CodeSystem/observation-category”,
“code”:“vital-signs”,
“display”:“Vital Signs”
}
],
“text”:“Vital Signs”
}
],
“code”:{
“coding”:[
{
“system”:“ttp://loinc.org”,
“code”:“8867-4”,
“display”:“Heart rate”
}
],
“text”:“Heart rate”
},
“subject”:{
“reference”:“Patient/NisseX9”,
“type”:“Patient”,
“display”:“NisseX9”
},
“display”:“123”,
“valueString”:“123”,
“effectiveDateTime”:“1999-07-02”,
“valueQuantity”:{
“value”:“123”,
“unit”:“beats/minute”,
“system”:“ttp://unitsofmeasure.org”,
“code”:"/min"
}
}
Should these be connected now with this approach?
I cannot see the observation in OpenEMR.
BTW, I removed all ‘h’ in http because as a new member I cannot post something with more than 2 links…
Thanks in advance!