Id: |
ANCS01 |
Url: |
ANC.S.01 Contact schedule |
Version: |
0.3.0 |
Identifier: |
value: ANC.S.01
|
Name: |
ANCS01 |
Title: |
ANC.S.01 Contact schedule |
Status: |
active |
Experimental: |
false |
Type: |
system: http://terminology.hl7.org/CodeSystem/library-type
code: logic-library
|
Date: |
2024-09-10 13:23:00+0000 |
Publisher: |
World Health Organization (WHO) |
Description: |
Logic to support calculation of the contact schedule based on gestational age |
Jurisdiction: |
001 |
Related Artifacts: |
Dependencies
|
Parameters: |
Name | Type | Min | Max | In/Out |
encounter | string | 0 | 1 | In |
Patient | Patient | 0 | 1 | Out |
Estimated due date (EDD) based on last menstrual period (LMP) | dateTime | 0 | 1 | Out |
Gestational age (GA) based on LMP | Quantity | 0 | 1 | Out |
Estimated Date of Conception | dateTime | 0 | 1 | Out |
ANC First Contact Date | dateTime | 0 | 1 | Out |
ANC Second Contact Date | dateTime | 0 | 1 | Out |
ANC Third Contact Date | dateTime | 0 | 1 | Out |
ANC Fourth Contact Date | dateTime | 0 | 1 | Out |
ANC Fifth Contact Date | dateTime | 0 | 1 | Out |
ANC Sixth Contact Date | dateTime | 0 | 1 | Out |
ANC Seventh Contact Date | dateTime | 0 | 1 | Out |
ANC Eighth Contact Date | dateTime | 0 | 1 | Out |
ANC Anticipated Delivery Date | dateTime | 0 | 1 | Out |
|
Data Requirements: |
Type | Profile | MS | Code Filter |
Patient |
http://hl7.org/fhir/StructureDefinition/Patient |
|
|
Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;;; |
code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de14
|
Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;;; |
code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de22
|
|
Content: text/cql |
library ANCS01
using FHIR version '4.0.1'
include FHIRHelpers version '4.0.1'
include ANCConfig called Config
include ANCConcepts called Cx
include ANCDataElements called PatientData
include ANCContactDataElements called ContactData
context Patient
define "Estimated due date (EDD) based on last menstrual period (LMP)":
ContactData."Last menstrual period (LMP) date" + 280 days
define "Gestational age (GA) based on LMP":
(days between ContactData."Last menstrual period (LMP) date" and Today()) div 7 'd/wk'
define "Estimated Date of Conception":
ContactData."Expected date of delivery (EDD)" - 9 months - 7 days
define "ANC First Contact Date":
"Estimated Date of Conception" + 12 weeks
define "ANC Second Contact Date":
"Estimated Date of Conception" + 20 weeks
define "ANC Third Contact Date":
"Estimated Date of Conception" + 26 weeks
define "ANC Fourth Contact Date":
"Estimated Date of Conception" + 30 weeks
define "ANC Fifth Contact Date":
"Estimated Date of Conception" + 34 weeks
define "ANC Sixth Contact Date":
"Estimated Date of Conception" + 36 weeks
define "ANC Seventh Contact Date":
"Estimated Date of Conception" + 38 weeks
define "ANC Eighth Contact Date":
"Estimated Date of Conception" + 40 weeks
define "ANC Anticipated Delivery Date":
ContactData."Expected date of delivery (EDD)"
|
|
Content: application/elm+xml |
Encoded data (23532 characters)
|
|
Content: application/elm+json |
Encoded data (39524 characters)
|
|