Stream: implementers
Topic: FHIR Server not accepting DiagnosticOrder
Max Nakamura (May 06 2016 at 23:35):
Hello @Grahame Grieve ,
I posted the attached DAF-Diagnostic-Order-Example.xml to http://fhir3.healthintersections.com.au/open, and receive the errors below.
I was able to successfully post this sample a couple of weeks ago.
Please advise on how to proceed.
<issue>
<severity value="information"/>
<code value="structure"/>
<details>
<text value="Unable to determine type of target resource"/>
</details>
<expression value="DiagnosticOrder.supportingInformation // line 0 col 0)"/>
</issue>
<issue>
<severity value="error"/>
<code value="invariant"/>
<details>
<text value="SHALL have a local reference if the resource is provided inline (url: fasting; ids: ) () reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"/>
</details>
<expression value="DiagnosticOrder.supportingInformation"/>
</issue>
<issue>
<severity value="information"/>
<code value="code-invalid"/>
<details>
<text value="None of the codes provided are in the value set http://hl7.org/fhir/ValueSet/diagnostic-requests (http://hl7.org/fhir/ValueSet/diagnostic-requests, and a code is recommended to come from this value set"/>
</details>
<expression value="DiagnosticOrder.item.code // line 0 col 0)"/>
</issue>
Thank you
Lloyd McKenzie (May 06 2016 at 23:49):
I don't see an attachment. Can you just post the "supportingInformation" element from your instance?
Max Nakamura (May 07 2016 at 00:06):
Hi Lloyd,
Sure thing.
<DiagnosticOrder xmlns="http://hl7.org/fhir">
<identifier>
<type>
<coding>
<system value="http://hl7.org/fhir/identifier-type"/>
<code value="PLAC"/>
</coding>
<text value="Placer"/>
</type>
<system value="http://hl7.org/fhir/StructureDefinition/daf-diagnosticOrder"/>
<value value="1"/>
</identifier>
<status value="received"/>
<priority value="routine"/>
<subject>
<reference value="http://fhir3.healthintersections.com.au/open/Patient/f8780165-de9a-4363-bf84-745731379b/_history/1"/>
<display value="Henry Jones"/>
</subject>
<encounter>
<reference value="Encounter/example"/>
</encounter>
<orderer>
<reference value="http://fhir3.healthintersections.com.au/open/Practitioner/f013f46b-a18c-4271-98f3-a6b58deafc/_history/1"/>
<display value="Adam Everyman, MD"/>
</orderer>
<reason>
<coding>
<system value="http://hl7.org/fhir/sid/icd-9"/>
<code value="V173"/>
<display value="Fam hx-ischem heart dis"/>
</coding>
</reason>
<supportingInformation>
<reference value="#fasting"/>
</supportingInformation>
<event>
<status value="requested"/>
<dateTime value="2016-05-02T16:16:00-07:00"/>
<actor>
<reference value="http://fhir3.healthintersections.com.au/open/Practitioner/f013f46b-a18c-4271-98f3-a6b58deafc/_history/1"/>
<display value="Adam Everyman, MD"/>
</actor>
</event>
<item>
<code>
<coding>
<system value="http://acme.org/tests"/>
<code value="LIPID"/>
</coding>
<text value="Lipid Panel"/>
</code>
<specimen>
<reference value="Specimen/101"/>
</specimen>
</item>
<note>
<text value="patient is afraid of needles"/>
</note>
</DiagnosticOrder>
I have also now attached the sample xml.
daf-diagnostic-order-example.xml
Lloyd McKenzie (May 07 2016 at 00:22):
Ok. So your reference refers to a contained resource with an id of "fasting", but no such contained resource is present
Lloyd McKenzie (May 07 2016 at 00:23):
Thus the warning saying the reference can't be resolved and the error saying you've got a local reference, but the thing being referenced doesn't exist.
Max Nakamura (May 07 2016 at 01:36):
Thank you Lloyd,
I will try to comment out that resource and repost.
Lloyd McKenzie (May 07 2016 at 01:48):
You'll need to either comment out the "supportingInformation" element or you'll need to add a contained resource that it points to or you'll need to change the reference to not be to a contained resource.
Max Nakamura (May 07 2016 at 12:31):
Hello @Lloyd McKenzie
Yes, thank you - that's exactly what I did - comment out the "supportingInformation" element, and the diagnostic order posted to the FHIR server without error.
Last updated: Apr 12 2022 at 19:14 UTC