WHOCommon
type: Library
node role: treeRoot
id:
  v: WHOCommon
meta:
  profile:
    v: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablelibrary
    l: crmi-shareablelibrary
  profile:
    v: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary
    l: crmi-publishablelibrary
  profile:
    v: http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library
    l: cql-library
  profile:
    v: http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module
    l: cql-module
text:
  status:
    v: extensions
  div:
    v: Title: WHOCommon Id: WHOCommon Version: 0.2.0 Url: WHOCommon Status: draft Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2025-11-25 20:07:03+0000 Publisher: WHO Description: This library defines common terminologies and functions used throughout WHO SMART Guidelines content Related Artifacts: Dependencies Condition Clinical Status Codes Parameters: Name Type Min Max In/Out Patient Patient 0 1 Out Content: text/cql library WHOCommon#xD; #xD; using FHIR version '4.0.1'#xD; #xD; include FHIRHelpers version '4.0.1'#xD; #xD; codesystem "ConditionClinicalStatusCodes": 'http://terminology.hl7.org/CodeSystem/condition-clinical'#xD; #xD; // Condition Clinical Status Codes - Consider value sets for these#xD; code "active": 'active' from "ConditionClinicalStatusCodes"#xD; code "recurrence": 'recurrence' from "ConditionClinicalStatusCodes"#xD; code "relapse": 'relapse' from "ConditionClinicalStatusCodes"#xD; code "inactive": 'inactive' from "ConditionClinicalStatusCodes"#xD; code "remission": 'remission' from "ConditionClinicalStatusCodes"#xD; code "resolved": 'resolved' from "ConditionClinicalStatusCodes"#xD; #xD; context Patient#xD; #xD; define fluent function official(identifiers List<Identifier>):#xD; singleton from (identifiers I where I.use = 'official')#xD; #xD; define fluent function official(addresses List<Address>):#xD; singleton from (addresses A where A.use = 'official')#xD; #xD; define fluent function official(names List<HumanName>):#xD; singleton from (names N where N.use = 'official')#xD; #xD; define fluent function mobile(contactPoints List<ContactPoint>):#xD; singleton from (contactPoints P where P.use = 'mobile')#xD; #xD; define fluent function only(allergies List<AllergyIntolerance>):#xD; singleton from allergies#xD; #xD; define fluent function only(appointments List<Appointment>):#xD; singleton from appointments#xD; #xD; define fluent function only(careplans List<CarePlan>):#xD; singleton from careplans#xD; #xD; d…
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability
    l: cqf-knowledgeCapability
  value: Code
    v: computable
url:
  v: http://smart.who.int/immunizations/Library/WHOCommon
  l: WHOCommon
version:
  v: 0.2.0
name:
  v: WHOCommon
title:
  v: WHOCommon
status:
  v: draft
experimental:
  v: false
type:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/library-type
      l: library-type
    code:
      v: logic-library
date:
  v: 2025-11-25T20:07:03+00:00
publisher:
  v: WHO
contact:
  name:
    v: WHO
  telecom:
    system:
      v: url
    value:
      v: http://who.int
description:
  v: This library defines common terminologies and functions used throughout WHO SMART Guidelines content
related artifact:
  type:
    v: depends-on
  display:
    v: Code System ConditionClinicalStatusCodes
  resource:
    v: http://terminology.hl7.org/CodeSystem/condition-clinical
    l: condition-clinical
parameter:
  name:
    v: Patient
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: Patient
content:
  content type:
    v: text/cql
content:
  content type:
    v: application/elm+xml