You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ig-src/input/fsh/api/MhdDocumentReference.liquid.fsh
+27-30Lines changed: 27 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -6,34 +6,8 @@ Description: """
6
6
Profile for DocumentReference resources used in the EEHRxF context, based on the IHE MHD Minimal DocumentReference profile. This profile is used for the DocumentReference resources that represent imaging reports in the EEHRxF context. It includes additional constraints and extensions specific to imaging reports, such as the type of report, the clinical specialty, the anatomical region of interest and the profile of the imaging report.
7
7
"""
8
8
{{R }}* insert SetFmmAndStatusRule( 1, draft )
9
-
{{R }}* insert MhdDocumentReference
10
9
11
-
// content profile representation
12
-
{{R4}}* content 1..1
13
-
{{R4}} * extension contains http://hl7.org/fhir/5.0/StructureDefinition/extension-DocumentReference.content.profile named profile 1..*
14
-
{{R4}} * extension[profile]
15
-
{{R4}} *^short = "Contains the profile of the referred report"
16
-
// TODO fix this! we had to comment it out as it did not run
Title: "EEHRxF MHD DocumentReference Profile for unstructured imaging reports"
29
-
Description: """
30
-
Profile for DocumentReference resources used in the EEHRxF context, based on the IHE MHD Minimal DocumentReference profile. This profile is used for the DocumentReference resources that represent imaging reports in the EEHRxF context. It includes additional constraints and extensions specific to imaging reports, such as the type of report, the clinical specialty, and the anatomical region of interest. It is intended for unstructured reports needed to support legacy reports, where the content is provided as an attachment without a specific structure or format.
31
-
"""
32
-
* insert SetFmmAndStatusRule( 1, draft )
33
-
* insert MhdDocumentReference
34
10
35
-
36
-
RuleSet: MhdDocumentReference
37
11
// practice setting
38
12
{{R4}}* context.practiceSetting ^short = "Clinical specialty (e.g., radiology, laboratory) - SHOULD be used for lab vs imaging differentiation"
39
13
{{R5}}* practiceSetting ^short = "Clinical specialty (e.g., radiology, laboratory) - SHOULD be used for lab vs imaging differentiation"
@@ -58,14 +32,13 @@ RuleSet: MhdDocumentReference
58
32
*^definition = "Defines the document type, it is recommended to take this from the suggested LOINC set. It should correspond with the value on DiagnosticReport.code."
59
33
* coding
60
34
* insert SliceElement( #value, $this )
61
-
* coding contains imaging-report 1..1 and imaging-report-type 0..*
35
+
* coding contains imaging-report 1..1
62
36
* coding[imaging-report] = $loinc#85430-7
63
-
* coding[imaging-report-type] from ImagingReportTypesEuVSEuImaging (preferred)
37
+
//* coding[imaging-report-type] from ImagingReportTypesEuVSEuImaging (preferred)
64
38
65
39
* custodian only Reference(OrganizationEu)
66
40
*^short = "Organization that manages the Imaging Report"
67
41
68
-
69
42
// bodysite
70
43
{{R5}}* bodySite
71
44
// {{R5}}* bodySite only CodeableReferenceAnatomicalRegion
@@ -84,4 +57,28 @@ RuleSet: MhdDocumentReference
84
57
{{R4}} *^definition = "This field may be used to provide additional information about the anatomical region of interest for the imaging manifest."
85
58
86
59
// modality
87
-
{{R4}}* extension contains $CrossVersion-R5-DocumentReference.modality-for-R4 named modality 1..1
60
+
{{R4}}* extension contains $CrossVersion-R5-DocumentReference.modality-for-R4 named modality 1..1
61
+
62
+
// content profile representation. Defining a custom extension as the CV spanshot 2 fails. TBD replace with CV snapshot 3 when available.
63
+
// {{R4}}* content 1..1
64
+
// {{R4}} * extension contains http://hl7.org/fhir/5.0/StructureDefinition/extension-DocumentReference.content.profile named profile 1..*
65
+
// {{R4}} * extension[profile]
66
+
// {{R4}} * ^short = "Contains the profile of the referred report"
67
+
{{R4}}* content 1..1
68
+
{{R4}} * extension contains ImDocumentReferenceContentProfile named profile 1..*
69
+
{{R4}} * extension[profile] ^short = "Contains the profile of the referred report"
70
+
71
+
{{R5}}* content 1..1
72
+
{{R5}} * profile 1..*
73
+
{{R5}} * insert SliceElement( #value, value )
74
+
{{R5}} * profile contains bundle-report 0..1 and bundle-report-minimal-metadata 0..1
{{R5}}* study[study-resource] only Reference(ImagingStudyEuImaging)
71
+
{{R5}}* study[study-resource].reference 1..1
72
+
{{R5}}* study[study-resource].identifier 0..0
73
+
{{R5}}* study[study-identifier].reference 0..0
74
+
{{R5}}* study[study-identifier].identifier 1..1
75
+
{{R5}}* study[study-identifier].identifier only StudyInstanceUidIdentifierEuImaging
76
+
77
+
78
+
{{R5}}* composition 0..0
79
+
{{R5}}* composition ^short = "Composition is not allowed in this minimal metadata profile. If composition is present, use the DiagnosticReportEuImaging profile instead."
80
+
81
+
RuleSet: DiagnosticReportEuImagingCommonRules
11
82
* extension contains $artifact-version-url named artifactVersion 0..1
12
83
* extension contains AnatomicalRegionExtension named anatomical-region 0..*
13
84
* extension[anatomical-region] ^short = "The anatomical regions covered by the study this report reports on."
@@ -29,11 +100,7 @@ The regions SHALL overlap with the bodysite references from `ImagingStudy.serie.
29
100
*^short = "Status of the Report"
30
101
*^comment = "DiagnosticReport.status and Composition.status shall be aligned"
31
102
32
-
// reference to the order that has the Accession Number and including the Accession Number as identifier
*^definition = "Defines the category of the report, Diagnostic imaging report."
48
119
49
120
* subject only Reference($EuPatient)
50
121
@@ -73,7 +144,7 @@ The regions SHALL overlap with the bodysite references from `ImagingStudy.serie.
73
144
* resultsInterpreter 0..*
74
145
* insert SliceElementWithDescription( #profile, [[resolve()]], [[Primary interpreter of results]] )
75
146
* resultsInterpreter contains author 0..*
76
-
* resultsInterpreter[author] only Reference($EuPractitionerRole)
147
+
* resultsInterpreter[author] only Reference($EuPractitioner or $EuPractitionerRole)
77
148
78
149
* result 0..* MS
79
150
* result only Reference(ObservationFindingEuImaging)
@@ -93,17 +164,6 @@ using standardized anatomic, pathologic, and radiologic terminology whenever pos
93
164
{{R5}}* study ^definition = "Study subject to this report. Note: Any associated study (e.g. comparison studies) used during reporting should be tracked in the associatedStudy extension."
94
165
95
166
96
-
97
-
// refer to the mandatory composition
98
-
{{R4}}* extension contains http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.composition named composition 1..1
0 commit comments