Stream: implementers
Topic: Validation AllergyIntolerance
daniel venton (Sep 25 2019 at 13:29):
Using -jar .\org.hl7.fhir.validator.jar .\fhirbundle.xml -version 4.0
How can I get this validation error when I don’t have an verification status at all?
Error @ Bundle.entry[3].resource (line 578, col15) : AllergyIntolerance.clinicalStatus SHALL NOT be present if verificat
ion Status is entered-in-error [(verificationStatus != 'entered-in-error') or clinicalStatus.empty()]
<resource>
<AllergyIntolerance>
<id value="1.3.6.1.4.1.22812.53.9999907.521.4.10.2.101001" />
<text>
<status value="generated" />
<div xmlns="http://www.w3.org/1999/xhtml">
<table>
<colgroup>
<col width="40%" />
<col width="20%" />
<col width="40%" />
</colgroup>
<tr>
<th>Primary</th>
<th>Dates</th>
<th>Details</th>
</tr>
<tr>
<td>the item patient is Allergic too</td>
<td>Start: 1967/05/21<br />End: 25-Sep-2019 9:10</td>
<td>Active<br /></td>
</tr>
</table>
</div>
</text>
<clinicalStatus>
<coding>
<system value="http://snomed.info/sct" />
<code value="55561003" />
<display value="Active" />
</coding>
</clinicalStatus>
<type value="allergy" />
<category value="medication" />
<criticality value="high" />
<code>
<coding>
<system value="http://hl7.org/fhir/sid/ndc" />
<code value="71695-200" />
<display value="Softcide" />
</coding>
</code>
<patient>
<reference value="http://TransformTester.example.com/api/Patient/1.3.6.1.4.1.22812.53.9999907.521.987654" />
<display value="Ms Sally The Really Great Patient MD" />
</patient>
<onsetDateTime value="2009" />
<reaction>
<substance>
<coding>
<system value="http://snomed.info/sct" />
<code value="102452004" />
<display value="Abscess of thyroid (disorder)" />
</coding>
</substance>
<manifestation>
<coding>
<system value="http://snomed.info/sct" />
<code value="102452004" />
<display value="Abscess of thyroid (disorder)" />
</coding>
</manifestation>
<description value="Hives" />
<severity value="moderate" />
</reaction>
<reaction>
<substance>
<coding>
<system value="http://snomed.info/sct" />
<code value="285965005" />
<display value="Able to flush toilet (finding)" />
</coding>
</substance>
<manifestation>
<coding>
<system value="http://snomed.info/sct" />
<code value="285965005" />
<display value="Able to flush toilet (finding)" />
</coding>
</manifestation>
<description value="Speaking in Tongues" />
</reaction>
<reaction>
<substance>
<coding>
<system value="http://snomed.info/sct" />
<code value="95521008" />
<display value="Abnormal jaw movement (disorder)" />
</coding>
</substance>
<manifestation>
<coding>
<system value="http://snomed.info/sct" />
<code value="95521008" />
<display value="Abnormal jaw movement (disorder)" />
</coding>
</manifestation>
<description value="Turning Blue" />
<severity value="mild" />
</reaction>
</AllergyIntolerance>
</resource>
Lloyd McKenzie (Sep 27 2019 at 02:22):
The invariant was written incorrectly. @Grahame Grieve, is this already on the hit-list for the technical correction?
Grahame Grieve (Sep 27 2019 at 03:18):
What’s wrong with it?
Michelle (Moseman) Miller (Sep 27 2019 at 13:20):
Yes, the tracker(s) were on the list https://chat.fhir.org/#narrow/stream/179165-committers/topic/Technical.20Corrections. Specifically, we had trackers for both Condition and AllergyIntolerance:
Lloyd McKenzie (Sep 28 2019 at 01:52):
It should be verificationStatus.empty() or (verificationStatus != 'entered-in-error') or clinicalStatus.empty()
Last updated: Apr 12 2022 at 19:14 UTC