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

DoD for OBX Segment for outbound OML #521

Merged
merged 9 commits into from
Sep 19, 2023
50 changes: 40 additions & 10 deletions ig/input/fsh/nbs-obx-segment.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,32 @@ Logical: OBXSegment
Id: segment-obx-logical-model
Title: "OBX Segment"
Description: "The OBX Segment"
* setOBXId 1..1 SU string "OBX-1 (1) Birthweight an identifier"
* valueType 1..1 SU string "OBX-2 A Value Type"
* observationIdentifier 1..1 SU string "OBX-3 Observation Identifier"
* observationSubID 1..1 SU string "OBX-4 (LOINC 54089-8) Observation Sub-ID"
* observationValue 1..1 SU string "OBX-5 (LOINC or 99MDH) Observation Value"
* units 1..1 SU string "OBX-6 Unit For Observation Value"
* observationResultStatus 1..1 SU string "OBX-11 Observation Result Status"
* dateTimeOfTheObservation 1..1 SU string "OBX-14 Date/time Of Observation"
* observationType 1..1 SU string "OBX-29 Observation Type"
* observationSubType 1..1 SU string "OBX-30 Observation Sub-type"
* setOBXId 1..1 string "OBX-1 (1) Birthweight an identifier"
tjohnson7021 marked this conversation as resolved.
Show resolved Hide resolved
* valueType 0..1 id "OBX-2 A Value Type"
tjohnson7021 marked this conversation as resolved.
Show resolved Hide resolved
* observationIdentifier 1..1 code "OBX-3 Observation Identifier"
* identifier 1..1 string "OBX-3.1 Identifier"
* observationtText 1..1 string "OBX-3.2 Text"
* observationNameOfCodingSystem 1..1 id "OBX-3.3 Name of Coding System"
* observationSubID 1..1 string "OBX-4 (LOINC 54089-8) Observation Sub-ID"
* observationValue 1..1 string "OBX-5 (LOINC or 99MDH) Observation Value"
* observationValueUnits 1..1 code "OBX-6 Units (Observation Value)"
* obxValueUnitsIdentifier 1..1 code "OBX-6.1 (Unit) Identifier"
* obxValueUnitsText 1..1 code "OBX-6.2 (Unit) Text"
* obxValueUnitsNameOfCodingSystem 1..1 code "OBX-6.3 (Unit) Name of Coding System"
* observationReferenceRange 1..1 string "OBX-7 Observation Reference Range"
tjohnson7021 marked this conversation as resolved.
Show resolved Hide resolved
* observationAbnormalFlags 1..1 code "OBX-8 Observation Abnormal Flags"
* observationResultStatus 1..1 id "OBX-11 Observation Result Status"
* dateTimeOfTheObservation 1..1 dateTime "OBX-14 Date/Time Of Observation"
* observationProducersId 1..1 code "OBX-15 Producer's Id"
* obxProducersIdIdentifier 1..1 string "OBX-15.1 Producer's Id Identifier"
* obxProducersIdText 1..1 string "OBX-15.2 Producer's Id Text"
* obxProducersIdNameOfCodingSystem 1..1 id "OBX-15.3 Producer's Id Name of Coding System"
* obxResponsibleObserver 1..1 id "OBX-16 Responsible Observer"
* observationMethod 1..1 code "OBX-17 Responsible Observer"
* analysisDateTime 1..1 dateTime "OBX-19 Analysis Date/Time"
* performingOrganizationName 1..1 code "OBX-23 Performing Organization Name"
* performingOrganizationAddress 1..1 code "OBX-24 Performing Organization Address"
* performingOrgMedDirector 1..1 code "OBX-25 Performing Organization Medical Director"
// other optional


Expand All @@ -28,3 +44,17 @@ Usage: #definition
* activity = http://terminology.hl7.org/CodeSystem/v3-DataOperation#CREATE
* agent[+].type = http://terminology.hl7.org/CodeSystem/provenance-participant-type#author
* agent[=].who.display = "T. R. Johnson"


Instance: segment-obx-logical-model-history-update
InstanceOf: Provenance
Title: "addition of converted OBX segment fields and data type correction"
Usage: #definition
* target[+] = Reference(StructureDefinition/segment-obx-logical-model)
* recorded = "2023-09-15T17:41:23.0000Z"
* occurredDateTime = "2023-09-15"
* reason = http://terminology.hl7.org/CodeSystem/v3-ActReason#METAMGT
* reason.text = "changed the sub-segments to the ones the system will initially support."
* activity = http://terminology.hl7.org/CodeSystem/v3-DataOperation#UPDATE
* agent[+].type = http://terminology.hl7.org/CodeSystem/provenance-participant-type#author
* agent[=].who.display = "T. Johnson"