WHO Clinical Care in Crisis Implementation Guide for Children - Local Development build (v0.1.0). See the Directory of published versions
: anthrobase - XML Representation
Raw xml | Download
<Library xmlns="http://hl7.org/fhir">
<id value="anthrobase"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml"><h2>Related Artifacts</h2><table class="grid"><tr><td>depends-on</td><td><code>http://fhir.org/guides/who/anc-cds/Library/FHIRHelpers</code></td></tr></table><h2>Contents</h2><p><code>text/cql</code></p><pre><code class="language-sql">library anthrobase version '1.0.4'
using FHIR version '4.0.1'
include FHIRHelpers version '4.0.1' called FHIRHelpers
// https://github.com/WorldHealthOrganization/anthro/blob/9f75f7ab10f371558fb103f701740a7b4fb37143/R/z-score-helper.R#L12
define function AgeToMini(y Decimal):
if y >= 182.0 then
(y - ((y - 182.0) mod 30.0) + 15.0) as Decimal
else if y >= 60.0 then
(y - ((y - 60.0) mod 7.0 ) + 3.0) as Decimal
else y
define function computeZScore(y Decimal, m Decimal, l Decimal, s Decimal):
if m != 0 then
(((y / m)^l - 1) / (s * l)) as Decimal
else null
define function computeReverseZScore(z Decimal,m Decimal,l Decimal,s Decimal):
if l != 0 then
(m * (z*s*l+1)^(1/l)) as Decimal
else null
</code></pre></div>
</text>
<url
value="https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/anthrobase"/>
<version value="0.1.0"/>
<name value="anthrobase"/>
<title value="anthrobase"/>
<status value="active"/>
<type>
<coding>
<system value="http://hl7.org/fhir/ValueSet/library-type"/>
<code value="logic-library"/>
</coding>
</type>
<date value="2023-10-04T12:32:21+00:00"/>
<publisher value="WHO"/>
<contact>
<name value="WHO"/>
<telecom>
<system value="url"/>
<value value="http://who.int"/>
</telecom>
</contact>
<relatedArtifact>
<type value="depends-on"/>
<resource value="http://fhir.org/guides/who/anc-cds/Library/FHIRHelpers"/>
</relatedArtifact>
<content id="ig-loader-anthrobase.cql">
<contentType value="text/cql"/>
<data
value="bGlicmFyeSBhbnRocm9iYXNlIHZlcnNpb24gJzEuMC40Jwp1c2luZyBGSElSIHZlcnNpb24gJzQuMC4xJwppbmNsdWRlIEZISVJIZWxwZXJzIHZlcnNpb24gJzQuMC4xJyBjYWxsZWQgRkhJUkhlbHBlcnMKCgoKCi8vIGh0dHBzOi8vZ2l0aHViLmNvbS9Xb3JsZEhlYWx0aE9yZ2FuaXphdGlvbi9hbnRocm8vYmxvYi85Zjc1ZjdhYjEwZjM3MTU1OGZiMTAzZjcwMTc0MGE3YjRmYjM3MTQzL1Ivei1zY29yZS1oZWxwZXIuUiNMMTIKCmRlZmluZSBmdW5jdGlvbiBBZ2VUb01pbmkoeSBEZWNpbWFsKToKICAgIGlmIHkgPj0gMTgyLjAgdGhlbgogICAgICAgICh5IC0gKCh5IC0gMTgyLjApIG1vZCAzMC4wKSArIDE1LjApIGFzIERlY2ltYWwKICAgIGVsc2UgaWYgeSA+PSA2MC4wIHRoZW4KICAgICAgICAoeSAtICgoeSAtIDYwLjApIG1vZCA3LjAgKSArIDMuMCkgYXMgRGVjaW1hbAogICAgZWxzZSB5ICAgICAgICAgIAoKCmRlZmluZSBmdW5jdGlvbiBjb21wdXRlWlNjb3JlKHkgRGVjaW1hbCwgbSBEZWNpbWFsLCBsIERlY2ltYWwsIHMgRGVjaW1hbCk6CiAgICBpZiBtICE9IDAgdGhlbiAKICAgICAgICAoKCh5IC8gbSlebCAtIDEpIC8gKHMgKiBsKSkgYXMgRGVjaW1hbAogICAgZWxzZSBudWxsCgpkZWZpbmUgZnVuY3Rpb24gY29tcHV0ZVJldmVyc2VaU2NvcmUoeiBEZWNpbWFsLG0gRGVjaW1hbCxsIERlY2ltYWwscyBEZWNpbWFsKToKICAgIGlmICBsICE9IDAgdGhlbiAKICAgICAgICAobSAqICh6KnMqbCsxKV4oMS9sKSkgYXMgRGVjaW1hbAogICAgZWxzZSBudWxsCg=="/>
</content>
</Library>