FHIR Chat · DiagnosticReport with no observation · implementers

Stream: implementers

Topic: DiagnosticReport with no observation


view this post on Zulip Ali Haider (Feb 27 2020 at 11:46):

Hi guys,
I am having trouble with Diagnostic Report. I have implemented Bundle resource for diagnostic report as per below url example
URL: https://www.hl7.org/fhir/diagnosticreport-example.json.html
I have included observation as well in this but somehow it is not working
Can anyone tell me what I should do further in this

Bundle Reosurce
{
"resourceType": "Bundle",
"id": "1011163",
"type": "collection",
"link": [
{
"relation": "self",
"url": "https://sandbox.myOrg.com/api/fhir/DiagnosticReport?patient=1011163"
}
],
"entry": [
{
"fullUrl": "https://sandbox.myOrg.com/api/fhir/DiagnosticReport/54446661111",
"resource": {
"resourceType": "DiagnosticReport",
"id": "54446661111",
"status": "final",
"category": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0074",
"code": "laboratory"
}
]
},
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "",
"display": "LIPID PANEL"
}
],
"text": "LIPID PANEL"
},
"subject": {
"reference": "https://sandbox.myOrg.com/api/fhir/Patient/1011163",
"display": "John, Doe"
},
"effectivePeriod": {
"start": "2015-06-20T00:00:00+05:00",
"end": "2015-07-20T00:00:00+05:00"
},
"issued": "2020-02-26T20:55:58.7584197+05:00",
"performer": {
"display": "WAYNE, BEST"
},
"result": [
{
"reference": "Observation/r5151"
}
],
"conclusion": ""
}
},
{
"fullUrl": "Observation/r5151",
"resource": {
"resourceType": "Observation",
"id": "r5151",
"status": "final",
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "",
"display": "Albumin, Serum"
}
],
"text": "Comp. Metabolic Panel 12"
},
"subject": {
"reference": "https://sandbox.myOrg.com/api/fhir/Patient/1011163",
"display": "John, Doe"
},
"performer": [
{
"display": "testing"
}
],
"valueQuantity": {
"value": 6.0,
"unit": "g/dL",
"system": "http://unitsofmeasure.org",
"code": "g/dL"
},
"referenceRange": [
{
"low": {
"value": 6.0,
"unit": "g/dL",
"system": "http://unitsofmeasure.org",
"code": "g/dL"
},
"high": {
"value": 8.5,
"unit": "g/dL",
"system": "http://unitsofmeasure.org",
"code": "g/dL"
},
"text": "Range Value Recommended: 6.0-8.5"
}
]
}
}
]
}

view this post on Zulip James Agnew (Feb 27 2020 at 12:58):

When you say it isn't working, what specifically are you trying to do and what is the result you are getting?

view this post on Zulip Ali Haider (Feb 27 2020 at 13:17):

James Agnew said:

When you say it isn't working, what specifically are you trying to do and what is the result you are getting?

I am sending data of bundle to Apple Health App and App is not accepting it as Lab Results. App sends this data to Unreadable Section.

view this post on Zulip Lloyd McKenzie (Feb 27 2020 at 15:32):

I don't think Apple Health supports collection Bundles (though I'm not an expert on that - @Pascal Pfiffner?). Also, your full URLs need to be full URLs, not relative URLs and collection Bundles shouldn't have 'self' links.

view this post on Zulip Ali Haider (Feb 27 2020 at 16:35):

@Lloyd McKenzie
what do you mean by Self links??? like links in references or Full URL's

view this post on Zulip Lloyd McKenzie (Feb 27 2020 at 16:48):

Near the top of your Bundle you have a 'link' property with relation of 'self' and a url that looks like it's a query. That shouldn't be there because the Bundle you've defined isn't a query response

view this post on Zulip Ali Haider (Feb 27 2020 at 16:50):

Got it. Thanks @Lloyd McKenzie
I am going to remove it from response. Is there anything else which shouldn't be there

view this post on Zulip Lloyd McKenzie (Feb 27 2020 at 16:51):

Only other thing I noticed on a cursory inspection is that the fullUrl for your Observation isn't actually a fullUrl.

view this post on Zulip Ali Haider (Feb 27 2020 at 16:54):

Okay, i'll look into this as well.

view this post on Zulip Pascal Pfiffner (Feb 27 2020 at 17:17):

Ali, please follow the Argonaut spec here: http://www.fhir.org/guides/argonaut/r2/StructureDefinition-argo-diagnosticreport.html

view this post on Zulip Pascal Pfiffner (Feb 27 2020 at 17:17):

For one, the category system URL needs to be http://hl7.org/fhir/DiagnosticReport-category. Then also make sure that the relative reference to the Observation is resolvable, meaning a read against that Observation will succeed.


Last updated: Apr 12 2022 at 19:14 UTC