Skip to content

Commit

Permalink
Update UKCore-DiagnosticReport.xml
Browse files Browse the repository at this point in the history
Modifying the constraint to target media.link and extension:mediaLinkR5
  • Loading branch information
KazeemHamzat committed Dec 10, 2024
1 parent 2e162e6 commit 227de2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions structuredefinitions/UKCore-DiagnosticReport.xml
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,9 @@
<key value="ukcore-diag-lab-002" />
<severity value="error" />
<human
value="Only one of DiagnosticReport.media.link or DiagnosticReport.media:mediaLinkR5 can be used at a time." />
<expression value="media.where(sliceName.exists()).count() = 0 or media.link.exists() = false" />
value="Only one of DiagnosticReport.media.link or DiagnosticReport.media.extension:mediaLinkR5 can be used at a time." />
<expression
value="link.exists() xor extension('http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.media.link').exist()" />
</constraint>
</element>
<element id="DiagnosticReport.media.extension:mediaLinkR5">
Expand Down

0 comments on commit 227de2e

Please sign in to comment.