From 0ac03b9277e82bf5fc05987e251654dc8bcc6df8 Mon Sep 17 00:00:00 2001 From: John DAmore Date: Mon, 25 Nov 2024 13:48:33 -0500 Subject: [PATCH] FHIR-48336 relazing status codes in Results resources --- input/fsh/aliases.fsh | 2 ++ input/fsh/profiles/DiagnosticReportUvIps.fsh | 5 ++- input/fsh/profiles/ImagingStudyUvIps.fsh | 4 +++ ...rvationResultsLaboratoryPathologyUvIps.fsh | 2 +- .../valuesets/DiagnosticReportStatusUvIps.fsh | 33 +++++++++++++++++++ .../fsh/valuesets/ImagingStudyStatusUvIps.fsh | 23 +++++++++++++ input/fsh/valuesets/ResultsStatusUvIps.fsh | 12 +++++-- 7 files changed, 77 insertions(+), 4 deletions(-) create mode 100644 input/fsh/valuesets/DiagnosticReportStatusUvIps.fsh create mode 100644 input/fsh/valuesets/ImagingStudyStatusUvIps.fsh diff --git a/input/fsh/aliases.fsh b/input/fsh/aliases.fsh index 73089149..88dae542 100644 --- a/input/fsh/aliases.fsh +++ b/input/fsh/aliases.fsh @@ -19,6 +19,8 @@ Alias: $v3-ObservationInterpretation = http://terminology.hl7.org/CodeSystem/v3- Alias: $referencerange-meaning = http://terminology.hl7.org/CodeSystem/referencerange-meaning Alias: $condition-ver-status = http://terminology.hl7.org/CodeSystem/condition-ver-status Alias: $observation-status = http://hl7.org/fhir/observation-status +Alias: $diagnostic-report-status = http://hl7.org/fhir/diagnostic-report-status +Alias: $imaging-study-status = http://hl7.org/fhir/imagingstudy-status Alias: $icd-10 = http://hl7.org/fhir/sid/icd-10 Alias: $icd-o-3 = http://terminology.hl7.org/CodeSystem/icd-o-3 Alias: $organization-type = http://terminology.hl7.org/CodeSystem/organization-type diff --git a/input/fsh/profiles/DiagnosticReportUvIps.fsh b/input/fsh/profiles/DiagnosticReportUvIps.fsh index 3a334d13..ba5c2f0e 100644 --- a/input/fsh/profiles/DiagnosticReportUvIps.fsh +++ b/input/fsh/profiles/DiagnosticReportUvIps.fsh @@ -12,7 +12,10 @@ Description: "This profile constrains the DiagnosticReport resource to represent * ^contact.telecom.value = "http://www.hl7.org/Special/committees/patientcare" * ^jurisdiction = $m49.htm#001 * ^purpose = "This profile constrains the DiagnosticReport resource to use the specific IPS profiles for observations and coded data types." -* status = #final (exactly) +* status from DiagnosticReportStatusUvIps (required) +* status ^label = "Observation status codes except 'entered-in-error'" +* status ^binding.extension[0].url = "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" +* status ^binding.extension[=].valueString = "ObservationStatus" * category 1..1 MS * category only CodeableConceptIPS * code only CodeableConceptIPS diff --git a/input/fsh/profiles/ImagingStudyUvIps.fsh b/input/fsh/profiles/ImagingStudyUvIps.fsh index dd206543..41542e97 100644 --- a/input/fsh/profiles/ImagingStudyUvIps.fsh +++ b/input/fsh/profiles/ImagingStudyUvIps.fsh @@ -12,6 +12,10 @@ Description: """This profile represents the constraints applied to the ImagingSt * ^contact.telecom.value = "http://www.hl7.org/Special/committees/patientcare" * ^jurisdiction = $m49.htm#001 * identifier MS +* status from ImagingStudyStatusUvIps (required) +* status ^label = "Imaging study status codes except 'entered-in-error'" +* status ^binding.extension[0].url = "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" +* status ^binding.extension[=].valueString = "ImagingStudyStatus" * subject only Reference(PatientUvIps) * subject MS * subject.reference 1.. MS diff --git a/input/fsh/profiles/ObservationResultsLaboratoryPathologyUvIps.fsh b/input/fsh/profiles/ObservationResultsLaboratoryPathologyUvIps.fsh index b07b4407..401a33e2 100644 --- a/input/fsh/profiles/ObservationResultsLaboratoryPathologyUvIps.fsh +++ b/input/fsh/profiles/ObservationResultsLaboratoryPathologyUvIps.fsh @@ -18,7 +18,7 @@ This observation may represent the result of a simple laboratory test such as he * . ^comment = "Represents either a lab simple observation or the group of observations produced by a laboratory study." * obeys ips-2 and ips-3 * status from ResultsStatusUvIps (required) -* status ^label = "Observation 'complete' status codes" +* status ^label = "Observation status codes except 'entered-in-error'" * status ^binding.extension[0].url = "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" * status ^binding.extension[=].valueString = "ObservationStatus" * category only CodeableConceptIPS diff --git a/input/fsh/valuesets/DiagnosticReportStatusUvIps.fsh b/input/fsh/valuesets/DiagnosticReportStatusUvIps.fsh new file mode 100644 index 00000000..0858c487 --- /dev/null +++ b/input/fsh/valuesets/DiagnosticReportStatusUvIps.fsh @@ -0,0 +1,33 @@ +ValueSet: DiagnosticReportStatusUvIps +Id: diagnostics-report-status-uv-ips +Title: "Diagnostics Report Status Codes - IPS" +Description: """ +IPS Diagnostic Report status codes allowable for diagnostics reports. This value set includes all status codes except \"entered-in-error\" from http://hl7.org/fhir/diagnostic-report-status. +""" +* ^meta.profile = "http://hl7.org/fhir/StructureDefinition/shareablevalueset" +* ^status = #active +* ^experimental = false +* ^publisher = "HL7 International / Patient Care" +* ^contact.telecom.system = #url +* ^contact.telecom.value = "http://www.hl7.org/Special/committees/patientcare" +* ^jurisdiction = $m49.htm#001 +* ^immutable = false +* ^copyright = "Produced by HL7 under the terms of HL7® Governance and Operations Manual relating to Intellectual Property (Section 16), specifically its copyright, trademark and patent provisions." +* include codes from system $diagnostic-report-status + where concept is-a #registered "Registered" +* include codes from system $diagnostic-report-status + where concept is-a #partial "Partial" +* include codes from system $diagnostic-report-status + where concept is-a #preliminary "Preliminary" +* include codes from system $diagnostic-report-status + where concept is-a #final "Final" +* include codes from system $diagnostic-report-status + where concept is-a #amended "Amended" +* include codes from system $diagnostic-report-status + where concept is-a #corrected "Corrected" +* include codes from system $diagnostic-report-status + where concept is-a #corrected "Appended" +* include codes from system $diagnostic-report-status + where concept is-a #cancelled "Cancelled" +* include codes from system $diagnostic-report-status + where concept is-a #unknown "Unknown" \ No newline at end of file diff --git a/input/fsh/valuesets/ImagingStudyStatusUvIps.fsh b/input/fsh/valuesets/ImagingStudyStatusUvIps.fsh new file mode 100644 index 00000000..5cab1871 --- /dev/null +++ b/input/fsh/valuesets/ImagingStudyStatusUvIps.fsh @@ -0,0 +1,23 @@ +ValueSet: ImagingStudyStatusUvIps +Id: imaging-study-status-uv-ips +Title: "Imaging Study Status Codes - IPS" +Description: """ +IPS Imaging Study status codes allowable for results. section This value set includes all imaging study status codes except \"entered-in-error\" from http://hl7.org/fhir/imagingstudy-status. +""" +* ^meta.profile = "http://hl7.org/fhir/StructureDefinition/shareablevalueset" +* ^status = #active +* ^experimental = false +* ^publisher = "HL7 International / Patient Care" +* ^contact.telecom.system = #url +* ^contact.telecom.value = "http://www.hl7.org/Special/committees/patientcare" +* ^jurisdiction = $m49.htm#001 +* ^immutable = false +* ^copyright = "Produced by HL7 under the terms of HL7® Governance and Operations Manual relating to Intellectual Property (Section 16), specifically its copyright, trademark and patent provisions." +* include codes from system $imaging-study-status + where concept is-a #registered "Registered" +* include codes from system $imaging-study-status + where concept is-a #available "Available" +* include codes from system $imaging-study-status + where concept is-a #cancelled "Cancelled" +* include codes from system $imaging-study-status + where concept is-a #unknown "Unknown" \ No newline at end of file diff --git a/input/fsh/valuesets/ResultsStatusUvIps.fsh b/input/fsh/valuesets/ResultsStatusUvIps.fsh index 43654373..15f451a4 100644 --- a/input/fsh/valuesets/ResultsStatusUvIps.fsh +++ b/input/fsh/valuesets/ResultsStatusUvIps.fsh @@ -2,7 +2,7 @@ ValueSet: ResultsStatusUvIps Id: results-status-uv-ips Title: "Results Status Codes - IPS" Description: """ -IPS Observation status codes allowable for results. This value set includes the subset of \"complete\" (results available, with no further actions needed or anticipated) status codes from http://hl7.org/fhir/observation-status. +IPS Observation status codes allowable for results. This value set includes all observation status codes except \"entered-in-error\" from http://hl7.org/fhir/observation-status. """ * ^meta.profile = "http://hl7.org/fhir/StructureDefinition/shareablevalueset" * ^status = #active @@ -13,9 +13,17 @@ IPS Observation status codes allowable for results. This value set includes the * ^jurisdiction = $m49.htm#001 * ^immutable = false * ^copyright = "Produced by HL7 under the terms of HL7® Governance and Operations Manual relating to Intellectual Property (Section 16), specifically its copyright, trademark and patent provisions." +* include codes from system $observation-status + where concept is-a #registered "Registered" +* include codes from system $observation-status + where concept is-a #preliminary "Preliminary" * include codes from system $observation-status where concept is-a #final "Final" * include codes from system $observation-status where concept is-a #amended "Amended" * include codes from system $observation-status - where concept is-a #corrected "Corrected" \ No newline at end of file + where concept is-a #corrected "Corrected" +* include codes from system $observation-status + where concept is-a #cancelled "Cancelled" +* include codes from system $observation-status + where concept is-a #unknown "Unknown" \ No newline at end of file