hl7.secondary.Dosage.yml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hl7v2-fhir-converter Show documentation
Show all versions of hl7v2-fhir-converter Show documentation
FHIR converter is a Java based library that enables converting Hl7v2 messages to FHIR resources
# (C) Copyright IBM Corp. 2021, 2022
#
# SPDX-License-Identifier: Apache-2.0
#
---
maxDosePerPeriod_1: # gets max dose from RXO or RXE whichever is present
condition: $condition1 NOT_NULL
valueOf: datatype/Ratio
expressionType: resource
vars:
condition1: RXO.23 | RXE.19
numerator: RXO.23.1 | RXE.19.1
numunit: RXO.23.2 | RXE.19.2
denominator: $denomVal
denunit: $denomUnit
unitSystem: $unitSys
constants:
unitSys: "http://unitsofmeasure.org"
denomUnit: "day"
denomVal: "1"
text:
type: PATIENT_INSTRUCTION
expressionType: HL7Spec
specs: RXO.6 | RXE.21
patientInstruction:
type: PATIENT_INSTRUCTION
expressionType: HL7Spec
specs: RXO.7 | RXE.7
route:
valueOf: datatype/CodeableConcept
expressionType: resource
specs: RXO.5 | RXE.6
doseAndRate:
valueOf: secondary/DoseAndRate
expressionType: resource
generateList: true
specs: RXO | RXE