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

: anthrobase - TTL Representation

Active as of 2023-10-04

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:Library ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "anthrobase"] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<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'\nusing FHIR version '4.0.1'\ninclude FHIRHelpers version '4.0.1' called FHIRHelpers\n\n\n\n\n// https://github.com/WorldHealthOrganization/anthro/blob/9f75f7ab10f371558fb103f701740a7b4fb37143/R/z-score-helper.R#L12\n\ndefine function AgeToMini(y Decimal):\n    if y &gt;= 182.0 then\n        (y - ((y - 182.0) mod 30.0) + 15.0) as Decimal\n    else if y &gt;= 60.0 then\n        (y - ((y - 60.0) mod 7.0 ) + 3.0) as Decimal\n    else y          \n\n\ndefine function computeZScore(y Decimal, m Decimal, l Decimal, s Decimal):\n    if m != 0 then \n        (((y / m)^l - 1) / (s * l)) as Decimal\n    else null\n\ndefine function computeReverseZScore(z Decimal,m Decimal,l Decimal,s Decimal):\n    if  l != 0 then \n        (m * (z*s*l+1)^(1/l)) as Decimal\n    else null\n</code></pre></div>"
  ] ; # 
  fhir:url [ fhir:v "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/anthrobase"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "0.1.0"] ; # 
  fhir:name [ fhir:v "anthrobase"] ; # 
  fhir:title [ fhir:v "anthrobase"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:type [
    ( fhir:coding [
fhir:system [ fhir:v "http://hl7.org/fhir/ValueSet/library-type"^^xsd:anyURI ] ;
fhir:code [ fhir:v "logic-library" ]     ] )
  ] ; # 
  fhir:date [ fhir:v "2023-10-04T12:32:21+00:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "WHO"] ; # 
  fhir:contact ( [
fhir:name [ fhir:v "WHO" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "http://who.int" ]     ] )
  ] ) ; # 
  fhir:relatedArtifact ( [
fhir:type [ fhir:v "depends-on" ] ;
fhir:resource [
fhir:v "http://fhir.org/guides/who/anc-cds/Library/FHIRHelpers"^^xsd:anyURI ;
fhir:link <http://fhir.org/guides/who/anc-cds/Library/FHIRHelpers>     ]
  ] ) ; # 
  fhir:content ( [
fhir:id [ fhir:v "ig-loader-anthrobase.cql" ] ;
fhir:contentType [ fhir:v "text/cql" ] ;
fhir:data [ fhir:v "bGlicmFyeSBhbnRocm9iYXNlIHZlcnNpb24gJzEuMC40Jwp1c2luZyBGSElSIHZlcnNpb24gJzQuMC4xJwppbmNsdWRlIEZISVJIZWxwZXJzIHZlcnNpb24gJzQuMC4xJyBjYWxsZWQgRkhJUkhlbHBlcnMKCgoKCi8vIGh0dHBzOi8vZ2l0aHViLmNvbS9Xb3JsZEhlYWx0aE9yZ2FuaXphdGlvbi9hbnRocm8vYmxvYi85Zjc1ZjdhYjEwZjM3MTU1OGZiMTAzZjcwMTc0MGE3YjRmYjM3MTQzL1Ivei1zY29yZS1oZWxwZXIuUiNMMTIKCmRlZmluZSBmdW5jdGlvbiBBZ2VUb01pbmkoeSBEZWNpbWFsKToKICAgIGlmIHkgPj0gMTgyLjAgdGhlbgogICAgICAgICh5IC0gKCh5IC0gMTgyLjApIG1vZCAzMC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