hl7.resource.AllergyIntolerance.yml Maven / Gradle / Ivy
#
# (C) Copyright IBM Corp. 2020, 2022
#
# SPDX-License-Identifier: Apache-2.0
#
---
resourceType: AllergyIntolerance
id:
type: STRING
valueOf: "GeneralUtils.generateResourceId()"
expressionType: JEXL
identifier:
valueOf: datatype/Identifier
generateList: true
expressionType: resource
vars:
system: SYSTEM_URL, $sys
value: BUILD_IDENTIFIER_FROM_CWE, AL1.3
constants:
sys: "urn:id:extID"
clinicalStatus:
valueOf: datatype/CodeableConcept_var
generateList: true
expressionType: resource
constants:
system: "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical"
code: "active"
display: "Active"
verificationStatus:
valueOf: datatype/CodeableConcept_var
generateList: true
expressionType: resource
constants:
system: "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification"
code: "confirmed"
display: "Confirmed"
category:
type: ALLERGY_INTOLERANCE_CATEGORY
generateList: true
valueOf: AL1.2
expressionType: HL7Spec
criticality:
type: ALLERGY_INTOLERANCE_CRITICALITY
valueOf: AL1.4
expressionType: HL7Spec
code:
valueOf: datatype/CodeableConcept
generateList: true
expressionType: resource
specs: AL1.3
onsetDateTime:
type: STRING
valueOf: "GeneralUtils.dateTimeWithZoneId(dateTimeIn,ZONEID)"
expressionType: JEXL
vars:
dateTimeIn: AL1.6
patient:
valueOf: datatype/Reference
expressionType: resource
specs: $Patient
reaction:
valueOf: secondary/Reaction
expressionType: resource
specs: AL1.5