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 - JSON Representation

Active as of 2023-10-04

Raw json | Download


{
  "resourceType" : "Library",
  "id" : "anthrobase",
  "text" : {
    "status" : "generated",
    "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>"
  },
  "url" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/anthrobase",
  "version" : "0.1.0",
  "name" : "anthrobase",
  "title" : "anthrobase",
  "status" : "active",
  "type" : {
    "coding" : [
      {
        "system" : "http://hl7.org/fhir/ValueSet/library-type",
        "code" : "logic-library"
      }
    ]
  },
  "date" : "2023-10-04T12:32:21+00:00",
  "publisher" : "WHO",
  "contact" : [
    {
      "name" : "WHO",
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://who.int"
        }
      ]
    }
  ],
  "relatedArtifact" : [
    {
      "type" : "depends-on",
      "resource" : "http://fhir.org/guides/who/anc-cds/Library/FHIRHelpers"
    }
  ],
  "content" : [
    {
      "id" : "ig-loader-anthrobase.cql",
      "contentType" : "text/cql",
      "data" : "bGlicmFyeSBhbnRocm9iYXNlIHZlcnNpb24gJzEuMC40Jwp1c2luZyBGSElSIHZlcnNpb24gJzQuMC4xJwppbmNsdWRlIEZISVJIZWxwZXJzIHZlcnNpb24gJzQuMC4xJyBjYWxsZWQgRkhJUkhlbHBlcnMKCgoKCi8vIGh0dHBzOi8vZ2l0aHViLmNvbS9Xb3JsZEhlYWx0aE9yZ2FuaXphdGlvbi9hbnRocm8vYmxvYi85Zjc1ZjdhYjEwZjM3MTU1OGZiMTAzZjcwMTc0MGE3YjRmYjM3MTQzL1Ivei1zY29yZS1oZWxwZXIuUiNMMTIKCmRlZmluZSBmdW5jdGlvbiBBZ2VUb01pbmkoeSBEZWNpbWFsKToKICAgIGlmIHkgPj0gMTgyLjAgdGhlbgogICAgICAgICh5IC0gKCh5IC0gMTgyLjApIG1vZCAzMC4wKSArIDE1LjApIGFzIERlY2ltYWwKICAgIGVsc2UgaWYgeSA+PSA2MC4wIHRoZW4KICAgICAgICAoeSAtICgoeSAtIDYwLjApIG1vZCA3LjAgKSArIDMuMCkgYXMgRGVjaW1hbAogICAgZWxzZSB5ICAgICAgICAgIAoKCmRlZmluZSBmdW5jdGlvbiBjb21wdXRlWlNjb3JlKHkgRGVjaW1hbCwgbSBEZWNpbWFsLCBsIERlY2ltYWwsIHMgRGVjaW1hbCk6CiAgICBpZiBtICE9IDAgdGhlbiAKICAgICAgICAoKCh5IC8gbSlebCAtIDEpIC8gKHMgKiBsKSkgYXMgRGVjaW1hbAogICAgZWxzZSBudWxsCgpkZWZpbmUgZnVuY3Rpb24gY29tcHV0ZVJldmVyc2VaU2NvcmUoeiBEZWNpbWFsLG0gRGVjaW1hbCxsIERlY2ltYWwscyBEZWNpbWFsKToKICAgIGlmICBsICE9IDAgdGhlbiAKICAgICAgICAobSAqICh6KnMqbCsxKV4oMS9sKSkgYXMgRGVjaW1hbAogICAgZWxzZSBudWxsCg=="
    }
  ]
}