{
    "templateId": "IDCR - Vital Signs Encounter.v1",
    "version": "2.3",
    "defaultLanguage": "en",
    "languages": [
        "en"
    ],
    "tree": {
        "id": "vital_signs_observations",
        "name": "Vital Signs Observations",
        "localizedName": "Vital Signs Observations",
        "rmType": "COMPOSITION",
        "nodeId": "openEHR-EHR-COMPOSITION.encounter.v1",
        "min": 1,
        "max": 1,
        "localizedNames": {
            "en": "Vital Signs Observations"
        },
        "localizedDescriptions": {
            "en": "Interaction, contact or care event between a subject of care and healthcare provider(s)."
        },
        "children": [
            {
                "id": "category",
                "name": "category",
                "localizedName": "category",
                "rmType": "DV_CODED_TEXT",
                "min": 1,
                "max": 1,
                "aqlPath": "/category",
                "inputs": [
                    {
                        "suffix": "code",
                        "type": "CODED_TEXT",
                        "list": [
                            {
                                "value": "433",
                                "label": "event",
                                "localizedLabels": {
                                    "en": "event"
                                }
                            }
                        ],
                        "terminology": "openehr"
                    }
                ],
                "inContext": true
            },
            {
                "id": "context",
                "name": "context",
                "localizedName": "context",
                "rmType": "EVENT_CONTEXT",
                "min": 1,
                "max": 1,
                "aqlPath": "/context",
                "children": [
                    {
                        "id": "start_time",
                        "name": "start_time",
                        "rmType": "DV_DATE_TIME",
                        "min": 1,
                        "max": 1,
                        "aqlPath": "/context/start_time",
                        "inputs": [
                            {
                                "type": "DATETIME"
                            }
                        ],
                        "inContext": true
                    },
                    {
                        "id": "setting",
                        "name": "setting",
                        "rmType": "DV_CODED_TEXT",
                        "min": 1,
                        "max": 1,
                        "aqlPath": "/context/setting",
                        "inputs": [
                            {
                                "suffix": "code",
                                "type": "TEXT"
                            },
                            {
                                "suffix": "value",
                                "type": "TEXT"
                            }
                        ],
                        "inContext": true
                    }
                ]
            },
            {
                "id": "vital_signs",
                "name": "Vital signs",
                "localizedName": "Vital signs",
                "rmType": "SECTION",
                "nodeId": "openEHR-EHR-SECTION.vital_signs.v1",
                "min": 0,
                "max": 1,
                "localizedNames": {
                    "en": "Vital signs"
                },
                "localizedDescriptions": {
                    "en": "A group of observations that are recorded at the same time and record the blood pressure, pulse, temperature and other readings."
                },
                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]",
                "children": [
                    {
                        "id": "respirations",
                        "name": "Respirations",
                        "localizedName": "Respirations",
                        "rmType": "OBSERVATION",
                        "nodeId": "openEHR-EHR-OBSERVATION.respiration.v1",
                        "min": 0,
                        "max": 1,
                        "localizedNames": {
                            "en": "Respirations"
                        },
                        "localizedDescriptions": {
                            "en": "The observed characteristics of spontaneous breathing as would commonly be recorded as part of a 'vital signs' examination."
                        },
                        "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.respiration.v1]",
                        "children": [
                            {
                                "id": "rate",
                                "name": "Rate",
                                "localizedName": "Rate",
                                "rmType": "DV_QUANTITY",
                                "nodeId": "at0004",
                                "min": 0,
                                "max": 1,
                                "localizedNames": {
                                    "en": "Rate"
                                },
                                "localizedDescriptions": {
                                    "en": "Rate of respiration."
                                },
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.respiration.v1]/data[at0001]/events[at0002]/data[at0003]/items[at0004]/value",
                                "inputs": [
                                    {
                                        "suffix": "magnitude",
                                        "type": "DECIMAL",
                                        "validation": {
                                            "precision": {
                                                "min": 0,
                                                "minOp": ">=",
                                                "max": 0,
                                                "maxOp": "<="
                                            },
                                            "range": {
                                                "min": 0.0,
                                                "minOp": ">=",
                                                "max": 200.0,
                                                "maxOp": "<="
                                            }
                                        }
                                    },
                                    {
                                        "suffix": "unit",
                                        "type": "CODED_TEXT",
                                        "list": [
                                            {
                                                "value": "/min",
                                                "label": "/min",
                                                "validation": {
                                                    "precision": {
                                                        "min": 0,
                                                        "minOp": ">=",
                                                        "max": 0,
                                                        "maxOp": "<="
                                                    },
                                                    "range": {
                                                        "min": 0.0,
                                                        "minOp": ">=",
                                                        "max": 200.0,
                                                        "maxOp": "<="
                                                    }
                                                }
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "id": "inspired_oxygen",
                                "name": "Inspired oxygen",
                                "localizedName": "Inspired oxygen",
                                "rmType": "CLUSTER",
                                "nodeId": "openEHR-EHR-CLUSTER.ambient_oxygen.v0",
                                "min": 0,
                                "max": 1,
                                "localizedNames": {
                                    "en": "Inspired oxygen"
                                },
                                "localizedDescriptions": {
                                    "en": "The amount of oxygen being delivered, or to be delivered, to the patient."
                                },
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.respiration.v1]/data[at0001]/events[at0002]/state[at0022]/items[openEHR-EHR-CLUSTER.ambient_oxygen.v0]",
                                "children": [
                                    {
                                        "id": "percent_o2",
                                        "name": "Percent O2",
                                        "localizedName": "Percent O2",
                                        "rmType": "DV_PROPORTION",
                                        "nodeId": "at0053",
                                        "min": 0,
                                        "max": 1,
                                        "localizedNames": {
                                            "en": "Percent O2"
                                        },
                                        "localizedDescriptions": {
                                            "en": "Percentage of inspired oxygen."
                                        },
                                        "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.respiration.v1]/data[at0001]/events[at0002]/state[at0022]/items[openEHR-EHR-CLUSTER.ambient_oxygen.v0]/items[at0053]/value",
                                        "inputs": [
                                            {
                                                "suffix": "numerator",
                                                "type": "DECIMAL",
                                                "validation": {
                                                    "range": {
                                                        "min": 0.0,
                                                        "minOp": ">=",
                                                        "max": 100.0,
                                                        "maxOp": "<="
                                                    }
                                                },
                                                "defaultValue": 21
                                            },
                                            {
                                                "suffix": "denominator",
                                                "type": "DECIMAL",
                                                "validation": {
                                                    "range": {
                                                        "min": 100.0,
                                                        "minOp": ">=",
                                                        "max": 100.0,
                                                        "maxOp": "<="
                                                    }
                                                }
                                            }
                                        ],
                                        "annotations": {
                                            "comment": "For example: '24%'"
                                        },
                                        "proportionTypes": [
                                            "percent"
                                        ]
                                    },
                                    {
                                        "id": "on_air",
                                        "name": "On air",
                                        "localizedName": "On air",
                                        "rmType": "DV_BOOLEAN",
                                        "nodeId": "at0057",
                                        "min": 0,
                                        "max": 1,
                                        "localizedNames": {
                                            "en": "On air"
                                        },
                                        "localizedDescriptions": {
                                            "en": "The patient is receiving air, equivalent to 21% O2, 0.21 FiO2 and an oxygen flow rate  of 0."
                                        },
                                        "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.respiration.v1]/data[at0001]/events[at0002]/state[at0022]/items[openEHR-EHR-CLUSTER.ambient_oxygen.v0]/items[at0057]/value",
                                        "inputs": [
                                            {
                                                "type": "BOOLEAN",
                                                "defaultValue": "true"
                                            }
                                        ],
                                        "annotations": {
                                            "comment": "Where 'On air' is set to true, Oxygen flow rate, FiO2 and Percent O2 should not be recorded. Conversely 'On air'should omitted if Oxygen flow rate, FiO2 or Percent O2 are recorded."
                                        }
                                    }
                                ]
                            },
                            {
                                "id": "time",
                                "name": "time",
                                "rmType": "DV_DATE_TIME",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.respiration.v1]/data[at0001]/events[at0002]/time",
                                "inputs": [
                                    {
                                        "type": "DATETIME"
                                    }
                                ],
                                "inContext": true
                            },
                            {
                                "id": "subject",
                                "name": "subject",
                                "rmType": "PARTY_PROXY",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.respiration.v1]/subject",
                                "inputs": [
                                    {
                                        "suffix": "id",
                                        "type": "TEXT"
                                    },
                                    {
                                        "suffix": "id_scheme",
                                        "type": "TEXT"
                                    },
                                    {
                                        "suffix": "id_namespace",
                                        "type": "TEXT"
                                    },
                                    {
                                        "suffix": "name",
                                        "type": "TEXT"
                                    }
                                ],
                                "inContext": true
                            },
                            {
                                "id": "language",
                                "name": "language",
                                "rmType": "CODE_PHRASE",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.respiration.v1]/language",
                                "inContext": true
                            },
                            {
                                "id": "encoding",
                                "name": "encoding",
                                "rmType": "CODE_PHRASE",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.respiration.v1]/encoding",
                                "inContext": true
                            }
                        ]
                    },
                    {
                        "id": "pulse_heart_beat",
                        "name": "Pulse/Heart beat",
                        "localizedName": "Pulse/Heart beat",
                        "rmType": "OBSERVATION",
                        "nodeId": "openEHR-EHR-OBSERVATION.pulse.v1",
                        "min": 0,
                        "max": 1,
                        "localizedNames": {
                            "en": "Pulse/Heart beat"
                        },
                        "localizedDescriptions": {
                            "en": "Record details about the rate and associated attributes for a pulse or heart beat."
                        },
                        "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.pulse.v1]",
                        "children": [
                            {
                                "id": "heart_rate",
                                "name": "Heart Rate",
                                "localizedName": "Heart Rate",
                                "rmType": "DV_QUANTITY",
                                "nodeId": "at0004",
                                "min": 0,
                                "max": 1,
                                "localizedNames": {
                                    "en": "Heart Rate"
                                },
                                "localizedDescriptions": {
                                    "en": "The rate, measured in beats per minute."
                                },
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.pulse.v1]/data[at0002]/events[at0003]/data[at0001]/items[at0004 and name/value='Heart Rate']/value",
                                "inputs": [
                                    {
                                        "suffix": "magnitude",
                                        "type": "DECIMAL",
                                        "validation": {
                                            "precision": {
                                                "min": 0,
                                                "minOp": ">=",
                                                "max": 0,
                                                "maxOp": "<="
                                            },
                                            "range": {
                                                "min": 0.0,
                                                "minOp": ">="
                                            }
                                        }
                                    },
                                    {
                                        "suffix": "unit",
                                        "type": "CODED_TEXT",
                                        "list": [
                                            {
                                                "value": "/min",
                                                "label": "/min",
                                                "validation": {
                                                    "precision": {
                                                        "min": 0,
                                                        "minOp": ">=",
                                                        "max": 0,
                                                        "maxOp": "<="
                                                    },
                                                    "range": {
                                                        "min": 0.0,
                                                        "minOp": ">="
                                                    }
                                                }
                                            }
                                        ]
                                    }
                                ],
                                "annotations": {
                                    "comment": "Run-time name constraints have been specified, in order to simplify the renaming of this data element to Pulse Rate or Heart Rate, as required."
                                }
                            },
                            {
                                "id": "irregular_type",
                                "name": "Irregular type",
                                "localizedName": "Irregular type",
                                "rmType": "DV_CODED_TEXT",
                                "nodeId": "at1055",
                                "min": 0,
                                "max": 1,
                                "localizedNames": {
                                    "en": "Irregular type"
                                },
                                "localizedDescriptions": {
                                    "en": "More specific pattern of an irregular pulse or heart beat."
                                },
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.pulse.v1]/data[at0002]/events[at0003]/data[at0001]/items[at1055]/value",
                                "inputs": [
                                    {
                                        "suffix": "code",
                                        "type": "CODED_TEXT",
                                        "list": [
                                            {
                                                "value": "at0007",
                                                "label": "Regularly Irregular",
                                                "localizedLabels": {
                                                    "en": "Regularly Irregular"
                                                },
                                                "localizedDescriptions": {
                                                    "en": "The pattern is irregular in a regular pattern,. For example, a dropped beat once every 'n' beats."
                                                }
                                            },
                                            {
                                                "value": "at0008",
                                                "label": "Irregularly Irregular",
                                                "localizedLabels": {
                                                    "en": "Irregularly Irregular"
                                                },
                                                "localizedDescriptions": {
                                                    "en": "The pattern is irregular in a chaotic and unpredictable manner. For example, atrial fibrillation."
                                                }
                                            }
                                        ],
                                        "terminology": "local"
                                    }
                                ],
                                "annotations": {
                                    "comment": "Selection of a value from this value set is only valid if 'Irregular' is selected from the 'Regularity' data element."
                                }
                            },
                            {
                                "id": "comment",
                                "name": "Comment",
                                "localizedName": "Comment",
                                "rmType": "DV_TEXT",
                                "nodeId": "at1059",
                                "min": 0,
                                "max": 1,
                                "localizedNames": {
                                    "en": "Comment"
                                },
                                "localizedDescriptions": {
                                    "en": "Additional narrative about the pulse or heart beat findings not captured in other fields."
                                },
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.pulse.v1]/data[at0002]/events[at0003]/data[at0001]/items[at1059]/value",
                                "inputs": [
                                    {
                                        "type": "TEXT"
                                    }
                                ]
                            },
                            {
                                "id": "time",
                                "name": "time",
                                "rmType": "DV_DATE_TIME",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.pulse.v1]/data[at0002]/events[at0003]/time",
                                "inputs": [
                                    {
                                        "type": "DATETIME"
                                    }
                                ],
                                "inContext": true
                            },
                            {
                                "id": "subject",
                                "name": "subject",
                                "rmType": "PARTY_PROXY",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.pulse.v1]/subject",
                                "inputs": [
                                    {
                                        "suffix": "id",
                                        "type": "TEXT"
                                    },
                                    {
                                        "suffix": "id_scheme",
                                        "type": "TEXT"
                                    },
                                    {
                                        "suffix": "id_namespace",
                                        "type": "TEXT"
                                    },
                                    {
                                        "suffix": "name",
                                        "type": "TEXT"
                                    }
                                ],
                                "inContext": true
                            },
                            {
                                "id": "language",
                                "name": "language",
                                "rmType": "CODE_PHRASE",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.pulse.v1]/language",
                                "inContext": true
                            },
                            {
                                "id": "encoding",
                                "name": "encoding",
                                "rmType": "CODE_PHRASE",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.pulse.v1]/encoding",
                                "inContext": true
                            }
                        ]
                    },
                    {
                        "id": "body_temperature",
                        "name": "Body temperature",
                        "localizedName": "Body temperature",
                        "rmType": "OBSERVATION",
                        "nodeId": "openEHR-EHR-OBSERVATION.body_temperature.v1",
                        "min": 0,
                        "max": 1,
                        "localizedNames": {
                            "en": "Body temperature"
                        },
                        "localizedDescriptions": {
                            "en": "A measurement of the body temperature, which is a surrogate for the whole body temperature of the person."
                        },
                        "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.body_temperature.v1]",
                        "children": [
                            {
                                "id": "temperature",
                                "name": "Temperature",
                                "localizedName": "Temperature",
                                "rmType": "DV_QUANTITY",
                                "nodeId": "at0004",
                                "min": 1,
                                "max": 1,
                                "localizedNames": {
                                    "en": "Temperature"
                                },
                                "localizedDescriptions": {
                                    "en": "The measured body temperature (as a surrogate for the whole body)."
                                },
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.body_temperature.v1]/data[at0002]/events[at0003]/data[at0001]/items[at0004]/value",
                                "inputs": [
                                    {
                                        "suffix": "magnitude",
                                        "type": "DECIMAL",
                                        "validation": {
                                            "precision": {
                                                "min": 1,
                                                "minOp": ">=",
                                                "max": 1,
                                                "maxOp": "<="
                                            },
                                            "range": {
                                                "min": 0.0,
                                                "minOp": ">="
                                            }
                                        }
                                    },
                                    {
                                        "suffix": "unit",
                                        "type": "CODED_TEXT",
                                        "list": [
                                            {
                                                "value": "\u00b0C",
                                                "label": "\u00b0C",
                                                "validation": {
                                                    "precision": {
                                                        "min": 1,
                                                        "minOp": ">=",
                                                        "max": 1,
                                                        "maxOp": "<="
                                                    },
                                                    "range": {
                                                        "min": 0.0,
                                                        "minOp": ">="
                                                    }
                                                }
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "id": "time",
                                "name": "time",
                                "rmType": "DV_DATE_TIME",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.body_temperature.v1]/data[at0002]/events[at0003]/time",
                                "inputs": [
                                    {
                                        "type": "DATETIME"
                                    }
                                ],
                                "inContext": true
                            },
                            {
                                "id": "subject",
                                "name": "subject",
                                "rmType": "PARTY_PROXY",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.body_temperature.v1]/subject",
                                "inputs": [
                                    {
                                        "suffix": "id",
                                        "type": "TEXT"
                                    },
                                    {
                                        "suffix": "id_scheme",
                                        "type": "TEXT"
                                    },
                                    {
                                        "suffix": "id_namespace",
                                        "type": "TEXT"
                                    },
                                    {
                                        "suffix": "name",
                                        "type": "TEXT"
                                    }
                                ],
                                "inContext": true
                            },
                            {
                                "id": "language",
                                "name": "language",
                                "rmType": "CODE_PHRASE",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.body_temperature.v1]/language",
                                "inContext": true
                            },
                            {
                                "id": "encoding",
                                "name": "encoding",
                                "rmType": "CODE_PHRASE",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.body_temperature.v1]/encoding",
                                "inContext": true
                            }
                        ]
                    },
                    {
                        "id": "avpu",
                        "name": "AVPU",
                        "localizedName": "AVPU",
                        "rmType": "OBSERVATION",
                        "nodeId": "openEHR-EHR-OBSERVATION.avpu.v1",
                        "min": 0,
                        "max": 1,
                        "localizedNames": {
                            "en": "AVPU"
                        },
                        "localizedDescriptions": {
                            "en": "Simple scale used as part of an assessment to measure and record a patient's responsiveness, indicating their level of consciousness. AVPU is an acronym for 'Alert', 'Voice', 'Pain', 'Unresponsive'."
                        },
                        "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.avpu.v1]",
                        "children": [
                            {
                                "id": "avpu_observation",
                                "name": "AVPU Observation",
                                "localizedName": "AVPU Observation",
                                "rmType": "DV_CODED_TEXT",
                                "nodeId": "at0004",
                                "min": 0,
                                "max": 1,
                                "localizedNames": {
                                    "en": "AVPU Observation"
                                },
                                "localizedDescriptions": {
                                    "en": "The observation of the patient's responsiveness."
                                },
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.avpu.v1]/data[at0001]/events[at0002]/data[at0003]/items[at0004]/value",
                                "inputs": [
                                    {
                                        "suffix": "code",
                                        "type": "CODED_TEXT",
                                        "list": [
                                            {
                                                "value": "at0005",
                                                "label": "Alert",
                                                "localizedLabels": {
                                                    "en": "Alert"
                                                },
                                                "localizedDescriptions": {
                                                    "en": "The patient is fully awake and alert."
                                                }
                                            },
                                            {
                                                "value": "at0006",
                                                "label": "Voice",
                                                "localizedLabels": {
                                                    "en": "Voice"
                                                },
                                                "localizedDescriptions": {
                                                    "en": "The patient responds in any way to a voice stimulus."
                                                }
                                            },
                                            {
                                                "value": "at0007",
                                                "label": "Pain",
                                                "localizedLabels": {
                                                    "en": "Pain"
                                                },
                                                "localizedDescriptions": {
                                                    "en": "The patient responds in any way to a pain stimulus."
                                                }
                                            },
                                            {
                                                "value": "at0008",
                                                "label": "Unresponsive",
                                                "localizedLabels": {
                                                    "en": "Unresponsive"
                                                },
                                                "localizedDescriptions": {
                                                    "en": "The patient does not respond in any way to voice or pain stimuli."
                                                }
                                            }
                                        ],
                                        "terminology": "local"
                                    }
                                ]
                            },
                            {
                                "id": "time",
                                "name": "time",
                                "rmType": "DV_DATE_TIME",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.avpu.v1]/data[at0001]/events[at0002]/time",
                                "inputs": [
                                    {
                                        "type": "DATETIME"
                                    }
                                ],
                                "inContext": true
                            },
                            {
                                "id": "subject",
                                "name": "subject",
                                "rmType": "PARTY_PROXY",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.avpu.v1]/subject",
                                "inputs": [
                                    {
                                        "suffix": "id",
                                        "type": "TEXT"
                                    },
                                    {
                                        "suffix": "id_scheme",
                                        "type": "TEXT"
                                    },
                                    {
                                        "suffix": "id_namespace",
                                        "type": "TEXT"
                                    },
                                    {
                                        "suffix": "name",
                                        "type": "TEXT"
                                    }
                                ],
                                "inContext": true
                            },
                            {
                                "id": "language",
                                "name": "language",
                                "rmType": "CODE_PHRASE",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.avpu.v1]/language",
                                "inContext": true
                            },
                            {
                                "id": "encoding",
                                "name": "encoding",
                                "rmType": "CODE_PHRASE",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.avpu.v1]/encoding",
                                "inContext": true
                            }
                        ]
                    },
                    {
                        "id": "blood_pressure",
                        "name": "Blood Pressure",
                        "localizedName": "Blood Pressure",
                        "rmType": "OBSERVATION",
                        "nodeId": "openEHR-EHR-OBSERVATION.blood_pressure.v1",
                        "min": 0,
                        "max": 1,
                        "localizedNames": {
                            "en": "Blood Pressure"
                        },
                        "localizedDescriptions": {
                            "en": "The local measurement of arterial blood pressure which is a surrogate for arterial pressure in the systemic circulation.  Most commonly, use of the term 'blood pressure' refers to measurement of brachial artery pressure in the upper arm."
                        },
                        "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.blood_pressure.v1]",
                        "children": [
                            {
                                "id": "systolic",
                                "name": "Systolic",
                                "localizedName": "Systolic",
                                "rmType": "DV_QUANTITY",
                                "nodeId": "at0004",
                                "min": 0,
                                "max": 1,
                                "localizedNames": {
                                    "en": "Systolic"
                                },
                                "localizedDescriptions": {
                                    "en": "Peak systemic arterial blood pressure  - measured in systolic or contraction phase of the heart cycle."
                                },
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.blood_pressure.v1]/data[at0001]/events[at0006]/data[at0003]/items[at0004]/value",
                                "inputs": [
                                    {
                                        "suffix": "magnitude",
                                        "type": "DECIMAL",
                                        "validation": {
                                            "precision": {
                                                "min": 0,
                                                "minOp": ">=",
                                                "max": 0,
                                                "maxOp": "<="
                                            },
                                            "range": {
                                                "min": 0.0,
                                                "minOp": ">=",
                                                "max": 1000.0,
                                                "maxOp": "<"
                                            }
                                        }
                                    },
                                    {
                                        "suffix": "unit",
                                        "type": "CODED_TEXT",
                                        "list": [
                                            {
                                                "value": "mm[Hg]",
                                                "label": "mm[Hg]",
                                                "validation": {
                                                    "precision": {
                                                        "min": 0,
                                                        "minOp": ">=",
                                                        "max": 0,
                                                        "maxOp": "<="
                                                    },
                                                    "range": {
                                                        "min": 0.0,
                                                        "minOp": ">=",
                                                        "max": 1000.0,
                                                        "maxOp": "<"
                                                    }
                                                }
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "id": "diastolic",
                                "name": "Diastolic",
                                "localizedName": "Diastolic",
                                "rmType": "DV_QUANTITY",
                                "nodeId": "at0005",
                                "min": 0,
                                "max": 1,
                                "localizedNames": {
                                    "en": "Diastolic"
                                },
                                "localizedDescriptions": {
                                    "en": "Minimum systemic arterial blood pressure - measured in the diastolic or relaxation phase of the heart cycle."
                                },
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.blood_pressure.v1]/data[at0001]/events[at0006]/data[at0003]/items[at0005]/value",
                                "inputs": [
                                    {
                                        "suffix": "magnitude",
                                        "type": "DECIMAL",
                                        "validation": {
                                            "precision": {
                                                "min": 0,
                                                "minOp": ">=",
                                                "max": 0,
                                                "maxOp": "<="
                                            },
                                            "range": {
                                                "min": 0.0,
                                                "minOp": ">=",
                                                "max": 1000.0,
                                                "maxOp": "<"
                                            }
                                        }
                                    },
                                    {
                                        "suffix": "unit",
                                        "type": "CODED_TEXT",
                                        "list": [
                                            {
                                                "value": "mm[Hg]",
                                                "label": "mm[Hg]",
                                                "validation": {
                                                    "precision": {
                                                        "min": 0,
                                                        "minOp": ">=",
                                                        "max": 0,
                                                        "maxOp": "<="
                                                    },
                                                    "range": {
                                                        "min": 0.0,
                                                        "minOp": ">=",
                                                        "max": 1000.0,
                                                        "maxOp": "<"
                                                    }
                                                }
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "id": "time",
                                "name": "time",
                                "rmType": "DV_DATE_TIME",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.blood_pressure.v1]/data[at0001]/events[at0006]/time",
                                "inputs": [
                                    {
                                        "type": "DATETIME"
                                    }
                                ],
                                "inContext": true
                            },
                            {
                                "id": "subject",
                                "name": "subject",
                                "rmType": "PARTY_PROXY",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.blood_pressure.v1]/subject",
                                "inputs": [
                                    {
                                        "suffix": "id",
                                        "type": "TEXT"
                                    },
                                    {
                                        "suffix": "id_scheme",
                                        "type": "TEXT"
                                    },
                                    {
                                        "suffix": "id_namespace",
                                        "type": "TEXT"
                                    },
                                    {
                                        "suffix": "name",
                                        "type": "TEXT"
                                    }
                                ],
                                "inContext": true
                            },
                            {
                                "id": "language",
                                "name": "language",
                                "rmType": "CODE_PHRASE",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.blood_pressure.v1]/language",
                                "inContext": true
                            },
                            {
                                "id": "encoding",
                                "name": "encoding",
                                "rmType": "CODE_PHRASE",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.blood_pressure.v1]/encoding",
                                "inContext": true
                            }
                        ]
                    },
                    {
                        "id": "indirect_oximetry",
                        "name": "Indirect Oximetry",
                        "localizedName": "Indirect Oximetry",
                        "rmType": "OBSERVATION",
                        "nodeId": "openEHR-EHR-OBSERVATION.indirect_oximetry.v1",
                        "min": 0,
                        "max": 1,
                        "localizedNames": {
                            "en": "Indirect Oximetry"
                        },
                        "localizedDescriptions": {
                            "en": "Method of monitoring blood gas measurements such as Spo2 and pTCO2 by indirect, currently non-invasive, means."
                        },
                        "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.indirect_oximetry.v1]",
                        "children": [
                            {
                                "id": "spo2",
                                "name": "spO2",
                                "localizedName": "spO2",
                                "rmType": "DV_PROPORTION",
                                "nodeId": "at0006",
                                "min": 0,
                                "max": 1,
                                "localizedNames": {
                                    "en": "spO2"
                                },
                                "localizedDescriptions": {
                                    "en": "Measured via pulse oximetry, the saturation of oxygen in the peripheral blood."
                                },
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.indirect_oximetry.v1]/data[at0001]/events[at0002]/data[at0003]/items[at0006]/value",
                                "inputs": [
                                    {
                                        "suffix": "numerator",
                                        "type": "DECIMAL",
                                        "validation": {
                                            "range": {
                                                "min": 0.0,
                                                "minOp": ">=",
                                                "max": 100.0,
                                                "maxOp": "<="
                                            }
                                        }
                                    },
                                    {
                                        "suffix": "denominator",
                                        "type": "DECIMAL",
                                        "validation": {
                                            "range": {
                                                "min": 100.0,
                                                "minOp": ">=",
                                                "max": 100.0,
                                                "maxOp": "<="
                                            }
                                        }
                                    }
                                ],
                                "annotations": {
                                    "comment": "spO2 is defined as the ratio of oxyhaemoglobin (HbO2) to the total concentration of haemoglobin (HbO2 + deoxyhaemoglobin)."
                                },
                                "proportionTypes": [
                                    "percent"
                                ]
                            },
                            {
                                "id": "time",
                                "name": "time",
                                "rmType": "DV_DATE_TIME",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.indirect_oximetry.v1]/data[at0001]/events[at0002]/time",
                                "inputs": [
                                    {
                                        "type": "DATETIME"
                                    }
                                ],
                                "inContext": true
                            },
                            {
                                "id": "subject",
                                "name": "subject",
                                "rmType": "PARTY_PROXY",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.indirect_oximetry.v1]/subject",
                                "inputs": [
                                    {
                                        "suffix": "id",
                                        "type": "TEXT"
                                    },
                                    {
                                        "suffix": "id_scheme",
                                        "type": "TEXT"
                                    },
                                    {
                                        "suffix": "id_namespace",
                                        "type": "TEXT"
                                    },
                                    {
                                        "suffix": "name",
                                        "type": "TEXT"
                                    }
                                ],
                                "inContext": true
                            },
                            {
                                "id": "language",
                                "name": "language",
                                "rmType": "CODE_PHRASE",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.indirect_oximetry.v1]/language",
                                "inContext": true
                            },
                            {
                                "id": "encoding",
                                "name": "encoding",
                                "rmType": "CODE_PHRASE",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.indirect_oximetry.v1]/encoding",
                                "inContext": true
                            }
                        ]
                    },
                    {
                        "id": "news_uk_rcp",
                        "name": "NEWS (UK RCP)",
                        "localizedName": "NEWS (UK RCP)",
                        "rmType": "OBSERVATION",
                        "nodeId": "openEHR-EHR-OBSERVATION.news_uk_rcp.v1",
                        "min": 0,
                        "max": 1,
                        "localizedNames": {
                            "en": "NEWS (UK RCP)"
                        },
                        "localizedDescriptions": {
                            "en": "NEWS (National Early Warning Score) is a simple score used to provide an objective indication of a patient's degree of clinical deterioration. This version follows guidance issued by the UK Royal College of Physicians."
                        },
                        "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.news_uk_rcp.v1]",
                        "children": [
                            {
                                "id": "total_score",
                                "name": "Total score",
                                "localizedName": "Total score",
                                "rmType": "DV_COUNT",
                                "nodeId": "at0028",
                                "min": 0,
                                "max": 1,
                                "localizedNames": {
                                    "en": "Total score"
                                },
                                "localizedDescriptions": {
                                    "en": "The total sum of all the NEWS parameter ordinals."
                                },
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.news_uk_rcp.v1]/data[at0001]/events[at0002]/data[at0003]/items[at0028]/value",
                                "inputs": [
                                    {
                                        "type": "INTEGER",
                                        "validation": {
                                            "range": {
                                                "min": 0,
                                                "minOp": ">=",
                                                "max": 20,
                                                "maxOp": "<="
                                            }
                                        }
                                    }
                                ],
                                "annotations": {
                                    "comment": "Total score may be generated at run-time."
                                }
                            },
                            {
                                "id": "confounding_factors",
                                "name": "Confounding factors",
                                "localizedName": "Confounding factors",
                                "rmType": "DV_TEXT",
                                "nodeId": "at0043",
                                "min": 0,
                                "max": 1,
                                "localizedNames": {
                                    "en": "Confounding factors"
                                },
                                "localizedDescriptions": {
                                    "en": "Description of any incidental factors that may have contributed to the score."
                                },
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.news_uk_rcp.v1]/data[at0001]/events[at0002]/state[at0041]/items[at0043]/value",
                                "inputs": [
                                    {
                                        "type": "TEXT"
                                    }
                                ],
                                "annotations": {
                                    "comment": "For example: If the patient has COPD."
                                }
                            },
                            {
                                "id": "time",
                                "name": "time",
                                "rmType": "DV_DATE_TIME",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.news_uk_rcp.v1]/data[at0001]/events[at0002]/time",
                                "inputs": [
                                    {
                                        "type": "DATETIME"
                                    }
                                ],
                                "inContext": true
                            },
                            {
                                "id": "subject",
                                "name": "subject",
                                "rmType": "PARTY_PROXY",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.news_uk_rcp.v1]/subject",
                                "inputs": [
                                    {
                                        "suffix": "id",
                                        "type": "TEXT"
                                    },
                                    {
                                        "suffix": "id_scheme",
                                        "type": "TEXT"
                                    },
                                    {
                                        "suffix": "id_namespace",
                                        "type": "TEXT"
                                    },
                                    {
                                        "suffix": "name",
                                        "type": "TEXT"
                                    }
                                ],
                                "inContext": true
                            },
                            {
                                "id": "language",
                                "name": "language",
                                "rmType": "CODE_PHRASE",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.news_uk_rcp.v1]/language",
                                "inContext": true
                            },
                            {
                                "id": "encoding",
                                "name": "encoding",
                                "rmType": "CODE_PHRASE",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-OBSERVATION.news_uk_rcp.v1]/encoding",
                                "inContext": true
                            }
                        ]
                    },
                    {
                        "id": "clinical_synopsis",
                        "name": "Clinical Synopsis",
                        "localizedName": "Clinical Synopsis",
                        "rmType": "EVALUATION",
                        "nodeId": "openEHR-EHR-EVALUATION.clinical_synopsis.v1",
                        "min": 0,
                        "max": 1,
                        "localizedNames": {
                            "en": "Clinical Synopsis"
                        },
                        "localizedDescriptions": {
                            "en": "Narrative summary or overview about a patient, specifically from the perspective of a healthcare provider, and with or without associated interpretations."
                        },
                        "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-EVALUATION.clinical_synopsis.v1]",
                        "children": [
                            {
                                "id": "synopsis",
                                "name": "Synopsis",
                                "localizedName": "Synopsis",
                                "rmType": "DV_TEXT",
                                "nodeId": "at0002",
                                "min": 1,
                                "max": 1,
                                "localizedNames": {
                                    "en": "Synopsis"
                                },
                                "localizedDescriptions": {
                                    "en": "The summary, assessment, conclusions or evaluation of the clinical findings."
                                },
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-EVALUATION.clinical_synopsis.v1]/data[at0001]/items[at0002]/value",
                                "inputs": [
                                    {
                                        "type": "TEXT"
                                    }
                                ]
                            },
                            {
                                "id": "subject",
                                "name": "subject",
                                "rmType": "PARTY_PROXY",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-EVALUATION.clinical_synopsis.v1]/subject",
                                "inputs": [
                                    {
                                        "suffix": "id",
                                        "type": "TEXT"
                                    },
                                    {
                                        "suffix": "id_scheme",
                                        "type": "TEXT"
                                    },
                                    {
                                        "suffix": "id_namespace",
                                        "type": "TEXT"
                                    },
                                    {
                                        "suffix": "name",
                                        "type": "TEXT"
                                    }
                                ],
                                "inContext": true
                            },
                            {
                                "id": "language",
                                "name": "language",
                                "rmType": "CODE_PHRASE",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-EVALUATION.clinical_synopsis.v1]/language",
                                "inContext": true
                            },
                            {
                                "id": "encoding",
                                "name": "encoding",
                                "rmType": "CODE_PHRASE",
                                "min": 1,
                                "max": 1,
                                "aqlPath": "/content[openEHR-EHR-SECTION.vital_signs.v1]/items[openEHR-EHR-EVALUATION.clinical_synopsis.v1]/encoding",
                                "inContext": true
                            }
                        ]
                    }
                ]
            },
            {
                "id": "composer",
                "name": "composer",
                "rmType": "PARTY_PROXY",
                "min": 1,
                "max": 1,
                "aqlPath": "/composer",
                "inputs": [
                    {
                        "suffix": "id",
                        "type": "TEXT"
                    },
                    {
                        "suffix": "id_scheme",
                        "type": "TEXT"
                    },
                    {
                        "suffix": "id_namespace",
                        "type": "TEXT"
                    },
                    {
                        "suffix": "name",
                        "type": "TEXT"
                    }
                ],
                "inContext": true
            },
            {
                "id": "language",
                "name": "language",
                "rmType": "CODE_PHRASE",
                "min": 1,
                "max": 1,
                "aqlPath": "/language",
                "inContext": true
            },
            {
                "id": "territory",
                "name": "territory",
                "rmType": "CODE_PHRASE",
                "min": 1,
                "max": 1,
                "aqlPath": "/territory",
                "inContext": true
            }
        ]
    }
}
