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

: Z.Functions - JSON Representation

Active as of 2023-10-04

Raw json | Download


{
  "resourceType" : "Library",
  "id" : "zfunctions",
  "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><tr><td>depends-on</td><td><code>https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/weightforage</code></td></tr><tr><td>depends-on</td><td><a href=\"Library-anthrobase.html\">anthrobase</a></td></tr><tr><td>depends-on</td><td><code>https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/weightforlength</code></td></tr><tr><td>depends-on</td><td><code>https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/weightforheight</code></td></tr></table><h2>Parameters</h2><table class=\"grid\"><tr><td>dob</td><td>in</td><td/><td/><td>date</td></tr><tr><td>dob</td><td>in</td><td/><td/><td>date</td></tr><tr><td>sex</td><td>in</td><td/><td/><td>string</td></tr><tr><td>height</td><td>in</td><td/><td/><td>decimal</td></tr><tr><td>length</td><td>in</td><td/><td/><td>decimal</td></tr><tr><td>weight</td><td>in</td><td/><td/><td>decimal</td></tr><tr><td>zscore</td><td>in</td><td/><td/><td>decimal</td></tr><tr><td>WAZ</td><td>out</td><td/><td/><td>decimal</td></tr><tr><td>WLZ</td><td>out</td><td/><td/><td>decimal</td></tr><tr><td>WHZ</td><td>out</td><td/><td/><td>decimal</td></tr><tr><td>WA</td><td>out</td><td/><td/><td>decimal</td></tr><tr><td>WL</td><td>out</td><td/><td/><td>decimal</td></tr><tr><td>WH</td><td>out</td><td/><td/><td>decimal</td></tr></table><h2>Contents</h2><p><code>text/cql</code></p><pre><code class=\"language-sql\">/*\n@author: Patrick Delcroix\n@description: This library is part of the project EmCare\n*/\nlibrary zfunctions version '1.0.313+build.456'\nusing FHIR version '4.0.1'\ninclude FHIRHelpers version '4.0.1' called FHIRHelpers \ninclude WeightForAge version '1.0.4' called wfa\ninclude WeightForLength version '1.0.4' called wfl\ninclude WeightForHeight version '1.0.4' called wfh\n\nparameter &quot;sex&quot; String\nparameter &quot;dob&quot; Date\nparameter &quot;ageindays&quot; Date\nparameter &quot;height&quot; Decimal\nparameter &quot;length&quot; Decimal\nparameter &quot;weight&quot; Decimal\nparameter &quot;zscore&quot; Decimal\n\ncontext Patient\n\ndefine &quot;AgeInDays&quot;:\n    case\n        when Patient is not null then AgeInDays()\n        when  &quot;dob&quot; is not null then (difference in days between &quot;dob&quot; and Today())\n        else &quot;ageindays&quot;\n    end\n\ndefine &quot;Sex&quot;:\n    case\n        when Patient is not null then Patient.gender.value\n        else &quot;sex&quot;\n    end\n\ndefine &quot;WAZ&quot;:\n    wfa.generateZScoreWeightForAge(&quot;Sex&quot;, &quot;AgeInDays&quot; , &quot;weight&quot;)\n\ndefine &quot;WA&quot;:\n    wfa.generateWeightFromAge(&quot;Sex&quot;, &quot;AgeInDays&quot; , &quot;zscore&quot;) \n\ndefine &quot;WLZ&quot;:\n    wfl.generateZScoreWeightForLength(&quot;Sex&quot;, &quot;length&quot; , &quot;weight&quot;)\n\ndefine &quot;WL&quot;:\n    wfl.generateWeightFromLength(&quot;Sex&quot;, &quot;length&quot; , &quot;zscore&quot;)\n\ndefine &quot;WHZ&quot;:\n    wfh.generateZScoreWeightForHeight(&quot;Sex&quot;, &quot;height&quot; , &quot;weight&quot;)\n\ndefine &quot;WH&quot;:\n    wfh.generateWeightFromHeight(&quot;Sex&quot;, &quot;height&quot; , &quot;zscore&quot;)</code></pre></div>"
  },
  "url" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir//Library/zfunctions",
  "identifier" : [
    {
      "use" : "official",
      "value" : "Zfunctions"
    }
  ],
  "version" : "0.1.0",
  "name" : "zfunctions",
  "title" : "Z.Functions",
  "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"
    },
    {
      "type" : "depends-on",
      "resource" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/weightforage"
    },
    {
      "type" : "depends-on",
      "resource" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/anthrobase"
    },
    {
      "type" : "depends-on",
      "resource" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/weightforlength"
    },
    {
      "type" : "depends-on",
      "resource" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/weightforheight"
    }
  ],
  "parameter" : [
    {
      "name" : "dob",
      "use" : "in",
      "type" : "date"
    },
    {
      "name" : "dob",
      "use" : "in",
      "type" : "date"
    },
    {
      "name" : "sex",
      "use" : "in",
      "type" : "string"
    },
    {
      "name" : "height",
      "use" : "in",
      "type" : "decimal"
    },
    {
      "name" : "length",
      "use" : "in",
      "type" : "decimal"
    },
    {
      "name" : "weight",
      "use" : "in",
      "type" : "decimal"
    },
    {
      "name" : "zscore",
      "use" : "in",
      "type" : "decimal"
    },
    {
      "name" : "WAZ",
      "use" : "out",
      "type" : "decimal"
    },
    {
      "name" : "WLZ",
      "use" : "out",
      "type" : "decimal"
    },
    {
      "name" : "WHZ",
      "use" : "out",
      "type" : "decimal"
    },
    {
      "name" : "WA",
      "use" : "out",
      "type" : "decimal"
    },
    {
      "name" : "WL",
      "use" : "out",
      "type" : "decimal"
    },
    {
      "name" : "WH",
      "use" : "out",
      "type" : "decimal"
    }
  ],
  "content" : [
    {
      "id" : "ig-loader-zfunctions.cql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