WHOCommon
type: Library
node role: treeRoot
id:
  v: WHOCommon
meta:
  profile:
    v: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablelibrary
    link: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablelibrary
  profile:
    v: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary
    link: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary
  profile:
    v: http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library
    link: http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library
  profile:
    v: http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module
    link: http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module
text:
  status:
    v: extensions
  div: Title: WHOCommon Id: WHOCommon Version: 0.2.0 Url: WHOCommon Status: draft Experimental: true Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2025-06-25 20:08:00+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 using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' codesystem "ConditionClinicalStatusCodes": 'http://terminology.hl7.org/CodeSystem/condition-clinical' // Condition Clinical Status Codes - Consider value sets for these code "active": 'active' from "ConditionClinicalStatusCodes" code "recurrence": 'recurrence' from "ConditionClinicalStatusCodes" code "relapse": 'relapse' from "ConditionClinicalStatusCodes" code "inactive": 'inactive' from "ConditionClinicalStatusCodes" code "remission": 'remission' from "ConditionClinicalStatusCodes" code "resolved": 'resolved' from "ConditionClinicalStatusCodes" context Patient define fluent function official(identifiers List<Identifier>): singleton from (identifiers I where I.use = 'official') define fluent function official(addresses List<Address>): singleton from (addresses A where A.use = 'official') define fluent function official(names List<HumanName>): singleton from (names N where N.use = 'official') define fluent function mobile(contactPoints List<ContactPoint>): singleton from (contactPoints P where P.use = 'mobile') define fluent function only(allergies List<AllergyIntolerance>): singleton from allergies define fluent function only(appointments List<Appointment>): singleton from appointments define fluent function only(careplans List<CarePlan>): singleton from careplans define fluent function only(conditions List<Condition>): singleton from conditions define fluent function only(encounters List<Encounter>): singleton f…
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability
  value: code
    v: computable
url:
  v: http://smart.who.int/immunizations/Library/WHOCommon
version:
  v: 0.2.0
name:
  v: WHOCommon
title:
  v: WHOCommon
status:
  v: draft
experimental:
  v: true
type:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/library-type
    code:
      v: logic-library
date:
  v: 2025-06-25T20:08:00+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
    link: http://terminology.hl7.org/CodeSystem/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