From 72aaf455d0db68e97ad37e2cb92944782f919887 Mon Sep 17 00:00:00 2001 From: John DAmore Date: Wed, 31 Jul 2024 10:36:14 -0400 Subject: [PATCH] FHIR-45602 adding expanded results status valueset --- input/fsh/aliases.fsh | 1 + ...rvationResultsLaboratoryPathologyUvIps.fsh | 7 ++++--- .../ObservationResultsRadiologyUvIps.fsh | 8 ++++---- input/fsh/valuesets/ResultsStatusUvIps.fsh | 19 +++++++++++++++++++ input/ignoreWarnings.txt | 3 +++ 5 files changed, 31 insertions(+), 7 deletions(-) create mode 100644 input/fsh/valuesets/ResultsStatusUvIps.fsh diff --git a/input/fsh/aliases.fsh b/input/fsh/aliases.fsh index d8b7c3f9..73089149 100644 --- a/input/fsh/aliases.fsh +++ b/input/fsh/aliases.fsh @@ -18,6 +18,7 @@ Alias: $observation-category = http://terminology.hl7.org/CodeSystem/observation Alias: $v3-ObservationInterpretation = http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation 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: $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/ObservationResultsLaboratoryPathologyUvIps.fsh b/input/fsh/profiles/ObservationResultsLaboratoryPathologyUvIps.fsh index a615a8a9..f594a712 100644 --- a/input/fsh/profiles/ObservationResultsLaboratoryPathologyUvIps.fsh +++ b/input/fsh/profiles/ObservationResultsLaboratoryPathologyUvIps.fsh @@ -17,9 +17,10 @@ This observation may represent the result of a simple laboratory test such as he * . ^definition = "This observation may represent the result of a simple laboratory or pathology test such as hematocrit, or it may group the set of results produced by a multi-test study or panel such as a complete blood count, a dynamic function test, or a urine specimen study. In the latter case, the observation carries the overall conclusion of the study and references the atomic results of the study as \"has-member\" child observations" * . ^comment = "Represents either a lab simple observation or the group of observations produced by a laboratory study." * obeys ips-2 and ips-3 -* status = #final (exactly) -* status ^extension[0].url = "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint" -* status ^extension[=].valueString = "default: final" +* status from ResultsStatusUvIps (required) +* status ^label = "Completed or Replaced Status Codes" +* status ^binding.extension[0].url = "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" +* status ^binding.extension[=].valueString = "ObservationStatus" * category only CodeableConceptIPS * category ^slicing.discriminator.type = #pattern * category ^slicing.discriminator.path = "$this" diff --git a/input/fsh/profiles/ObservationResultsRadiologyUvIps.fsh b/input/fsh/profiles/ObservationResultsRadiologyUvIps.fsh index fa310c0d..0a0ad165 100644 --- a/input/fsh/profiles/ObservationResultsRadiologyUvIps.fsh +++ b/input/fsh/profiles/ObservationResultsRadiologyUvIps.fsh @@ -18,10 +18,10 @@ It allows also providing details about the related study using the partOf elemen * ^jurisdiction = $m49.htm#001 * obeys hasMemberOrComponent * partOf only Reference(ImagingStudyUvIps) -* status = #final (exactly) -* status ^extension.url = "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint" -* status ^extension.valueString = "default: final" -* status ^definition = "The status of the result value. Only final results feed patient summaries." +* status from ResultsStatusUvIps (required) +* status ^label = "Completed or Replaced Status Codes" +* status ^binding.extension[0].url = "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" +* status ^binding.extension[=].valueString = "ObservationStatus" * category only CodeableConceptIPS * category ^slicing.discriminator.type = #pattern * category ^slicing.discriminator.path = "$this" diff --git a/input/fsh/valuesets/ResultsStatusUvIps.fsh b/input/fsh/valuesets/ResultsStatusUvIps.fsh new file mode 100644 index 00000000..9bd6d1a3 --- /dev/null +++ b/input/fsh/valuesets/ResultsStatusUvIps.fsh @@ -0,0 +1,19 @@ +ValueSet: ResultsStatusUvIps +Id: results-status-uv-ips +Title: "Results Status Codes - IPS" +Description: """ +IPS Status codes allowable for results. This value set includes a subset of completed or replaced codes from http://hl7.org/fhir/observation-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." +* $observation-status#final "Final" +* $observation-status#amended "Amended" +* $observation-status#corrected "Corrected" +* $observation-status#appended "Appended" diff --git a/input/ignoreWarnings.txt b/input/ignoreWarnings.txt index 0fea26ec..cf1b9764 100644 --- a/input/ignoreWarnings.txt +++ b/input/ignoreWarnings.txt @@ -14,6 +14,9 @@ INFORMATION: Immunization/75680: Immunization.vaccineCode.coding[2].system: A de # The EDQM codesystem has properties not known to FHIR publication tooling %No definition can be found for the system http://standardterms.edqm.eu, and the property% +# This code is forthcoming to the valueset and IPS would like to pre-adopt +WARNING: ValueSet/results-status-uv-ips: ValueSet.compose.include[0].concept[3]: The code 'appended' is not valid in the system http://hl7.org/fhir/observation-status (Unknown code 'appended' in the CodeSystem + # It is not possible to include examples on datatypes (oddly this error does not arise on other datatypes which lack examples) WARNING: StructureDefinition.where(url = 'http://hl7.org/fhir/uv/ips/StructureDefinition/Range-uv-ips'): The Implementation Guide contains no examples for this data type profile WARNING: StructureDefinition.where(url = 'http://hl7.org/fhir/uv/ips/StructureDefinition/SimpleQuantity-uv-ips'): The Implementation Guide contains no examples for this data type profile \ No newline at end of file