WHO Clinical Care in Crisis Implementation Guide for Children
0.1.0 - ci-build

WHO Clinical Care in Crisis Implementation Guide for Children - Local Development build (v0.1.0). See the Directory of published versions

Library: CHE.B18-2.Signs.2.m.m

Official URL: https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/cheb182signs2mm Version: 0.1.0
Active as of 2023-10-04 Computable Name: cheb182signs2mm
Other Identifiers: id: che.b18-2.signs.2.m.m (use: OFFICIAL)

Related Artifacts

depends-onhttp://fhir.org/guides/who/anc-cds/Library/FHIRHelpers
depends-onhttps://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/chebase
depends-onchevalueset
depends-onB24Combined.DataElement
depends-onhttps://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/chezscore
depends-onhttps://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/weightforage
depends-onanthrobase
depends-onhttps://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/weightforlength
depends-onhttps://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/weightforheight
depends-oncheobservation

Parameters

AgeoutQuantity
Weight (kilograms)outQuantity
YI severe classification other than severe dehydrationoutboolean
Diarrhoeaoutboolean
Breastfedoutboolean
zwfaoutdecimal

Contents

text/cql

/*
@author: Patrick Delcroix
@description: This library is part of the project CHE
*/
library cheb182signs2mm version '1.0.313+build.456'
using FHIR version '4.0.1'
include FHIRHelpers version '4.0.1' called FHIRHelpers 
include chebase version '1.0.313+build.456' called Base
include chevalueset version '1.0.313+build.456' called val
include b24combineddataelement version '1.0.313+build.456' called C
include chezscore version '1.0.313+build.456' called Z
include cheobservation version '1.0.313+build.456' called obs




context Patient


/* 
OBSdefine.CHE.B6.DE06 : Weight (kilograms)

*/
define "OBSdefine.CHE.B6.DE06":
    Base.GetObsValue('CHE.B6.DE06')

/* 
OBSdefine.CHE.B11S1.DE01 : Diarrhoea

*/
define "OBSdefine.CHE.B11S1.DE01":
    Base.GetObsValue('CHE.B11S1.DE01')

/* 
OBSdefine.CHE.B21S1.DE06 : Breastfed

*/
define "OBSdefine.CHE.B21S1.DE06":
    Base.GetObsValue('CHE.B21S1.DE06')

/* 
Age : 
System.Quantity { value: AgeInDays()  , unit: 'days'}
*/
define "Age":
    System.Quantity { value: AgeInDays()  , unit: 'days'}

/* 
Weight (kilograms) : 
o"Weight (kilograms)"
*/
define "Weight (kilograms)":
    "OBSdefine.CHE.B6.DE06"

/* 
YI severe classification other than severe dehydration : 
C."YI Severe classification other than severe dehydration"
*/
define "YI severe classification other than severe dehydration":
    C."YI Severe classification other than severe dehydration"

/* 
Diarrhoea : 
o"Diarrhoea"
*/
define "Diarrhoea":
    "OBSdefine.CHE.B11S1.DE01"

/* 
Breastfed : 
o"Breastfed"
*/
define "Breastfed":
    "OBSdefine.CHE.B21S1.DE06"

/* 
zwfa : 
Z."WAZ"
*/
define "zwfa":
    Z."WAZ"

/* 
BackReference : 
back reference to resource
*/
define "BackReference":
    Reference {reference: string { value: 'Questionnaire/che.b18-2.signs.2.m.m'}}