Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cardinality Issues with Extension-DiagnosticReport.media.link #574

Merged
merged 32 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
c1f2f4d
Merge pull request #573 from NHSDigital/develop
ryma2fhir Nov 26, 2024
68e5a76
Cardinality Issues
KazeemHamzat Dec 5, 2024
bcd2869
Cardinality Issues with Extension-DiagnosticReport.media.link
KazeemHamzat Dec 9, 2024
e9cd1dd
Merge branch 'main' into Feature-IOPS-2979-Fixing-Breaking-Examples
KazeemHamzat Dec 9, 2024
2e162e6
Update Extension-UKCore-DiagnosticReportMediaLink.xml
KazeemHamzat Dec 10, 2024
227de2e
Update UKCore-DiagnosticReport.xml
KazeemHamzat Dec 10, 2024
9b2f011
Cardinality Issues with Extension-DiagnosticReport.media.link
KazeemHamzat Dec 10, 2024
122a13a
Update UKCore-DiagnosticReport.xml
KazeemHamzat Dec 10, 2024
182461f
Update UKCore-DiagnosticReport.xml
KazeemHamzat Dec 10, 2024
01b5651
Update UKCore-DiagnosticReport.xml
KazeemHamzat Dec 10, 2024
bda21cc
Update UKCore-DiagnosticReport.xml
KazeemHamzat Dec 10, 2024
2cbc145
Update UKCore-DiagnosticReport.xml
KazeemHamzat Dec 10, 2024
f66950b
Update UKCore-DiagnosticReport.xml
KazeemHamzat Dec 10, 2024
9c09a99
Update UKCore-DiagnosticReport.xml
KazeemHamzat Dec 10, 2024
487454a
Update UKCore-DiagnosticReport.xml
KazeemHamzat Dec 10, 2024
c6bdbfb
Update UKCore-DiagnosticReport.xml
KazeemHamzat Dec 10, 2024
c28e365
Update UKCore-DiagnosticReport.xml
KazeemHamzat Dec 10, 2024
74bae90
Update UKCore-DiagnosticReport.xml
KazeemHamzat Dec 10, 2024
149ce16
Update UKCore-DiagnosticReport.xml
KazeemHamzat Dec 10, 2024
cd9e111
Update UKCore-DiagnosticReport.xml
KazeemHamzat Dec 10, 2024
90cf5b4
Update UKCore-DiagnosticReport.xml
KazeemHamzat Dec 10, 2024
b035325
Update UKCore-DiagnosticReport.xml
KazeemHamzat Dec 10, 2024
011c904
Update UKCore-DiagnosticReport.xml
KazeemHamzat Dec 10, 2024
56f1e92
Update UKCore-DiagnosticReport.xml
KazeemHamzat Dec 10, 2024
a8195a3
Update UKCore-DiagnosticReport.xml
KazeemHamzat Dec 10, 2024
e3707cc
Update UKCore-DiagnosticReport.xml
KazeemHamzat Dec 12, 2024
b30aa21
Update UKCore-DiagnosticReport.xml
KazeemHamzat Dec 12, 2024
e25f032
Rename to extension-UKCore-DiagnosticReportMediia
KazeemHamzat Dec 12, 2024
3b691c0
Update UKCore-DiagnosticReport
KazeemHamzat Dec 12, 2024
cfce067
Update UKCore-DiagnosticReport.xml
KazeemHamzat Dec 16, 2024
7d3c28c
added description and short display to elements
ryma2fhir Dec 16, 2024
15333e9
Update Extension-UKCore-DiagnosticReportMedia.xml
KazeemHamzat Dec 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 16 additions & 48 deletions structuredefinitions/Extension-UKCore-DiagnosticReportMediaLink.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="Extension-UKCore-DiagnosticReportMediaLink" />
<url value="http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.media.link" />
<version value="0.0.1" />
<version value="0.0.2" />
<name value="ExtensionUKCoreDiagnosticReportMediaLink" />
<title value="Extension UK Core Diagnostic Report Media Link" />
<status value="draft" />
<date value="2024-06-07" />
<date value="2024-12-05" />
<publisher value="HL7 UK" />
<contact>
<name value="HL7 UK" />
Expand All @@ -17,9 +17,12 @@
<rank value="1" />
</telecom>
</contact>
<description value="An extension to replicate the changes within R5 to support adding a reference to image or data source(DocumentReference)." />
<purpose value="This is a Genomics use case to support the backporting of R5 functionality to support adding a reference to image or data source(DocumentReference)." />
<copyright value="Copyright © 2021+ HL7 UK Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. HL7® FHIR® standard Copyright © 2011+ HL7 The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at https://www.hl7.org/fhir/license.html." />
<description
value="An extension to replicate the changes within R5 to support adding a reference to image or data source(DocumentReference)." />
<purpose
value="This is a Genomics use case to support the backporting of R5 functionality to support adding a reference to image or data source(DocumentReference)." />
<copyright
value="Copyright © 2021+ HL7 UK Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. HL7® FHIR® standard Copyright © 2011+ HL7 The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at https://www.hl7.org/fhir/license.html." />
<fhirVersion value="4.0.1" />
<mapping>
<identity value="rim" />
Expand All @@ -30,60 +33,25 @@
<abstract value="false" />
<context>
<type value="element" />
<expression value="DiagnosticReport" />
<expression value="DiagnosticReport.media" />
</context>
<type value="Extension" />
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
<derivation value="constraint" />
<differential>
<element id="Extension">
<path value="Extension" />
<short value="Reference to a DocumentReference resource." />
<min value="1" />
</element>
<element id="Extension.extension">
<path value="Extension.extension" />
<min value="1" />
</element>
<element id="Extension.extension:comment">
<path value="Extension.extension" />
<sliceName value="comment" />
</element>
<element id="Extension.extension:comment.url">
<path value="Extension.extension.url" />
<fixedUri value="comment" />
</element>
<element id="Extension.extension:comment.value[x]">
<path value="Extension.extension.value[x]" />
<min value="1" />
<type>
<code value="string" />
</type>
</element>
<element id="Extension.extension:link">
<path value="Extension.extension" />
<sliceName value="link" />
<min value="1" />
</element>
<element id="Extension.extension:link.url">
<path value="Extension.extension.url" />
<fixedUri value="link" />
<element id="Extension.url">
<path value="Extension.url" />
<fixedUri
value="http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.media.link" />
</element>
<element id="Extension.extension:link.value[x]">
<path value="Extension.extension.value[x]" />
<element id="Extension.value[x]">
<path value="Extension.value[x]" />
<min value="1" />
<type>
<code value="Reference" />
<targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-DocumentReference" />
</type>
</element>
<element id="Extension.url">
<path value="Extension.url" />
<fixedUri value="http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.media.link" />
</element>
<element id="Extension.value[x]">
<path value="Extension.value[x]" />
<max value="0" />
<isSummary value="true" />
</element>
</differential>
</StructureDefinition>
41 changes: 21 additions & 20 deletions structuredefinitions/UKCore-DiagnosticReport.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="UKCore-DiagnosticReport" />
<url value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-DiagnosticReport" />
<version value="2.5.0" />
<version value="2.6.0" />
<name value="UKCoreDiagnosticReport" />
<title value="UK Core Diagnostic Report" />
<status value="active" />
<date value="2024-06-07" />
<date value="2024-12-05" />
<publisher value="HL7 UK" />
<contact>
<name value="HL7 UK" />
Expand Down Expand Up @@ -43,24 +43,6 @@
<short value="Reference to a Composition resource." />
<definition value="Reference to a Composition resource instance that provides structure for organizing the contents of the DiagnosticReport." />
</element>
<element id="DiagnosticReport.extension:mediaR5">
<path value="DiagnosticReport.extension" />
<sliceName value="mediaR5" />
<type>
<code value="Extension" />
<profile value="http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.media.link" />
</type>
<isModifier value="false" />
</element>
<element id="DiagnosticReport.extension:mediaR5.extension">
<path value="DiagnosticReport.extension.extension" />
<min value="1" />
</element>
<element id="DiagnosticReport.extension:mediaR5.extension:link">
<path value="DiagnosticReport.extension.extension" />
<sliceName value="link" />
<min value="1" />
</element>
<element id="DiagnosticReport.extension:noteR5">
<path value="DiagnosticReport.extension" />
<sliceName value="noteR5" />
Expand Down Expand Up @@ -149,6 +131,25 @@
<short value="Observations that are part of this diagnostic report." />
<mustSupport value="true" />
</element>
<element id="DiagnosticReport.media">
<path value="DiagnosticReport.media" />
<constraint>
<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" />
KazeemHamzat marked this conversation as resolved.
Show resolved Hide resolved
</constraint>
</element>
<element id="DiagnosticReport.media.extension:mediaLinkR5">
<path value="DiagnosticReport.media.extension" />
<sliceName value="mediaLinkR5" />
<type>
<code value="Extension" />
<profile value="http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.media.link" />
</type>
<isModifier value="false" />
</element>
<element id="DiagnosticReport.conclusionCode">
<path value="DiagnosticReport.conclusionCode" />
<binding>
Expand Down
Loading