openEHR Test IG
1.6.6 - International flag

openEHR Test IG, published by HL7 FHIR Product Director. This guide is not an authorized publication; it is the continuous build for version 1.6.6 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/FHIR/openehr-test/ and changes regularly. See the Directory of published versions

:

Raw json | Download

{
  "templateId" : "Generic Nurse Encounter",
  "version" : "2.3",
  "defaultLanguage" : "en",
  "languages" : [
    "en"
  ],
  "tree" : {
    "id" : "generic_nurse_encounter",
    "name" : "Generic Nurse Encounter",
    "localizedName" : "Generic Nurse Encounter",
    "rmType" : "COMPOSITION",
    "nodeId" : "openEHR-EHR-COMPOSITION.encounter.v1",
    "min" : "1",
    "max" : "1",
    "localizedNames" : [
      null
    ],
    "localizedDescriptions" : [
      null
    ],
    "aqlPath" : "",
    "children" : [
      {
        "id" : "context",
        "rmType" : "EVENT_CONTEXT",
        "nodeId" : "",
        "min" : "1",
        "max" : "1",
        "aqlPath" : "/context"
      },
      {
        "id" : "vital_signs",
        "name" : "Vital Signs",
        "localizedName" : "Vital Signs",
        "rmType" : "SECTION",
        "nodeId" : "openEHR-EHR-SECTION.adhoc.v1",
        "min" : "0",
        "max" : "1",
        "localizedNames" : [
          null
        ],
        "localizedDescriptions" : [
          null
        ],
        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']",
        "children" : [
          {
            "id" : "body_temperature",
            "name" : "Body temperature",
            "localizedName" : "Body temperature",
            "rmType" : "OBSERVATION",
            "nodeId" : "openEHR-EHR-OBSERVATION.body_temperature.v2",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.body_temperature.v2]",
            "children" : [
              {
                "id" : "body_temperature_reading",
                "name" : "Body temperature reading",
                "localizedName" : "Body temperature reading",
                "rmType" : "EVENT",
                "nodeId" : "at0003",
                "min" : "0",
                "max" : "-1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.body_temperature.v2]/data[at0002]/events[at0003,'Body temperature reading']",
                "children" : [
                  {
                    "id" : "temperature",
                    "name" : "Temperature",
                    "localizedName" : "Temperature",
                    "rmType" : "DV_QUANTITY",
                    "nodeId" : "at0004",
                    "min" : "1",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.body_temperature.v2]/data[at0002]/events[at0003,'Body temperature reading']/data[at0001]/items[at0004]/value",
                    "inputs" : [
                      {
                        "suffix" : "magnitude",
                        "type" : "DECIMAL"
                      },
                      {
                        "suffix" : "unit",
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "[degF]",
                            "label" : "[degF]",
                            "localizedLabels" : [
                              null
                            ]
                          },
                          {
                            "value" : "Cel",
                            "label" : "Cel",
                            "localizedLabels" : [
                              null
                            ]
                          }
                        ]
                      }
                    ],
                    "termBindings" : {
                      "LNC205" : {
                        "value" : "[LNC205::8310-5]",
                        "terminologyId" : "LNC205"
                      },
                      "value" : {
                        "value" : "[LNC205::8310-5]",
                        "terminologyId" : "LNC205"
                      },
                      "SNOMED-CT" : {
                        "value" : "[SNOMED-CT::386725007]",
                        "terminologyId" : "SNOMED-CT"
                      },
                      "value" : {
                        "value" : "[SNOMED-CT::386725007]",
                        "terminologyId" : "SNOMED-CT"
                      }
                    }
                  },
                  {
                    "id" : "confounding_factors",
                    "name" : "Confounding factors",
                    "localizedName" : "Confounding factors",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0066",
                    "min" : "0",
                    "max" : "-1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.body_temperature.v2]/data[at0002]/events[at0003,'Body temperature reading']/state[at0029]/items[at0066]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "time",
                    "name" : "Time",
                    "rmType" : "DV_DATE_TIME",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.body_temperature.v2]/data[at0002]/events[at0003,'Body temperature reading']/time",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "type" : "DATETIME"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.body_temperature.v2]/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.body_temperature.v2]/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.body_temperature.v2]/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "respirations",
            "name" : "Respirations",
            "localizedName" : "Respirations",
            "rmType" : "OBSERVATION",
            "nodeId" : "openEHR-EHR-OBSERVATION.respiration.v1",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.respiration.v1]",
            "children" : [
              {
                "id" : "respiration_rate",
                "name" : "Respiration rate",
                "localizedName" : "Respiration rate",
                "rmType" : "EVENT",
                "nodeId" : "at0002",
                "min" : "0",
                "max" : "-1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.respiration.v1]/data[at0001]/events[at0002,'Respiration rate']",
                "children" : [
                  {
                    "id" : "respiratory_rate",
                    "name" : "Respiratory rate",
                    "localizedName" : "Respiratory rate",
                    "rmType" : "DV_QUANTITY",
                    "nodeId" : "at0004",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.respiration.v1]/data[at0001]/events[at0002,'Respiration rate']/data[at0003]/items[at0004,'Respiratory rate']/value",
                    "inputs" : [
                      {
                        "suffix" : "magnitude",
                        "type" : "DECIMAL",
                        "validation" : {
                          "range" : {
                            "minOp" : ">=",
                            "min" : 0.0,
                            "maxOp" : "<=",
                            "max" : 200.0
                          },
                          "precision" : {
                            "minOp" : ">=",
                            "min" : 0,
                            "maxOp" : "<=",
                            "max" : 0
                          }
                        }
                      },
                      {
                        "suffix" : "unit",
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "/min",
                            "label" : "/min"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "time",
                    "name" : "Time",
                    "rmType" : "DV_DATE_TIME",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.respiration.v1]/data[at0001]/events[at0002,'Respiration rate']/time",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "type" : "DATETIME"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/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.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.respiration.v1]/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.respiration.v1]/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "heart_rate",
            "name" : "Heart Rate",
            "localizedName" : "Heart Rate",
            "rmType" : "OBSERVATION",
            "nodeId" : "openEHR-EHR-OBSERVATION.pulse.v2",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.pulse.v2,'Heart Rate']",
            "children" : [
              {
                "id" : "heart_rate_reading",
                "name" : "Heart rate reading",
                "localizedName" : "Heart rate reading",
                "rmType" : "EVENT",
                "nodeId" : "at0003",
                "min" : "0",
                "max" : "-1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.pulse.v2,'Heart Rate']/data[at0002]/events[at0003,'Heart rate reading']",
                "children" : [
                  {
                    "id" : "heart_rate",
                    "name" : "Heart rate",
                    "localizedName" : "Heart rate",
                    "rmType" : "DV_QUANTITY",
                    "nodeId" : "at0004",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.pulse.v2,'Heart Rate']/data[at0002]/events[at0003,'Heart rate reading']/data[at0001]/items[at0004,'Heart rate']/value",
                    "inputs" : [
                      {
                        "suffix" : "magnitude",
                        "type" : "DECIMAL",
                        "validation" : {
                          "range" : {
                            "minOp" : ">=",
                            "min" : 0.0,
                            "maxOp" : "<=",
                            "max" : 300.0
                          },
                          "precision" : {
                            "minOp" : ">=",
                            "min" : 0,
                            "maxOp" : "<=",
                            "max" : 0
                          }
                        }
                      },
                      {
                        "suffix" : "unit",
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "/min",
                            "label" : "/min"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "time",
                    "name" : "Time",
                    "rmType" : "DV_DATE_TIME",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.pulse.v2,'Heart Rate']/data[at0002]/events[at0003,'Heart rate reading']/time",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "type" : "DATETIME"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.pulse.v2,'Heart Rate']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.pulse.v2,'Heart Rate']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.pulse.v2,'Heart Rate']/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "blood_pressure",
            "name" : "Blood pressure",
            "localizedName" : "Blood pressure",
            "rmType" : "OBSERVATION",
            "nodeId" : "openEHR-EHR-OBSERVATION.blood_pressure.v2",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "annotations" : {
              "comment" : "Most commonly, use of the term 'blood pressure' refers to measurement of brachial artery pressure in the upper arm."
            },
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.blood_pressure.v2]",
            "termBindings" : {
              "SNOMED-CT" : {
                "value" : "[SNOMED-CT(2003)::364090009]",
                "terminologyId" : "SNOMED-CT"
              },
              "value" : {
                "value" : "[SNOMED-CT(2003)::364090009]",
                "terminologyId" : "SNOMED-CT"
              }
            },
            "children" : [
              {
                "id" : "blood_pressure_reading",
                "name" : "Blood pressure reading",
                "localizedName" : "Blood pressure reading",
                "rmType" : "EVENT",
                "nodeId" : "at0006",
                "min" : "0",
                "max" : "-1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.blood_pressure.v2]/data[at0001]/events[at0006,'Blood pressure reading']",
                "children" : [
                  {
                    "id" : "systolic",
                    "name" : "Systolic",
                    "localizedName" : "Systolic",
                    "rmType" : "DV_QUANTITY",
                    "nodeId" : "at0004",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.blood_pressure.v2]/data[at0001]/events[at0006,'Blood pressure reading']/data[at0003]/items[at0004]/value",
                    "inputs" : [
                      {
                        "suffix" : "magnitude",
                        "type" : "DECIMAL",
                        "validation" : {
                          "range" : {
                            "minOp" : ">=",
                            "min" : 0.0,
                            "maxOp" : "<",
                            "max" : 300.0
                          }
                        }
                      },
                      {
                        "suffix" : "unit",
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "mm[Hg]",
                            "label" : "mm[Hg]",
                            "localizedLabels" : [
                              null
                            ]
                          }
                        ]
                      }
                    ],
                    "termBindings" : {
                      "SNOMED-CT" : {
                        "value" : "[SNOMED-CT(2003)::271649006]",
                        "terminologyId" : "SNOMED-CT"
                      },
                      "value" : {
                        "value" : "[SNOMED-CT(2003)::271649006]",
                        "terminologyId" : "SNOMED-CT"
                      }
                    }
                  },
                  {
                    "id" : "diastolic",
                    "name" : "Diastolic",
                    "localizedName" : "Diastolic",
                    "rmType" : "DV_QUANTITY",
                    "nodeId" : "at0005",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.blood_pressure.v2]/data[at0001]/events[at0006,'Blood pressure reading']/data[at0003]/items[at0005]/value",
                    "inputs" : [
                      {
                        "suffix" : "magnitude",
                        "type" : "DECIMAL",
                        "validation" : {
                          "range" : {
                            "minOp" : ">=",
                            "min" : 0.0,
                            "maxOp" : "<",
                            "max" : 300.0
                          },
                          "precision" : {
                            "minOp" : ">=",
                            "min" : 0,
                            "maxOp" : "<=",
                            "max" : 0
                          }
                        }
                      },
                      {
                        "suffix" : "unit",
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "mm[Hg]",
                            "label" : "mm[Hg]",
                            "localizedLabels" : [
                              null
                            ]
                          }
                        ]
                      }
                    ],
                    "termBindings" : {
                      "SNOMED-CT" : {
                        "value" : "[SNOMED-CT(2003)::271650006]",
                        "terminologyId" : "SNOMED-CT"
                      },
                      "value" : {
                        "value" : "[SNOMED-CT(2003)::271650006]",
                        "terminologyId" : "SNOMED-CT"
                      }
                    }
                  },
                  {
                    "id" : "time",
                    "name" : "Time",
                    "rmType" : "DV_DATE_TIME",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.blood_pressure.v2]/data[at0001]/events[at0006,'Blood pressure reading']/time",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "type" : "DATETIME"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "location_of_measurement",
                "name" : "Location of measurement",
                "localizedName" : "Location of measurement",
                "rmType" : "DV_CODED_TEXT",
                "nodeId" : "at0014",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.blood_pressure.v2]/protocol[at0011]/items[at0014]/value",
                "inputs" : [
                  {
                    "suffix" : "code",
                    "type" : "CODED_TEXT",
                    "defaultValue" : "at0026",
                    "list" : [
                      {
                        "value" : "at0025",
                        "label" : "Right arm",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      },
                      {
                        "value" : "at0026",
                        "label" : "Left arm",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      },
                      {
                        "value" : "at0027",
                        "label" : "Right thigh",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      },
                      {
                        "value" : "at0028",
                        "label" : "Left thigh",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      },
                      {
                        "value" : "at1020",
                        "label" : "Right wrist",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      },
                      {
                        "value" : "at1021",
                        "label" : "Left wrist",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      },
                      {
                        "value" : "at1026",
                        "label" : "Right ankle",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      },
                      {
                        "value" : "at1031",
                        "label" : "Left ankle",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      },
                      {
                        "value" : "at1032",
                        "label" : "Finger",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      },
                      {
                        "value" : "at1051",
                        "label" : "Toe",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      },
                      {
                        "value" : "at1056",
                        "label" : "Dorsum of foot",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      },
                      {
                        "value" : "at1053",
                        "label" : "Intra-arterial",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      }
                    ],
                    "listOpen" : true
                  },
                  {
                    "suffix" : "other",
                    "type" : "TEXT"
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.blood_pressure.v2]/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.blood_pressure.v2]/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.blood_pressure.v2]/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "oxygen_saturation",
            "name" : "Oxygen saturation",
            "localizedName" : "Oxygen saturation",
            "rmType" : "OBSERVATION",
            "nodeId" : "openEHR-EHR-OBSERVATION.pulse_oximetry.v1",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.pulse_oximetry.v1,'Oxygen saturation']",
            "children" : [
              {
                "id" : "spo2_reading",
                "name" : "SPO2 reading",
                "localizedName" : "SPO2 reading",
                "rmType" : "EVENT",
                "nodeId" : "at0002",
                "min" : "0",
                "max" : "-1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.pulse_oximetry.v1,'Oxygen saturation']/data[at0001]/events[at0002,'SPO2 reading']",
                "children" : [
                  {
                    "id" : "spo",
                    "name" : "SpO₂",
                    "localizedName" : "SpO₂",
                    "rmType" : "DV_PROPORTION",
                    "nodeId" : "at0006",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "SpO₂ is defined as the percentage of oxyhaemoglobin (HbO₂) to the total concentration of haemoglobin (HbO₂ + deoxyhaemoglobin) in peripheral blood."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.pulse_oximetry.v1,'Oxygen saturation']/data[at0001]/events[at0002,'SPO2 reading']/data[at0003]/items[at0006]/value",
                    "inputs" : [
                      {
                        "suffix" : "numerator",
                        "type" : "DECIMAL",
                        "defaultValue" : 0.0,
                        "validation" : {
                          "range" : {
                            "minOp" : ">=",
                            "min" : 30.0,
                            "maxOp" : "<=",
                            "max" : 99.0
                          }
                        }
                      },
                      {
                        "suffix" : "denominator",
                        "type" : "DECIMAL",
                        "validation" : {
                          "range" : {
                            "minOp" : ">=",
                            "min" : 100.0,
                            "maxOp" : "<=",
                            "max" : 100.0
                          }
                        }
                      }
                    ],
                    "termBindings" : {
                      "LOINC" : {
                        "value" : "[LOINC::59408-5]",
                        "terminologyId" : "LOINC"
                      },
                      "value" : {
                        "value" : "[LOINC::59408-5]",
                        "terminologyId" : "LOINC"
                      },
                      "SNOMED-CT" : {
                        "value" : "[SNOMED-CT::431314004]",
                        "terminologyId" : "SNOMED-CT"
                      },
                      "value" : {
                        "value" : "[SNOMED-CT::431314004]",
                        "terminologyId" : "SNOMED-CT"
                      }
                    }
                  },
                  {
                    "id" : "time",
                    "name" : "Time",
                    "rmType" : "DV_DATE_TIME",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.pulse_oximetry.v1,'Oxygen saturation']/data[at0001]/events[at0002,'SPO2 reading']/time",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "type" : "DATETIME"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.pulse_oximetry.v1,'Oxygen saturation']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.pulse_oximetry.v1,'Oxygen saturation']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Vital Signs']/items[openEHR-EHR-OBSERVATION.pulse_oximetry.v1,'Oxygen saturation']/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "id" : "point_of_care_tests",
        "name" : "Point of care tests",
        "localizedName" : "Point of care tests",
        "rmType" : "SECTION",
        "nodeId" : "openEHR-EHR-SECTION.adhoc.v1",
        "min" : "0",
        "max" : "1",
        "localizedNames" : [
          null
        ],
        "localizedDescriptions" : [
          null
        ],
        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point \n        \"id\" : \"random_blood_glucose\",\n        \"name\" : \"Random blood glucose\",\n        \"localizedName\" : \"Random blood glucose\",of care tests']",
        "children" : [
          {
            "rmType" : "OBSERVATION",
            "nodeId" : "openEHR-EHR-OBSERVATION.laboratory_test_result.v1",
            "min" : "0",
            "max" : "-1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']",
            "children" : [
              {
                "id" : "rbg_test",
                "name" : "RBG test",
                "localizedName" : "RBG test",
                "rmType" : "EVENT",
                "nodeId" : "at0002",
                "min" : "0",
                "max" : "-1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/data[at0001]/events[at0002,'RBG test']",
                "children" : [
                  {
                    "id" : "test_name",
                    "name" : "Test name",
                    "localizedName" : "Test name",
                    "rmType" : "DV_CODED_TEXT",
                    "nodeId" : "at0005",
                    "min" : "1",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "A test result may be for a single analyte, or a group of items, including panel tests. It is strongly recommended that 'Test name' be coded with a terminology, for example LOINC or SNOMED CT. For example: 'Glucose', 'Urea and Electrolytes', 'Swab', 'Cortisol (am)', 'Potassium in perspiration' or 'Melanoma histopathology'. The name may sometimes include specimen type and patient state, for example 'Fasting blood glucose' or include other information, as 'Potassium (PNA blood gas)'."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/data[at0001]/events[at0002,'RBG test']/data[at0003]/items[at0005]/value",
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "CODED_TEXT",
                        "terminology" : "LOINC",
                        "list" : [
                          {
                            "value" : "14743-9",
                            "label" : "Glucose [Moles/volume] in Capillary blood by Glucometer",
                            "localizedLabels" : [
                              null
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "glucose_result",
                    "name" : "Glucose result",
                    "localizedName" : "Glucose result",
                    "rmType" : "CLUSTER",
                    "nodeId" : "openEHR-EHR-CLUSTER.laboratory_test_analyte.v1",
                    "min" : "0",
                    "max" : "-1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/data[at0001]/events[at0002,'RBG test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Glucose result']",
                    "children" : [
                      {
                        "id" : "analyte_name",
                        "name" : "Analyte name",
                        "localizedName" : "Analyte name",
                        "rmType" : "DV_CODED_TEXT",
                        "nodeId" : "at0024",
                        "min" : "0",
                        "max" : "1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "annotations" : {
                          "comment" : "The value for this element is normally supplied in a specialisation, in a template or at run-time to reflect the actual analyte. For example: 'Serum sodium', 'Haemoglobin'. Coding with an external terminology is strongly recommended, such as LOINC, NPU, SNOMED CT, or local lab terminologies.",
                          "fhir_mapping" : "Observation.code",
                          "hl7v2_mapping" : "OBX.3"
                        },
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/data[at0001]/events[at0002,'RBG test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Glucose result']/items[at0024]/value",
                        "inputs" : [
                          {
                            "suffix" : "code",
                            "type" : "CODED_TEXT",
                            "terminology" : "LOINC",
                            "list" : [
                              {
                                "value" : "14743-9",
                                "label" : "Glucose [Moles/volume] in Capillary blood by Glucometer",
                                "localizedLabels" : [
                                  null
                                ]
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "id" : "result",
                        "name" : "Result",
                        "localizedName" : "Result",
                        "rmType" : "DV_QUANTITY",
                        "nodeId" : "at0001",
                        "min" : "0",
                        "max" : "-1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "annotations" : {
                          "comment" : "For example '7.3 mmol/l', 'Raised'. The 'Any' data type will need to be constrained to an appropriate data type in a specialisation, a template or at run-time to reflect the actual analyte result. The Quantity data type has reference model attributes that include flags for normal/abnormal, reference ranges and approximations - see https://specifications.openehr.org/releases/RM/latest/data_types.html#_dv_quantity_class for more details.",
                          "fhir_mapping" : "Observation.value[x]",
                          "hl7v2_mapping" : "OBX.2, OBX.5, OBX.6, OBX.7, OBX.8"
                        },
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/data[at0001]/events[at0002,'RBG test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Glucose result']/items[at0001,'Result']/value",
                        "inputs" : [
                          {
                            "suffix" : "magnitude",
                            "type" : "DECIMAL"
                          },
                          {
                            "suffix" : "unit",
                            "type" : "CODED_TEXT",
                            "list" : [
                              {
                                "value" : "mg/dl",
                                "label" : "mg/dl"
                              },
                              {
                                "value" : "mmol/L",
                                "label" : "mmol/L"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "id" : "test_method",
                        "name" : "Test method",
                        "localizedName" : "Test method",
                        "rmType" : "ELEMENT",
                        "nodeId" : "at0028",
                        "min" : "0",
                        "max" : "1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "annotations" : {
                          "comment" : "If the test method applies to an entire panel, the test method can be captured using the 'Test method' data element within the OBSERVATION.laboratory_test_result"
                        },
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/data[at0001]/events[at0002,'RBG test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Glucose result']/items[at0028]",
                        "children" : [
                          {
                            "id" : "coded_text_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_CODED_TEXT",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/data[at0001]/events[at0002,'RBG test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Glucose result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "code",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "value",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "text_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_TEXT",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/data[at0001]/events[at0002,'RBG test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Glucose result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "multimedia_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_MULTIMEDIA",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/data[at0001]/events[at0002,'RBG test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Glucose result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "parsable_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_PARSABLE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/data[at0001]/events[at0002,'RBG test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Glucose result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "value",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "formalism",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "state_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_STATE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/data[at0001]/events[at0002,'RBG test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Glucose result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "code",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "value",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "boolean_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_BOOLEAN",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/data[at0001]/events[at0002,'RBG test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Glucose result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "BOOLEAN"
                              }
                            ]
                          },
                          {
                            "id" : "identifier_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_IDENTIFIER",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/data[at0001]/events[at0002,'RBG test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Glucose result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "id",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "type",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "issuer",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "assigner",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "uri_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_URI",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/data[at0001]/events[at0002,'RBG test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Glucose result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "ehr_uri_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_EHR_URI",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/data[at0001]/events[at0002,'RBG test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Glucose result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "duration_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_DURATION",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/data[at0001]/events[at0002,'RBG test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Glucose result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "year",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "month",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "day",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "week",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "hour",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "minute",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "second",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              }
                            ]
                          },
                          {
                            "id" : "quantity_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_QUANTITY",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/data[at0001]/events[at0002,'RBG test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Glucose result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "magnitude",
                                "type" : "DECIMAL"
                              },
                              {
                                "suffix" : "unit",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "count_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_COUNT",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/data[at0001]/events[at0002,'RBG test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Glucose result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "INTEGER"
                              }
                            ]
                          },
                          {
                            "id" : "proportion_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_PROPORTION",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/data[at0001]/events[at0002,'RBG test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Glucose result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "numerator",
                                "type" : "DECIMAL"
                              },
                              {
                                "suffix" : "denominator",
                                "type" : "DECIMAL"
                              }
                            ]
                          },
                          {
                            "id" : "date_time_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_DATE_TIME",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/data[at0001]/events[at0002,'RBG test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Glucose result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "DATETIME"
                              }
                            ]
                          },
                          {
                            "id" : "date_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_DATE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/data[at0001]/events[at0002,'RBG test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Glucose result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "DATE"
                              }
                            ]
                          },
                          {
                            "id" : "time_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_TIME",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/data[at0001]/events[at0002,'RBG test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Glucose result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TIME"
                              }
                            ]
                          },
                          {
                            "id" : "ordinal_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_ORDINAL",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/data[at0001]/events[at0002,'RBG test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Glucose result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "CODED_TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "scale_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_SCALE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/data[at0001]/events[at0002,'RBG test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Glucose result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "CODED_TEXT"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "conclusion",
                    "name" : "Conclusion",
                    "localizedName" : "Conclusion",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0057",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "For example: 'Pattern suggests significant renal impairment'. The content of the conclusion will vary, depending on the investigation performed. This conclusion should be aligned with the coded 'Test diagnosis'."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/data[at0001]/events[at0002,'RBG test']/data[at0003]/items[at0057]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "time",
                    "name" : "Time",
                    "rmType" : "DV_DATE_TIME",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/data[at0001]/events[at0002,'RBG test']/time",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "type" : "DATETIME"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "point-of-care_test",
                "name" : "Point-of-care test",
                "localizedName" : "Point-of-care test",
                "rmType" : "DV_BOOLEAN",
                "nodeId" : "at0111",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "True if the test was performed directly at Point-of-Care (POCT)."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/protocol[at0004]/items[at0111]/value",
                "inputs" : [
                  {
                    "type" : "BOOLEAN",
                    "defaultValue" : true
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Random blood glucose']/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "hiv_rapid_test",
            "name" : "HIV rapid test",
            "localizedName" : "HIV rapid test",
            "rmType" : "OBSERVATION",
            "nodeId" : "openEHR-EHR-OBSERVATION.laboratory_test_result.v1",
            "min" : "0",
            "max" : "-1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']",
            "children" : [
              {
                "id" : "hiv_test",
                "name" : "HIV test",
                "localizedName" : "HIV test",
                "rmType" : "EVENT",
                "nodeId" : "at0002",
                "min" : "0",
                "max" : "-1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/data[at0001]/events[at0002,'HIV test']",
                "children" : [
                  {
                    "id" : "test_name",
                    "name" : "Test name",
                    "localizedName" : "Test name",
                    "rmType" : "DV_CODED_TEXT",
                    "nodeId" : "at0005",
                    "min" : "1",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "A test result may be for a single analyte, or a group of items, including panel tests. It is strongly recommended that 'Test name' be coded with a terminology, for example LOINC or SNOMED CT. For example: 'Glucose', 'Urea and Electrolytes', 'Swab', 'Cortisol (am)', 'Potassium in perspiration' or 'Melanoma histopathology'. The name may sometimes include specimen type and patient state, for example 'Fasting blood glucose' or include other information, as 'Potassium (PNA blood gas)'."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/data[at0001]/events[at0002,'HIV test']/data[at0003]/items[at0005]/value",
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "CODED_TEXT",
                        "terminology" : "LOINC",
                        "list" : [
                          {
                            "value" : "LOINC3",
                            "label" : "HIV rapid test",
                            "localizedLabels" : [
                              null
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "hiv_result",
                    "name" : "HIV result",
                    "localizedName" : "HIV result",
                    "rmType" : "CLUSTER",
                    "nodeId" : "openEHR-EHR-CLUSTER.laboratory_test_analyte.v1",
                    "min" : "0",
                    "max" : "-1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/data[at0001]/events[at0002,'HIV test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HIV result']",
                    "children" : [
                      {
                        "id" : "result",
                        "name" : "Result",
                        "localizedName" : "Result",
                        "rmType" : "DV_TEXT",
                        "nodeId" : "at0001",
                        "min" : "0",
                        "max" : "-1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "annotations" : {
                          "comment" : "For example '7.3 mmol/l', 'Raised'. The 'Any' data type will need to be constrained to an appropriate data type in a specialisation, a template or at run-time to reflect the actual analyte result. The Quantity data type has reference model attributes that include flags for normal/abnormal, reference ranges and approximations - see https://specifications.openehr.org/releases/RM/latest/data_types.html#_dv_quantity_class for more details.",
                          "fhir_mapping" : "Observation.value[x]",
                          "hl7v2_mapping" : "OBX.2, OBX.5, OBX.6, OBX.7, OBX.8"
                        },
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/data[at0001]/events[at0002,'HIV test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HIV result']/items[at0001,'Result']/value",
                        "inputs" : [
                          {
                            "type" : "TEXT",
                            "list" : [
                              {
                                "value" : "Positive",
                                "label" : "Positive"
                              },
                              {
                                "value" : "Negative",
                                "label" : "Negative"
                              },
                              {
                                "value" : "Indeterminate",
                                "label" : "Indeterminate"
                              }
                            ],
                            "listOpen" : false
                          }
                        ]
                      },
                      {
                        "id" : "test_method",
                        "name" : "Test method",
                        "localizedName" : "Test method",
                        "rmType" : "ELEMENT",
                        "nodeId" : "at0028",
                        "min" : "0",
                        "max" : "1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "annotations" : {
                          "comment" : "If the test method applies to an entire panel, the test method can be captured using the 'Test method' data element within the OBSERVATION.laboratory_test_result"
                        },
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/data[at0001]/events[at0002,'HIV test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HIV result']/items[at0028]",
                        "children" : [
                          {
                            "id" : "coded_text_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_CODED_TEXT",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/data[at0001]/events[at0002,'HIV test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HIV result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "code",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "value",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "text_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_TEXT",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/data[at0001]/events[at0002,'HIV test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HIV result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "multimedia_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_MULTIMEDIA",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/data[at0001]/events[at0002,'HIV test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HIV result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "parsable_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_PARSABLE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/data[at0001]/events[at0002,'HIV test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HIV result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "value",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "formalism",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "state_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_STATE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/data[at0001]/events[at0002,'HIV test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HIV result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "code",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "value",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "boolean_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_BOOLEAN",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/data[at0001]/events[at0002,'HIV test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HIV result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "BOOLEAN"
                              }
                            ]
                          },
                          {
                            "id" : "identifier_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_IDENTIFIER",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/data[at0001]/events[at0002,'HIV test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HIV result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "id",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "type",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "issuer",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "assigner",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "uri_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_URI",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/data[at0001]/events[at0002,'HIV test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HIV result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "ehr_uri_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_EHR_URI",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/data[at0001]/events[at0002,'HIV test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HIV result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "duration_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_DURATION",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/data[at0001]/events[at0002,'HIV test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HIV result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "year",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "month",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "day",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "week",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "hour",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "minute",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "second",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              }
                            ]
                          },
                          {
                            "id" : "quantity_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_QUANTITY",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/data[at0001]/events[at0002,'HIV test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HIV result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "magnitude",
                                "type" : "DECIMAL"
                              },
                              {
                                "suffix" : "unit",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "count_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_COUNT",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/data[at0001]/events[at0002,'HIV test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HIV result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "INTEGER"
                              }
                            ]
                          },
                          {
                            "id" : "proportion_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_PROPORTION",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/data[at0001]/events[at0002,'HIV test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HIV result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "numerator",
                                "type" : "DECIMAL"
                              },
                              {
                                "suffix" : "denominator",
                                "type" : "DECIMAL"
                              }
                            ]
                          },
                          {
                            "id" : "date_time_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_DATE_TIME",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/data[at0001]/events[at0002,'HIV test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HIV result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "DATETIME"
                              }
                            ]
                          },
                          {
                            "id" : "date_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_DATE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/data[at0001]/events[at0002,'HIV test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HIV result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "DATE"
                              }
                            ]
                          },
                          {
                            "id" : "time_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_TIME",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/data[at0001]/events[at0002,'HIV test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HIV result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TIME"
                              }
                            ]
                          },
                          {
                            "id" : "ordinal_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_ORDINAL",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/data[at0001]/events[at0002,'HIV test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HIV result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "CODED_TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "scale_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_SCALE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/data[at0001]/events[at0002,'HIV test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HIV result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "CODED_TEXT"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "conclusion",
                    "name" : "Conclusion",
                    "localizedName" : "Conclusion",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0057",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "For example: 'Pattern suggests significant renal impairment'. The content of the conclusion will vary, depending on the investigation performed. This conclusion should be aligned with the coded 'Test diagnosis'."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/data[at0001]/events[at0002,'HIV test']/data[at0003]/items[at0057]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "time",
                    "name" : "Time",
                    "rmType" : "DV_DATE_TIME",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/data[at0001]/events[at0002,'HIV test']/time",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "type" : "DATETIME"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "point-of-care_test",
                "name" : "Point-of-care test",
                "localizedName" : "Point-of-care test",
                "rmType" : "DV_BOOLEAN",
                "nodeId" : "at0111",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "True if the test was performed directly at Point-of-Care (POCT)."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/protocol[at0004]/items[at0111]/value",
                "inputs" : [
                  {
                    "type" : "BOOLEAN",
                    "defaultValue" : true
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HIV rapid test']/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "urine_dipstick",
            "name" : "Urine Dipstick",
            "localizedName" : "Urine Dipstick",
            "rmType" : "OBSERVATION",
            "nodeId" : "openEHR-EHR-OBSERVATION.urinalysis.v1",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.urinalysis.v1,'Urine Dipstick']",
            "children" : [
              {
                "id" : "point_in_time",
                "name" : "Point in Time",
                "localizedName" : "Point in Time",
                "rmType" : "POINT_EVENT",
                "nodeId" : "at0002",
                "min" : "0",
                "max" : "-1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.urinalysis.v1,'Urine Dipstick']/data[at0001]/events[at0002]",
                "children" : [
                  {
                    "id" : "glucose",
                    "name" : "Glucose",
                    "localizedName" : "Glucose",
                    "rmType" : "DV_ORDINAL",
                    "nodeId" : "at0050",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.urinalysis.v1,'Urine Dipstick']/data[at0001]/events[at0002]/data[at0003]/items[at0050]/value",
                    "inputs" : [
                      {
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "at0115",
                            "label" : "Negative",
                            "ordinal" : "1",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0116",
                            "label" : "Trace",
                            "ordinal" : "2",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0117",
                            "label" : "1+",
                            "ordinal" : "3",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0118",
                            "label" : "2+",
                            "ordinal" : "4",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0119",
                            "label" : "3+",
                            "ordinal" : "5",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0120",
                            "label" : "4+",
                            "ordinal" : "6",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "bilirubin",
                    "name" : "Bilirubin",
                    "localizedName" : "Bilirubin",
                    "rmType" : "DV_ORDINAL",
                    "nodeId" : "at0062",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.urinalysis.v1,'Urine Dipstick']/data[at0001]/events[at0002]/data[at0003]/items[at0062]/value",
                    "inputs" : [
                      {
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "at0121",
                            "label" : "Negative",
                            "ordinal" : "1",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0122",
                            "label" : "1+",
                            "ordinal" : "2",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0123",
                            "label" : "2+",
                            "ordinal" : "3",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0124",
                            "label" : "3+",
                            "ordinal" : "4",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "ketones",
                    "name" : "Ketones",
                    "localizedName" : "Ketones",
                    "rmType" : "DV_ORDINAL",
                    "nodeId" : "at0037",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.urinalysis.v1,'Urine Dipstick']/data[at0001]/events[at0002]/data[at0003]/items[at0037]/value",
                    "inputs" : [
                      {
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "at0109",
                            "label" : "Negative",
                            "ordinal" : "1",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0110",
                            "label" : "Trace",
                            "ordinal" : "2",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0111",
                            "label" : "Small",
                            "ordinal" : "3",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0112",
                            "label" : "Moderate",
                            "ordinal" : "4",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0113",
                            "label" : "Large",
                            "ordinal" : "5",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0114",
                            "label" : "Large+",
                            "ordinal" : "6",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "specific_gravity",
                    "name" : "Specific gravity",
                    "localizedName" : "Specific gravity",
                    "rmType" : "DV_ORDINAL",
                    "nodeId" : "at0151",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.urinalysis.v1,'Urine Dipstick']/data[at0001]/events[at0002]/data[at0003]/items[at0151]/value",
                    "inputs" : [
                      {
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "at0152",
                            "label" : "1.000",
                            "ordinal" : "1",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0153",
                            "label" : "1.005",
                            "ordinal" : "2",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0154",
                            "label" : "1.010",
                            "ordinal" : "3",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0155",
                            "label" : "1.015",
                            "ordinal" : "4",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0156",
                            "label" : "1.020",
                            "ordinal" : "5",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0157",
                            "label" : "1.025",
                            "ordinal" : "6",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0158",
                            "label" : "1.030",
                            "ordinal" : "7",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "blood",
                    "name" : "Blood",
                    "localizedName" : "Blood",
                    "rmType" : "DV_ORDINAL",
                    "nodeId" : "at0032",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.urinalysis.v1,'Urine Dipstick']/data[at0001]/events[at0002]/data[at0003]/items[at0032]/value",
                    "inputs" : [
                      {
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "at0102",
                            "label" : "Negative",
                            "ordinal" : "1",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0103",
                            "label" : "Non-haemolysed Trace",
                            "ordinal" : "2",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0104",
                            "label" : "Non-haemolysed Moderate",
                            "ordinal" : "3",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0105",
                            "label" : "Haemolysed Trace",
                            "ordinal" : "4",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0106",
                            "label" : "1+",
                            "ordinal" : "5",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0107",
                            "label" : "2+",
                            "ordinal" : "6",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0108",
                            "label" : "3+",
                            "ordinal" : "7",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "ph",
                    "name" : "pH",
                    "localizedName" : "pH",
                    "rmType" : "DV_ORDINAL",
                    "nodeId" : "at0126",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.urinalysis.v1,'Urine Dipstick']/data[at0001]/events[at0002]/data[at0003]/items[at0126]/value",
                    "inputs" : [
                      {
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "at0127",
                            "label" : "5.0",
                            "ordinal" : "1",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0128",
                            "label" : "5.5",
                            "ordinal" : "2",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0129",
                            "label" : "6.0",
                            "ordinal" : "3",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0130",
                            "label" : "6.5",
                            "ordinal" : "4",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0131",
                            "label" : "7.0",
                            "ordinal" : "5",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0132",
                            "label" : "7.5",
                            "ordinal" : "6",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0133",
                            "label" : "8.0",
                            "ordinal" : "7",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0134",
                            "label" : "8.5",
                            "ordinal" : "8",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0176",
                            "label" : "9.0",
                            "ordinal" : "9",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0177",
                            "label" : "9.5",
                            "ordinal" : "10",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0179",
                            "label" : "10.0",
                            "ordinal" : "11",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "protein",
                    "name" : "Protein",
                    "localizedName" : "Protein",
                    "rmType" : "DV_ORDINAL",
                    "nodeId" : "at0095",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.urinalysis.v1,'Urine Dipstick']/data[at0001]/events[at0002]/data[at0003]/items[at0095]/value",
                    "inputs" : [
                      {
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "at0096",
                            "label" : "Negative",
                            "ordinal" : "1",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0097",
                            "label" : "Trace",
                            "ordinal" : "2",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0098",
                            "label" : "1+",
                            "ordinal" : "3",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0099",
                            "label" : "2+",
                            "ordinal" : "4",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0100",
                            "label" : "3+",
                            "ordinal" : "5",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0101",
                            "label" : "4+",
                            "ordinal" : "6",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "urobilinogen",
                    "name" : "Urobilinogen",
                    "localizedName" : "Urobilinogen",
                    "rmType" : "DV_ORDINAL",
                    "nodeId" : "at0056",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.urinalysis.v1,'Urine Dipstick']/data[at0001]/events[at0002]/data[at0003]/items[at0056]/value",
                    "inputs" : [
                      {
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "at0161",
                            "label" : "Normal (lower)",
                            "ordinal" : "1",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0162",
                            "label" : "Normal (upper)",
                            "ordinal" : "2",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0163",
                            "label" : "2 mg/dL",
                            "ordinal" : "3",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0164",
                            "label" : "4 mg/dL",
                            "ordinal" : "4",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0165",
                            "label" : "8 mg/dL",
                            "ordinal" : "5",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "nitrite",
                    "name" : "Nitrite",
                    "localizedName" : "Nitrite",
                    "rmType" : "DV_ORDINAL",
                    "nodeId" : "at0043",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.urinalysis.v1,'Urine Dipstick']/data[at0001]/events[at0002]/data[at0003]/items[at0043]/value",
                    "inputs" : [
                      {
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "at0159",
                            "label" : "Negative",
                            "ordinal" : "1",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0160",
                            "label" : "Positive",
                            "ordinal" : "2",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "leukocytes",
                    "name" : "Leukocytes",
                    "localizedName" : "Leukocytes",
                    "rmType" : "DV_ORDINAL",
                    "nodeId" : "at0068",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.urinalysis.v1,'Urine Dipstick']/data[at0001]/events[at0002]/data[at0003]/items[at0068]/value",
                    "inputs" : [
                      {
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "at0135",
                            "label" : "Negative",
                            "ordinal" : "1",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0136",
                            "label" : "Trace",
                            "ordinal" : "2",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0137",
                            "label" : "1+",
                            "ordinal" : "3",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0138",
                            "label" : "2+",
                            "ordinal" : "4",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0139",
                            "label" : "3+",
                            "ordinal" : "5",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "clinical_interpretation",
                    "name" : "Clinical interpretation",
                    "localizedName" : "Clinical interpretation",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0181",
                    "min" : "0",
                    "max" : "-1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "Comment: Coding with a terminology is preferred, where possible. For example: normal urinalysis; mild proteinuria; or trace of blood. Multiple statements are allowed."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.urinalysis.v1,'Urine Dipstick']/data[at0001]/events[at0002]/data[at0003]/items[at0181]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "comment",
                    "name" : "Comment",
                    "localizedName" : "Comment",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0030",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "For example: the freshness or small volume of the urine sample, method of collection or any problems with testing."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.urinalysis.v1,'Urine Dipstick']/data[at0001]/events[at0002]/data[at0003]/items[at0030]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "time",
                    "name" : "Time",
                    "rmType" : "DV_DATE_TIME",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.urinalysis.v1,'Urine Dipstick']/data[at0001]/events[at0002]/time",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "type" : "DATETIME"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "method",
                "name" : "Method",
                "localizedName" : "Method",
                "rmType" : "DV_CODED_TEXT",
                "nodeId" : "at0186",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.urinalysis.v1,'Urine Dipstick']/protocol[at0079]/items[at0186]/value",
                "inputs" : [
                  {
                    "suffix" : "code",
                    "type" : "CODED_TEXT",
                    "list" : [
                      {
                        "value" : "at0187",
                        "label" : "Manual",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      },
                      {
                        "value" : "at0188",
                        "label" : "Automatic",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.urinalysis.v1,'Urine Dipstick']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.urinalysis.v1,'Urine Dipstick']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.urinalysis.v1,'Urine Dipstick']/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "syphilis_test_result",
            "name" : "Syphilis test result",
            "localizedName" : "Syphilis test result",
            "rmType" : "OBSERVATION",
            "nodeId" : "openEHR-EHR-OBSERVATION.laboratory_test_result.v1",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']",
            "children" : [
              {
                "id" : "syphilis_test",
                "name" : "Syphilis test",
                "localizedName" : "Syphilis test",
                "rmType" : "EVENT",
                "nodeId" : "at0002",
                "min" : "0",
                "max" : "-1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']/data[at0001]/events[at0002,'Syphilis test']",
                "children" : [
                  {
                    "id" : "test_name",
                    "name" : "Test name",
                    "localizedName" : "Test name",
                    "rmType" : "DV_CODED_TEXT",
                    "nodeId" : "at0005",
                    "min" : "1",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "A test result may be for a single analyte, or a group of items, including panel tests. It is strongly recommended that 'Test name' be coded with a terminology, for example LOINC or SNOMED CT. For example: 'Glucose', 'Urea and Electrolytes', 'Swab', 'Cortisol (am)', 'Potassium in perspiration' or 'Melanoma histopathology'. The name may sometimes include specimen type and patient state, for example 'Fasting blood glucose' or include other information, as 'Potassium (PNA blood gas)'."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']/data[at0001]/events[at0002,'Syphilis test']/data[at0003]/items[at0005]/value",
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "CODED_TEXT",
                        "terminology" : "LOINC",
                        "list" : [
                          {
                            "value" : "LOINC4",
                            "label" : "VDRL",
                            "localizedLabels" : [
                              null
                            ]
                          },
                          {
                            "value" : "LOINC5",
                            "label" : "SD Bioline",
                            "localizedLabels" : [
                              null
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "syphilis_test_result",
                    "name" : "Syphilis test result",
                    "localizedName" : "Syphilis test result",
                    "rmType" : "CLUSTER",
                    "nodeId" : "openEHR-EHR-CLUSTER.laboratory_test_analyte.v1",
                    "min" : "0",
                    "max" : "-1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']/data[at0001]/events[at0002,'Syphilis test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Syphilis test result']",
                    "children" : [
                      {
                        "id" : "result",
                        "name" : "Result",
                        "localizedName" : "Result",
                        "rmType" : "DV_TEXT",
                        "nodeId" : "at0001",
                        "min" : "0",
                        "max" : "-1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "annotations" : {
                          "comment" : "For example '7.3 mmol/l', 'Raised'. The 'Any' data type will need to be constrained to an appropriate data type in a specialisation, a template or at run-time to reflect the actual analyte result. The Quantity data type has reference model attributes that include flags for normal/abnormal, reference ranges and approximations - see https://specifications.openehr.org/releases/RM/latest/data_types.html#_dv_quantity_class for more details.",
                          "fhir_mapping" : "Observation.value[x]",
                          "hl7v2_mapping" : "OBX.2, OBX.5, OBX.6, OBX.7, OBX.8"
                        },
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']/data[at0001]/events[at0002,'Syphilis test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Syphilis test result']/items[at0001,'Result']/value",
                        "inputs" : [
                          {
                            "type" : "TEXT",
                            "list" : [
                              {
                                "value" : "Positive",
                                "label" : "Positive"
                              },
                              {
                                "value" : "Negative",
                                "label" : "Negative"
                              },
                              {
                                "value" : "Invalid",
                                "label" : "Invalid"
                              }
                            ],
                            "listOpen" : false
                          }
                        ]
                      },
                      {
                        "id" : "test_method",
                        "name" : "Test method",
                        "localizedName" : "Test method",
                        "rmType" : "ELEMENT",
                        "nodeId" : "at0028",
                        "min" : "0",
                        "max" : "1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "annotations" : {
                          "comment" : "If the test method applies to an entire panel, the test method can be captured using the 'Test method' data element within the OBSERVATION.laboratory_test_result"
                        },
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']/data[at0001]/events[at0002,'Syphilis test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Syphilis test result']/items[at0028]",
                        "children" : [
                          {
                            "id" : "coded_text_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_CODED_TEXT",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']/data[at0001]/events[at0002,'Syphilis test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Syphilis test result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "code",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "value",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "text_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_TEXT",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']/data[at0001]/events[at0002,'Syphilis test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Syphilis test result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "multimedia_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_MULTIMEDIA",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']/data[at0001]/events[at0002,'Syphilis test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Syphilis test result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "parsable_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_PARSABLE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']/data[at0001]/events[at0002,'Syphilis test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Syphilis test result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "value",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "formalism",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "state_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_STATE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']/data[at0001]/events[at0002,'Syphilis test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Syphilis test result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "code",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "value",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "boolean_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_BOOLEAN",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']/data[at0001]/events[at0002,'Syphilis test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Syphilis test result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "BOOLEAN"
                              }
                            ]
                          },
                          {
                            "id" : "identifier_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_IDENTIFIER",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']/data[at0001]/events[at0002,'Syphilis test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Syphilis test result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "id",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "type",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "issuer",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "assigner",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "uri_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_URI",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']/data[at0001]/events[at0002,'Syphilis test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Syphilis test result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "ehr_uri_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_EHR_URI",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']/data[at0001]/events[at0002,'Syphilis test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Syphilis test result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "duration_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_DURATION",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']/data[at0001]/events[at0002,'Syphilis test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Syphilis test result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "year",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "month",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "day",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "week",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "hour",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "minute",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "second",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              }
                            ]
                          },
                          {
                            "id" : "quantity_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_QUANTITY",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']/data[at0001]/events[at0002,'Syphilis test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Syphilis test result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "magnitude",
                                "type" : "DECIMAL"
                              },
                              {
                                "suffix" : "unit",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "count_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_COUNT",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']/data[at0001]/events[at0002,'Syphilis test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Syphilis test result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "INTEGER"
                              }
                            ]
                          },
                          {
                            "id" : "proportion_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_PROPORTION",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']/data[at0001]/events[at0002,'Syphilis test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Syphilis test result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "numerator",
                                "type" : "DECIMAL"
                              },
                              {
                                "suffix" : "denominator",
                                "type" : "DECIMAL"
                              }
                            ]
                          },
                          {
                            "id" : "date_time_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_DATE_TIME",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']/data[at0001]/events[at0002,'Syphilis test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Syphilis test result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "DATETIME"
                              }
                            ]
                          },
                          {
                            "id" : "date_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_DATE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']/data[at0001]/events[at0002,'Syphilis test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Syphilis test result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "DATE"
                              }
                            ]
                          },
                          {
                            "id" : "time_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_TIME",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']/data[at0001]/events[at0002,'Syphilis test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Syphilis test result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TIME"
                              }
                            ]
                          },
                          {
                            "id" : "ordinal_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_ORDINAL",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']/data[at0001]/events[at0002,'Syphilis test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Syphilis test result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "CODED_TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "scale_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_SCALE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']/data[at0001]/events[at0002,'Syphilis test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Syphilis test result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "CODED_TEXT"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "conclusion",
                    "name" : "Conclusion",
                    "localizedName" : "Conclusion",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0057",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "For example: 'Pattern suggests significant renal impairment'. The content of the conclusion will vary, depending on the investigation performed. This conclusion should be aligned with the coded 'Test diagnosis'."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']/data[at0001]/events[at0002,'Syphilis test']/data[at0003]/items[at0057]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "time",
                    "name" : "Time",
                    "rmType" : "DV_DATE_TIME",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']/data[at0001]/events[at0002,'Syphilis test']/time",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "type" : "DATETIME"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Syphilis test result']/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "hba1c",
            "name" : "HbA1c",
            "localizedName" : "HbA1c",
            "rmType" : "OBSERVATION",
            "nodeId" : "openEHR-EHR-OBSERVATION.laboratory_test_result.v1",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']",
            "children" : [
              {
                "id" : "hba1c_test",
                "name" : "HBa1c test",
                "localizedName" : "HBa1c test",
                "rmType" : "EVENT",
                "nodeId" : "at0002",
                "min" : "0",
                "max" : "-1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/data[at0001]/events[at0002,'HBa1c test']",
                "children" : [
                  {
                    "id" : "test_name",
                    "name" : "Test name",
                    "localizedName" : "Test name",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0005",
                    "min" : "1",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "A test result may be for a single analyte, or a group of items, including panel tests. It is strongly recommended that 'Test name' be coded with a terminology, for example LOINC or SNOMED CT. For example: 'Glucose', 'Urea and Electrolytes', 'Swab', 'Cortisol (am)', 'Potassium in perspiration' or 'Melanoma histopathology'. The name may sometimes include specimen type and patient state, for example 'Fasting blood glucose' or include other information, as 'Potassium (PNA blood gas)'."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/data[at0001]/events[at0002,'HBa1c test']/data[at0003]/items[at0005]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT",
                        "list" : [
                          {
                            "value" : "HbA1c",
                            "label" : "HbA1c"
                          }
                        ],
                        "listOpen" : false
                      }
                    ]
                  },
                  {
                    "id" : "hba1c_result",
                    "name" : "HbA1c result",
                    "localizedName" : "HbA1c result",
                    "rmType" : "CLUSTER",
                    "nodeId" : "openEHR-EHR-CLUSTER.laboratory_test_analyte.v1",
                    "min" : "0",
                    "max" : "-1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/data[at0001]/events[at0002,'HBa1c test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HbA1c result']",
                    "children" : [
                      {
                        "id" : "result",
                        "name" : "Result",
                        "localizedName" : "Result",
                        "rmType" : "DV_QUANTITY",
                        "nodeId" : "at0001",
                        "min" : "0",
                        "max" : "-1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "annotations" : {
                          "comment" : "For example '7.3 mmol/l', 'Raised'. The 'Any' data type will need to be constrained to an appropriate data type in a specialisation, a template or at run-time to reflect the actual analyte result. The Quantity data type has reference model attributes that include flags for normal/abnormal, reference ranges and approximations - see https://specifications.openehr.org/releases/RM/latest/data_types.html#_dv_quantity_class for more details.",
                          "fhir_mapping" : "Observation.value[x]",
                          "hl7v2_mapping" : "OBX.2, OBX.5, OBX.6, OBX.7, OBX.8"
                        },
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/data[at0001]/events[at0002,'HBa1c test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HbA1c result']/items[at0001,'Result']/value",
                        "inputs" : [
                          {
                            "suffix" : "magnitude",
                            "type" : "DECIMAL"
                          },
                          {
                            "suffix" : "unit",
                            "type" : "CODED_TEXT",
                            "list" : [
                              {
                                "value" : "mmol/mol",
                                "label" : "mmol/mol"
                              },
                              {
                                "value" : "%",
                                "label" : "%"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "id" : "test_method",
                        "name" : "Test method",
                        "localizedName" : "Test method",
                        "rmType" : "ELEMENT",
                        "nodeId" : "at0028",
                        "min" : "0",
                        "max" : "1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "annotations" : {
                          "comment" : "If the test method applies to an entire panel, the test method can be captured using the 'Test method' data element within the OBSERVATION.laboratory_test_result"
                        },
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/data[at0001]/events[at0002,'HBa1c test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HbA1c result']/items[at0028]",
                        "children" : [
                          {
                            "id" : "coded_text_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_CODED_TEXT",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/data[at0001]/events[at0002,'HBa1c test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HbA1c result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "code",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "value",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "text_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_TEXT",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/data[at0001]/events[at0002,'HBa1c test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HbA1c result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "multimedia_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_MULTIMEDIA",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/data[at0001]/events[at0002,'HBa1c test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HbA1c result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "parsable_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_PARSABLE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/data[at0001]/events[at0002,'HBa1c test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HbA1c result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "value",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "formalism",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "state_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_STATE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/data[at0001]/events[at0002,'HBa1c test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HbA1c result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "code",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "value",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "boolean_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_BOOLEAN",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/data[at0001]/events[at0002,'HBa1c test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HbA1c result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "BOOLEAN"
                              }
                            ]
                          },
                          {
                            "id" : "identifier_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_IDENTIFIER",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/data[at0001]/events[at0002,'HBa1c test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HbA1c result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "id",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "type",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "issuer",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "assigner",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "uri_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_URI",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/data[at0001]/events[at0002,'HBa1c test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HbA1c result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "ehr_uri_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_EHR_URI",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/data[at0001]/events[at0002,'HBa1c test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HbA1c result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "duration_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_DURATION",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/data[at0001]/events[at0002,'HBa1c test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HbA1c result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "year",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "month",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "day",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "week",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "hour",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "minute",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "second",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              }
                            ]
                          },
                          {
                            "id" : "quantity_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_QUANTITY",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/data[at0001]/events[at0002,'HBa1c test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HbA1c result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "magnitude",
                                "type" : "DECIMAL"
                              },
                              {
                                "suffix" : "unit",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "count_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_COUNT",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/data[at0001]/events[at0002,'HBa1c test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HbA1c result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "INTEGER"
                              }
                            ]
                          },
                          {
                            "id" : "proportion_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_PROPORTION",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/data[at0001]/events[at0002,'HBa1c test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HbA1c result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "numerator",
                                "type" : "DECIMAL"
                              },
                              {
                                "suffix" : "denominator",
                                "type" : "DECIMAL"
                              }
                            ]
                          },
                          {
                            "id" : "date_time_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_DATE_TIME",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/data[at0001]/events[at0002,'HBa1c test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HbA1c result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "DATETIME"
                              }
                            ]
                          },
                          {
                            "id" : "date_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_DATE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/data[at0001]/events[at0002,'HBa1c test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HbA1c result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "DATE"
                              }
                            ]
                          },
                          {
                            "id" : "time_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_TIME",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/data[at0001]/events[at0002,'HBa1c test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HbA1c result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TIME"
                              }
                            ]
                          },
                          {
                            "id" : "ordinal_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_ORDINAL",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/data[at0001]/events[at0002,'HBa1c test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HbA1c result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "CODED_TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "scale_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_SCALE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/data[at0001]/events[at0002,'HBa1c test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'HbA1c result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "CODED_TEXT"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "conclusion",
                    "name" : "Conclusion",
                    "localizedName" : "Conclusion",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0057",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "For example: 'Pattern suggests significant renal impairment'. The content of the conclusion will vary, depending on the investigation performed. This conclusion should be aligned with the coded 'Test diagnosis'."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/data[at0001]/events[at0002,'HBa1c test']/data[at0003]/items[at0057]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "time",
                    "name" : "Time",
                    "rmType" : "DV_DATE_TIME",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/data[at0001]/events[at0002,'HBa1c test']/time",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "type" : "DATETIME"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "point-of-care_test",
                "name" : "Point-of-care test",
                "localizedName" : "Point-of-care test",
                "rmType" : "DV_BOOLEAN",
                "nodeId" : "at0111",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "True if the test was performed directly at Point-of-Care (POCT)."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/protocol[at0004]/items[at0111]/value",
                "inputs" : [
                  {
                    "type" : "BOOLEAN",
                    "defaultValue" : true
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'HbA1c']/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "cholesterol",
            "name" : "Cholesterol",
            "localizedName" : "Cholesterol",
            "rmType" : "OBSERVATION",
            "nodeId" : "openEHR-EHR-OBSERVATION.laboratory_test_result.v1",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']",
            "children" : [
              {
                "id" : "cholesterol_test",
                "name" : "Cholesterol test",
                "localizedName" : "Cholesterol test",
                "rmType" : "EVENT",
                "nodeId" : "at0002",
                "min" : "0",
                "max" : "-1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/data[at0001]/events[at0002,'Cholesterol test']",
                "children" : [
                  {
                    "id" : "test_name",
                    "name" : "Test name",
                    "localizedName" : "Test name",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0005",
                    "min" : "1",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "A test result may be for a single analyte, or a group of items, including panel tests. It is strongly recommended that 'Test name' be coded with a terminology, for example LOINC or SNOMED CT. For example: 'Glucose', 'Urea and Electrolytes', 'Swab', 'Cortisol (am)', 'Potassium in perspiration' or 'Melanoma histopathology'. The name may sometimes include specimen type and patient state, for example 'Fasting blood glucose' or include other information, as 'Potassium (PNA blood gas)'."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/data[at0001]/events[at0002,'Cholesterol test']/data[at0003]/items[at0005]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT",
                        "list" : [
                          {
                            "value" : "Cholesterol",
                            "label" : "Cholesterol"
                          }
                        ],
                        "listOpen" : false
                      }
                    ]
                  },
                  {
                    "id" : "cholesterol_result",
                    "name" : "Cholesterol result",
                    "localizedName" : "Cholesterol result",
                    "rmType" : "CLUSTER",
                    "nodeId" : "openEHR-EHR-CLUSTER.laboratory_test_analyte.v1",
                    "min" : "0",
                    "max" : "-1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/data[at0001]/events[at0002,'Cholesterol test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cholesterol result']",
                    "children" : [
                      {
                        "id" : "result",
                        "name" : "Result",
                        "localizedName" : "Result",
                        "rmType" : "DV_QUANTITY",
                        "nodeId" : "at0001",
                        "min" : "0",
                        "max" : "-1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "annotations" : {
                          "comment" : "For example '7.3 mmol/l', 'Raised'. The 'Any' data type will need to be constrained to an appropriate data type in a specialisation, a template or at run-time to reflect the actual analyte result. The Quantity data type has reference model attributes that include flags for normal/abnormal, reference ranges and approximations - see https://specifications.openehr.org/releases/RM/latest/data_types.html#_dv_quantity_class for more details.",
                          "fhir_mapping" : "Observation.value[x]",
                          "hl7v2_mapping" : "OBX.2, OBX.5, OBX.6, OBX.7, OBX.8"
                        },
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/data[at0001]/events[at0002,'Cholesterol test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cholesterol result']/items[at0001,'Result']/value",
                        "inputs" : [
                          {
                            "suffix" : "magnitude",
                            "type" : "DECIMAL"
                          },
                          {
                            "suffix" : "unit",
                            "type" : "CODED_TEXT",
                            "list" : [
                              {
                                "value" : "mg/dl",
                                "label" : "mg/dl"
                              },
                              {
                                "value" : "mmol/L",
                                "label" : "mmol/L"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "id" : "test_method",
                        "name" : "Test method",
                        "localizedName" : "Test method",
                        "rmType" : "ELEMENT",
                        "nodeId" : "at0028",
                        "min" : "0",
                        "max" : "1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "annotations" : {
                          "comment" : "If the test method applies to an entire panel, the test method can be captured using the 'Test method' data element within the OBSERVATION.laboratory_test_result"
                        },
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/data[at0001]/events[at0002,'Cholesterol test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cholesterol result']/items[at0028]",
                        "children" : [
                          {
                            "id" : "coded_text_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_CODED_TEXT",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/data[at0001]/events[at0002,'Cholesterol test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cholesterol result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "code",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "value",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "text_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_TEXT",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/data[at0001]/events[at0002,'Cholesterol test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cholesterol result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "multimedia_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_MULTIMEDIA",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/data[at0001]/events[at0002,'Cholesterol test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cholesterol result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "parsable_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_PARSABLE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/data[at0001]/events[at0002,'Cholesterol test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cholesterol result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "value",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "formalism",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "state_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_STATE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/data[at0001]/events[at0002,'Cholesterol test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cholesterol result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "code",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "value",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "boolean_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_BOOLEAN",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/data[at0001]/events[at0002,'Cholesterol test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cholesterol result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "BOOLEAN"
                              }
                            ]
                          },
                          {
                            "id" : "identifier_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_IDENTIFIER",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/data[at0001]/events[at0002,'Cholesterol test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cholesterol result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "id",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "type",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "issuer",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "assigner",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "uri_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_URI",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/data[at0001]/events[at0002,'Cholesterol test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cholesterol result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "ehr_uri_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_EHR_URI",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/data[at0001]/events[at0002,'Cholesterol test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cholesterol result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "duration_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_DURATION",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/data[at0001]/events[at0002,'Cholesterol test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cholesterol result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "year",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "month",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "day",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "week",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "hour",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "minute",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "second",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              }
                            ]
                          },
                          {
                            "id" : "quantity_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_QUANTITY",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/data[at0001]/events[at0002,'Cholesterol test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cholesterol result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "magnitude",
                                "type" : "DECIMAL"
                              },
                              {
                                "suffix" : "unit",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "count_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_COUNT",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/data[at0001]/events[at0002,'Cholesterol test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cholesterol result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "INTEGER"
                              }
                            ]
                          },
                          {
                            "id" : "proportion_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_PROPORTION",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/data[at0001]/events[at0002,'Cholesterol test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cholesterol result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "numerator",
                                "type" : "DECIMAL"
                              },
                              {
                                "suffix" : "denominator",
                                "type" : "DECIMAL"
                              }
                            ]
                          },
                          {
                            "id" : "date_time_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_DATE_TIME",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/data[at0001]/events[at0002,'Cholesterol test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cholesterol result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "DATETIME"
                              }
                            ]
                          },
                          {
                            "id" : "date_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_DATE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/data[at0001]/events[at0002,'Cholesterol test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cholesterol result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "DATE"
                              }
                            ]
                          },
                          {
                            "id" : "time_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_TIME",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/data[at0001]/events[at0002,'Cholesterol test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cholesterol result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TIME"
                              }
                            ]
                          },
                          {
                            "id" : "ordinal_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_ORDINAL",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/data[at0001]/events[at0002,'Cholesterol test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cholesterol result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "CODED_TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "scale_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_SCALE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/data[at0001]/events[at0002,'Cholesterol test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cholesterol result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "CODED_TEXT"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "conclusion",
                    "name" : "Conclusion",
                    "localizedName" : "Conclusion",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0057",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "For example: 'Pattern suggests significant renal impairment'. The content of the conclusion will vary, depending on the investigation performed. This conclusion should be aligned with the coded 'Test diagnosis'."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/data[at0001]/events[at0002,'Cholesterol test']/data[at0003]/items[at0057]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "time",
                    "name" : "Time",
                    "rmType" : "DV_DATE_TIME",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/data[at0001]/events[at0002,'Cholesterol test']/time",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "type" : "DATETIME"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "point-of-care_test",
                "name" : "Point-of-care test",
                "localizedName" : "Point-of-care test",
                "rmType" : "DV_BOOLEAN",
                "nodeId" : "at0111",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "True if the test was performed directly at Point-of-Care (POCT)."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/protocol[at0004]/items[at0111]/value",
                "inputs" : [
                  {
                    "type" : "BOOLEAN",
                    "defaultValue" : true
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cholesterol']/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "cd4_count",
            "name" : "CD4 count",
            "localizedName" : "CD4 count",
            "rmType" : "OBSERVATION",
            "nodeId" : "openEHR-EHR-OBSERVATION.laboratory_test_result.v1",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']",
            "children" : [
              {
                "id" : "cd4_test",
                "name" : "CD4 test",
                "localizedName" : "CD4 test",
                "rmType" : "EVENT",
                "nodeId" : "at0002",
                "min" : "0",
                "max" : "-1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/data[at0001]/events[at0002,'CD4 test']",
                "children" : [
                  {
                    "id" : "test_name",
                    "name" : "Test name",
                    "localizedName" : "Test name",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0005",
                    "min" : "1",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "A test result may be for a single analyte, or a group of items, including panel tests. It is strongly recommended that 'Test name' be coded with a terminology, for example LOINC or SNOMED CT. For example: 'Glucose', 'Urea and Electrolytes', 'Swab', 'Cortisol (am)', 'Potassium in perspiration' or 'Melanoma histopathology'. The name may sometimes include specimen type and patient state, for example 'Fasting blood glucose' or include other information, as 'Potassium (PNA blood gas)'."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/data[at0001]/events[at0002,'CD4 test']/data[at0003]/items[at0005]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT",
                        "list" : [
                          {
                            "value" : "CD4 Count",
                            "label" : "CD4 Count"
                          }
                        ],
                        "listOpen" : false
                      }
                    ]
                  },
                  {
                    "id" : "cd4_count",
                    "name" : "CD4 count",
                    "localizedName" : "CD4 count",
                    "rmType" : "CLUSTER",
                    "nodeId" : "openEHR-EHR-CLUSTER.laboratory_test_analyte.v1",
                    "min" : "0",
                    "max" : "-1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/data[at0001]/events[at0002,'CD4 test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'CD4 count']",
                    "children" : [
                      {
                        "id" : "result",
                        "name" : "Result",
                        "localizedName" : "Result",
                        "rmType" : "ELEMENT",
                        "nodeId" : "at0001",
                        "min" : "0",
                        "max" : "-1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "annotations" : {
                          "comment" : "For example '7.3 mmol/l', 'Raised'. The 'Any' data type will need to be constrained to an appropriate data type in a specialisation, a template or at run-time to reflect the actual analyte result. The Quantity data type has reference model attributes that include flags for normal/abnormal, reference ranges and approximations - see https://specifications.openehr.org/releases/RM/latest/data_types.html#_dv_quantity_class for more details.",
                          "fhir_mapping" : "Observation.value[x]",
                          "hl7v2_mapping" : "OBX.2, OBX.5, OBX.6, OBX.7, OBX.8"
                        },
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/data[at0001]/events[at0002,'CD4 test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'CD4 count']/items[at0001,'Result']",
                        "children" : [
                          {
                            "id" : "quantity_value",
                            "localizedName" : "Result",
                            "rmType" : "DV_QUANTITY",
                            "nodeId" : "",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/data[at0001]/events[at0002,'CD4 test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'CD4 count']/items[at0001,'Result']/value",
                            "inputs" : [
                              {
                                "suffix" : "magnitude",
                                "type" : "DECIMAL"
                              },
                              {
                                "suffix" : "unit",
                                "type" : "CODED_TEXT",
                                "list" : [
                                  {
                                    "value" : "mm3",
                                    "label" : "mm3",
                                    "localizedLabels" : [
                                      null
                                    ]
                                  },
                                  {
                                    "value" : "1/mm3",
                                    "label" : "1/mm3"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "id" : "proportion_value",
                            "localizedName" : "Result",
                            "rmType" : "DV_PROPORTION",
                            "nodeId" : "",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/data[at0001]/events[at0002,'CD4 test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'CD4 count']/items[at0001,'Result']/value",
                            "inputs" : [
                              {
                                "suffix" : "numerator",
                                "type" : "DECIMAL"
                              },
                              {
                                "suffix" : "denominator",
                                "type" : "DECIMAL",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 1.0,
                                    "maxOp" : "<=",
                                    "max" : 1.0
                                  }
                                }
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "id" : "test_method",
                        "name" : "Test method",
                        "localizedName" : "Test method",
                        "rmType" : "ELEMENT",
                        "nodeId" : "at0028",
                        "min" : "0",
                        "max" : "1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "annotations" : {
                          "comment" : "If the test method applies to an entire panel, the test method can be captured using the 'Test method' data element within the OBSERVATION.laboratory_test_result"
                        },
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/data[at0001]/events[at0002,'CD4 test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'CD4 count']/items[at0028]",
                        "children" : [
                          {
                            "id" : "coded_text_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_CODED_TEXT",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/data[at0001]/events[at0002,'CD4 test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'CD4 count']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "code",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "value",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "text_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_TEXT",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/data[at0001]/events[at0002,'CD4 test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'CD4 count']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "multimedia_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_MULTIMEDIA",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/data[at0001]/events[at0002,'CD4 test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'CD4 count']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "parsable_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_PARSABLE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/data[at0001]/events[at0002,'CD4 test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'CD4 count']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "value",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "formalism",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "state_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_STATE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/data[at0001]/events[at0002,'CD4 test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'CD4 count']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "code",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "value",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "boolean_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_BOOLEAN",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/data[at0001]/events[at0002,'CD4 test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'CD4 count']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "BOOLEAN"
                              }
                            ]
                          },
                          {
                            "id" : "identifier_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_IDENTIFIER",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/data[at0001]/events[at0002,'CD4 test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'CD4 count']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "id",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "type",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "issuer",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "assigner",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "uri_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_URI",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/data[at0001]/events[at0002,'CD4 test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'CD4 count']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "ehr_uri_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_EHR_URI",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/data[at0001]/events[at0002,'CD4 test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'CD4 count']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "duration_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_DURATION",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/data[at0001]/events[at0002,'CD4 test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'CD4 count']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "year",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "month",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "day",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "week",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "hour",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "minute",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "second",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              }
                            ]
                          },
                          {
                            "id" : "quantity_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_QUANTITY",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/data[at0001]/events[at0002,'CD4 test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'CD4 count']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "magnitude",
                                "type" : "DECIMAL"
                              },
                              {
                                "suffix" : "unit",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "count_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_COUNT",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/data[at0001]/events[at0002,'CD4 test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'CD4 count']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "INTEGER"
                              }
                            ]
                          },
                          {
                            "id" : "proportion_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_PROPORTION",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/data[at0001]/events[at0002,'CD4 test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'CD4 count']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "numerator",
                                "type" : "DECIMAL"
                              },
                              {
                                "suffix" : "denominator",
                                "type" : "DECIMAL"
                              }
                            ]
                          },
                          {
                            "id" : "date_time_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_DATE_TIME",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/data[at0001]/events[at0002,'CD4 test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'CD4 count']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "DATETIME"
                              }
                            ]
                          },
                          {
                            "id" : "date_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_DATE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/data[at0001]/events[at0002,'CD4 test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'CD4 count']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "DATE"
                              }
                            ]
                          },
                          {
                            "id" : "time_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_TIME",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/data[at0001]/events[at0002,'CD4 test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'CD4 count']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TIME"
                              }
                            ]
                          },
                          {
                            "id" : "ordinal_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_ORDINAL",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/data[at0001]/events[at0002,'CD4 test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'CD4 count']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "CODED_TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "scale_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_SCALE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/data[at0001]/events[at0002,'CD4 test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'CD4 count']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "CODED_TEXT"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "conclusion",
                    "name" : "Conclusion",
                    "localizedName" : "Conclusion",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0057",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "For example: 'Pattern suggests significant renal impairment'. The content of the conclusion will vary, depending on the investigation performed. This conclusion should be aligned with the coded 'Test diagnosis'."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/data[at0001]/events[at0002,'CD4 test']/data[at0003]/items[at0057]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "time",
                    "name" : "Time",
                    "rmType" : "DV_DATE_TIME",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/data[at0001]/events[at0002,'CD4 test']/time",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "type" : "DATETIME"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "point-of-care_test",
                "name" : "Point-of-care test",
                "localizedName" : "Point-of-care test",
                "rmType" : "DV_BOOLEAN",
                "nodeId" : "at0111",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "True if the test was performed directly at Point-of-Care (POCT)."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/protocol[at0004]/items[at0111]/value",
                "inputs" : [
                  {
                    "type" : "BOOLEAN",
                    "defaultValue" : true
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'CD4 count']/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "covid_antigen_test_result",
            "name" : "Covid antigen test result",
            "localizedName" : "Covid antigen test result",
            "rmType" : "OBSERVATION",
            "nodeId" : "openEHR-EHR-OBSERVATION.laboratory_test_result.v1",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']",
            "children" : [
              {
                "id" : "covid_antigen_test",
                "name" : "Covid antigen test",
                "localizedName" : "Covid antigen test",
                "rmType" : "EVENT",
                "nodeId" : "at0002",
                "min" : "0",
                "max" : "-1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/data[at0001]/events[at0002,'Covid antigen test']",
                "children" : [
                  {
                    "id" : "test_name",
                    "name" : "Test name",
                    "localizedName" : "Test name",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0005",
                    "min" : "1",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "A test result may be for a single analyte, or a group of items, including panel tests. It is strongly recommended that 'Test name' be coded with a terminology, for example LOINC or SNOMED CT. For example: 'Glucose', 'Urea and Electrolytes', 'Swab', 'Cortisol (am)', 'Potassium in perspiration' or 'Melanoma histopathology'. The name may sometimes include specimen type and patient state, for example 'Fasting blood glucose' or include other information, as 'Potassium (PNA blood gas)'."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/data[at0001]/events[at0002,'Covid antigen test']/data[at0003]/items[at0005]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT",
                        "list" : [
                          {
                            "value" : "Covid antigen test",
                            "label" : "Covid antigen test"
                          }
                        ],
                        "listOpen" : false
                      }
                    ]
                  },
                  {
                    "id" : "covid_antigen_test",
                    "name" : "Covid antigen test",
                    "localizedName" : "Covid antigen test",
                    "rmType" : "CLUSTER",
                    "nodeId" : "openEHR-EHR-CLUSTER.laboratory_test_analyte.v1",
                    "min" : "0",
                    "max" : "-1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/data[at0001]/events[at0002,'Covid antigen test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Covid antigen test']",
                    "children" : [
                      {
                        "id" : "result",
                        "name" : "Result",
                        "localizedName" : "Result",
                        "rmType" : "DV_TEXT",
                        "nodeId" : "at0001",
                        "min" : "0",
                        "max" : "-1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "annotations" : {
                          "comment" : "For example '7.3 mmol/l', 'Raised'. The 'Any' data type will need to be constrained to an appropriate data type in a specialisation, a template or at run-time to reflect the actual analyte result. The Quantity data type has reference model attributes that include flags for normal/abnormal, reference ranges and approximations - see https://specifications.openehr.org/releases/RM/latest/data_types.html#_dv_quantity_class for more details.",
                          "fhir_mapping" : "Observation.value[x]",
                          "hl7v2_mapping" : "OBX.2, OBX.5, OBX.6, OBX.7, OBX.8"
                        },
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/data[at0001]/events[at0002,'Covid antigen test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Covid antigen test']/items[at0001,'Result']/value",
                        "inputs" : [
                          {
                            "type" : "TEXT",
                            "list" : [
                              {
                                "value" : "Positive",
                                "label" : "Positive"
                              },
                              {
                                "value" : "Negative",
                                "label" : "Negative"
                              },
                              {
                                "value" : "Indeterminate",
                                "label" : "Indeterminate"
                              }
                            ],
                            "listOpen" : false
                          }
                        ]
                      },
                      {
                        "id" : "test_method",
                        "name" : "Test method",
                        "localizedName" : "Test method",
                        "rmType" : "ELEMENT",
                        "nodeId" : "at0028",
                        "min" : "0",
                        "max" : "1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "annotations" : {
                          "comment" : "If the test method applies to an entire panel, the test method can be captured using the 'Test method' data element within the OBSERVATION.laboratory_test_result"
                        },
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/data[at0001]/events[at0002,'Covid antigen test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Covid antigen test']/items[at0028]",
                        "children" : [
                          {
                            "id" : "coded_text_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_CODED_TEXT",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/data[at0001]/events[at0002,'Covid antigen test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Covid antigen test']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "code",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "value",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "text_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_TEXT",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/data[at0001]/events[at0002,'Covid antigen test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Covid antigen test']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "multimedia_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_MULTIMEDIA",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/data[at0001]/events[at0002,'Covid antigen test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Covid antigen test']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "parsable_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_PARSABLE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/data[at0001]/events[at0002,'Covid antigen test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Covid antigen test']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "value",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "formalism",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "state_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_STATE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/data[at0001]/events[at0002,'Covid antigen test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Covid antigen test']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "code",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "value",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "boolean_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_BOOLEAN",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/data[at0001]/events[at0002,'Covid antigen test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Covid antigen test']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "BOOLEAN"
                              }
                            ]
                          },
                          {
                            "id" : "identifier_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_IDENTIFIER",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/data[at0001]/events[at0002,'Covid antigen test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Covid antigen test']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "id",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "type",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "issuer",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "assigner",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "uri_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_URI",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/data[at0001]/events[at0002,'Covid antigen test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Covid antigen test']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "ehr_uri_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_EHR_URI",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/data[at0001]/events[at0002,'Covid antigen test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Covid antigen test']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "duration_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_DURATION",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/data[at0001]/events[at0002,'Covid antigen test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Covid antigen test']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "year",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "month",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "day",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "week",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "hour",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "minute",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "second",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              }
                            ]
                          },
                          {
                            "id" : "quantity_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_QUANTITY",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/data[at0001]/events[at0002,'Covid antigen test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Covid antigen test']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "magnitude",
                                "type" : "DECIMAL"
                              },
                              {
                                "suffix" : "unit",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "count_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_COUNT",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/data[at0001]/events[at0002,'Covid antigen test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Covid antigen test']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "INTEGER"
                              }
                            ]
                          },
                          {
                            "id" : "proportion_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_PROPORTION",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/data[at0001]/events[at0002,'Covid antigen test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Covid antigen test']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "numerator",
                                "type" : "DECIMAL"
                              },
                              {
                                "suffix" : "denominator",
                                "type" : "DECIMAL"
                              }
                            ]
                          },
                          {
                            "id" : "date_time_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_DATE_TIME",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/data[at0001]/events[at0002,'Covid antigen test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Covid antigen test']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "DATETIME"
                              }
                            ]
                          },
                          {
                            "id" : "date_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_DATE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/data[at0001]/events[at0002,'Covid antigen test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Covid antigen test']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "DATE"
                              }
                            ]
                          },
                          {
                            "id" : "time_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_TIME",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/data[at0001]/events[at0002,'Covid antigen test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Covid antigen test']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TIME"
                              }
                            ]
                          },
                          {
                            "id" : "ordinal_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_ORDINAL",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/data[at0001]/events[at0002,'Covid antigen test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Covid antigen test']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "CODED_TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "scale_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_SCALE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/data[at0001]/events[at0002,'Covid antigen test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Covid antigen test']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "CODED_TEXT"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "conclusion",
                    "name" : "Conclusion",
                    "localizedName" : "Conclusion",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0057",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "For example: 'Pattern suggests significant renal impairment'. The content of the conclusion will vary, depending on the investigation performed. This conclusion should be aligned with the coded 'Test diagnosis'."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/data[at0001]/events[at0002,'Covid antigen test']/data[at0003]/items[at0057]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "time",
                    "name" : "Time",
                    "rmType" : "DV_DATE_TIME",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/data[at0001]/events[at0002,'Covid antigen test']/time",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "type" : "DATETIME"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "point-of-care_test",
                "name" : "Point-of-care test",
                "localizedName" : "Point-of-care test",
                "rmType" : "DV_BOOLEAN",
                "nodeId" : "at0111",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "True if the test was performed directly at Point-of-Care (POCT)."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/protocol[at0004]/items[at0111]/value",
                "inputs" : [
                  {
                    "type" : "BOOLEAN",
                    "defaultValue" : true
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Covid antigen test result']/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "pregnancy_test_result",
            "name" : "Pregnancy test result",
            "localizedName" : "Pregnancy test result",
            "rmType" : "OBSERVATION",
            "nodeId" : "openEHR-EHR-OBSERVATION.pregnancy_test.v0",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.pregnancy_test.v0]",
            "children" : [
              {
                "id" : "point_in_time",
                "name" : "Point in time",
                "localizedName" : "Point in time",
                "rmType" : "POINT_EVENT",
                "nodeId" : "at0002",
                "min" : "0",
                "max" : "-1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.pregnancy_test.v0]/data[at0001]/events[at0002]",
                "children" : [
                  {
                    "id" : "result",
                    "name" : "Result",
                    "localizedName" : "Result",
                    "rmType" : "DV_CODED_TEXT",
                    "nodeId" : "at0004",
                    "min" : "1",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.pregnancy_test.v0]/data[at0001]/events[at0002]/data[at0003]/items[at0004]/value",
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "at0005",
                            "label" : "Negative",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0006",
                            "label" : "Inconclusive",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0007",
                            "label" : "Weakly positive",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0008",
                            "label" : "Strongly positive",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0011",
                            "label" : "Indeterminate",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "time",
                    "name" : "Time",
                    "rmType" : "DV_DATE_TIME",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.pregnancy_test.v0]/data[at0001]/events[at0002]/time",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "type" : "DATETIME"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "method",
                "name" : "Method",
                "localizedName" : "Method",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0014",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.pregnancy_test.v0]/protocol[at0009]/items[at0014]/value",
                "inputs" : [
                  {
                    "type" : "TEXT"
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.pregnancy_test.v0]/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.pregnancy_test.v0]/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.pregnancy_test.v0]/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "cardiac_enzymes",
            "name" : "Cardiac enzymes",
            "localizedName" : "Cardiac enzymes",
            "rmType" : "OBSERVATION",
            "nodeId" : "openEHR-EHR-OBSERVATION.laboratory_test_result.v1",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']",
            "children" : [
              {
                "id" : "cardiac_enzyme_test",
                "name" : "Cardiac enzyme test",
                "localizedName" : "Cardiac enzyme test",
                "rmType" : "EVENT",
                "nodeId" : "at0002",
                "min" : "0",
                "max" : "-1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']/data[at0001]/events[at0002,'Cardiac enzyme test']",
                "children" : [
                  {
                    "id" : "test_name",
                    "name" : "Test name",
                    "localizedName" : "Test name",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0005",
                    "min" : "1",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "A test result may be for a single analyte, or a group of items, including panel tests. It is strongly recommended that 'Test name' be coded with a terminology, for example LOINC or SNOMED CT. For example: 'Glucose', 'Urea and Electrolytes', 'Swab', 'Cortisol (am)', 'Potassium in perspiration' or 'Melanoma histopathology'. The name may sometimes include specimen type and patient state, for example 'Fasting blood glucose' or include other information, as 'Potassium (PNA blood gas)'."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']/data[at0001]/events[at0002,'Cardiac enzyme test']/data[at0003]/items[at0005]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT",
                        "list" : [
                          {
                            "value" : "Troponin",
                            "label" : "Troponin"
                          }
                        ],
                        "listOpen" : false
                      }
                    ]
                  },
                  {
                    "id" : "cardiac_enzyme_result",
                    "name" : "Cardiac enzyme result",
                    "localizedName" : "Cardiac enzyme result",
                    "rmType" : "CLUSTER",
                    "nodeId" : "openEHR-EHR-CLUSTER.laboratory_test_analyte.v1",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']/data[at0001]/events[at0002,'Cardiac enzyme test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cardiac enzyme result']",
                    "children" : [
                      {
                        "id" : "analyte_result",
                        "name" : "Analyte result",
                        "localizedName" : "Analyte result",
                        "rmType" : "DV_TEXT",
                        "nodeId" : "at0001",
                        "min" : "0",
                        "max" : "-1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "annotations" : {
                          "comment" : "For example '7.3 mmol/l', 'Raised'. The 'Any' data type will need to be constrained to an appropriate data type in a specialisation, a template or at run-time to reflect the actual analyte result. The Quantity data type has reference model attributes that include flags for normal/abnormal, reference ranges and approximations - see https://specifications.openehr.org/releases/RM/latest/data_types.html#_dv_quantity_class for more details.",
                          "fhir_mapping" : "Observation.value[x]",
                          "hl7v2_mapping" : "OBX.2, OBX.5, OBX.6, OBX.7, OBX.8"
                        },
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']/data[at0001]/events[at0002,'Cardiac enzyme test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cardiac enzyme result']/items[at0001]/value",
                        "inputs" : [
                          {
                            "type" : "TEXT",
                            "list" : [
                              {
                                "value" : "Normal",
                                "label" : "Normal"
                              },
                              {
                                "value" : "Abnormal",
                                "label" : "Abnormal"
                              },
                              {
                                "value" : "Equivocal",
                                "label" : "Equivocal"
                              },
                              {
                                "value" : "Incomplete",
                                "label" : "Incomplete"
                              }
                            ],
                            "listOpen" : false
                          }
                        ]
                      },
                      {
                        "id" : "test_method",
                        "name" : "Test method",
                        "localizedName" : "Test method",
                        "rmType" : "ELEMENT",
                        "nodeId" : "at0028",
                        "min" : "0",
                        "max" : "1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "annotations" : {
                          "comment" : "If the test method applies to an entire panel, the test method can be captured using the 'Test method' data element within the OBSERVATION.laboratory_test_result"
                        },
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']/data[at0001]/events[at0002,'Cardiac enzyme test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cardiac enzyme result']/items[at0028]",
                        "children" : [
                          {
                            "id" : "coded_text_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_CODED_TEXT",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']/data[at0001]/events[at0002,'Cardiac enzyme test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cardiac enzyme result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "code",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "value",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "text_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_TEXT",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']/data[at0001]/events[at0002,'Cardiac enzyme test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cardiac enzyme result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "multimedia_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_MULTIMEDIA",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']/data[at0001]/events[at0002,'Cardiac enzyme test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cardiac enzyme result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "parsable_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_PARSABLE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']/data[at0001]/events[at0002,'Cardiac enzyme test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cardiac enzyme result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "value",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "formalism",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "state_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_STATE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']/data[at0001]/events[at0002,'Cardiac enzyme test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cardiac enzyme result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "code",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "value",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "boolean_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_BOOLEAN",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']/data[at0001]/events[at0002,'Cardiac enzyme test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cardiac enzyme result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "BOOLEAN"
                              }
                            ]
                          },
                          {
                            "id" : "identifier_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_IDENTIFIER",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']/data[at0001]/events[at0002,'Cardiac enzyme test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cardiac enzyme result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "id",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "type",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "issuer",
                                "type" : "TEXT"
                              },
                              {
                                "suffix" : "assigner",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "uri_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_URI",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']/data[at0001]/events[at0002,'Cardiac enzyme test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cardiac enzyme result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "ehr_uri_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_EHR_URI",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']/data[at0001]/events[at0002,'Cardiac enzyme test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cardiac enzyme result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "duration_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_DURATION",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']/data[at0001]/events[at0002,'Cardiac enzyme test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cardiac enzyme result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "year",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "month",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "day",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "week",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "hour",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "minute",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "second",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              }
                            ]
                          },
                          {
                            "id" : "quantity_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_QUANTITY",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']/data[at0001]/events[at0002,'Cardiac enzyme test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cardiac enzyme result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "magnitude",
                                "type" : "DECIMAL"
                              },
                              {
                                "suffix" : "unit",
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "count_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_COUNT",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']/data[at0001]/events[at0002,'Cardiac enzyme test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cardiac enzyme result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "INTEGER"
                              }
                            ]
                          },
                          {
                            "id" : "proportion_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_PROPORTION",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']/data[at0001]/events[at0002,'Cardiac enzyme test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cardiac enzyme result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "suffix" : "numerator",
                                "type" : "DECIMAL"
                              },
                              {
                                "suffix" : "denominator",
                                "type" : "DECIMAL"
                              }
                            ]
                          },
                          {
                            "id" : "date_time_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_DATE_TIME",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']/data[at0001]/events[at0002,'Cardiac enzyme test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cardiac enzyme result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "DATETIME"
                              }
                            ]
                          },
                          {
                            "id" : "date_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_DATE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']/data[at0001]/events[at0002,'Cardiac enzyme test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cardiac enzyme result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "DATE"
                              }
                            ]
                          },
                          {
                            "id" : "time_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_TIME",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']/data[at0001]/events[at0002,'Cardiac enzyme test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cardiac enzyme result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "TIME"
                              }
                            ]
                          },
                          {
                            "id" : "ordinal_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_ORDINAL",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']/data[at0001]/events[at0002,'Cardiac enzyme test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cardiac enzyme result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "CODED_TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "scale_value",
                            "name" : "Test method",
                            "localizedName" : "Test method",
                            "rmType" : "DV_SCALE",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']/data[at0001]/events[at0002,'Cardiac enzyme test']/data[at0003]/items[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1,'Cardiac enzyme result']/items[at0028]/Test method",
                            "inContext" : true,
                            "inputs" : [
                              {
                                "type" : "CODED_TEXT"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "time",
                    "name" : "Time",
                    "rmType" : "DV_DATE_TIME",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']/data[at0001]/events[at0002,'Cardiac enzyme test']/time",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "type" : "DATETIME"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "point-of-care_test",
                "name" : "Point-of-care test",
                "localizedName" : "Point-of-care test",
                "rmType" : "DV_BOOLEAN",
                "nodeId" : "at0111",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "True if the test was performed directly at Point-of-Care (POCT)."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']/protocol[at0004]/items[at0111]/value",
                "inputs" : [
                  {
                    "type" : "BOOLEAN",
                    "defaultValue" : true
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Point of care tests']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Cardiac enzymes']/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "id" : "family_history",
        "name" : "Family history",
        "localizedName" : "Family history",
        "rmType" : "SECTION",
        "nodeId" : "openEHR-EHR-SECTION.adhoc.v1",
        "min" : "0",
        "max" : "1",
        "localizedNames" : [
          null
        ],
        "localizedDescriptions" : [
          null
        ],
        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Family history']",
        "children" : [
          {
            "id" : "family_history",
            "name" : "Family history",
            "localizedName" : "Family history",
            "rmType" : "EVALUATION",
            "nodeId" : "openEHR-EHR-EVALUATION.family_history.v2",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Family history']/items[openEHR-EHR-EVALUATION.family_history.v2]",
            "termBindings" : {
              "SNOMED-CT" : {
                "value" : "[SNOMED-CT(20160131)::57177007]",
                "terminologyId" : "SNOMED-CT"
              },
              "value" : {
                "value" : "[SNOMED-CT(20160131)::57177007]",
                "terminologyId" : "SNOMED-CT"
              }
            },
            "children" : [
              {
                "id" : "per_problem",
                "name" : "Per problem",
                "localizedName" : "Per problem",
                "rmType" : "CLUSTER",
                "nodeId" : "at0028",
                "min" : "0",
                "max" : "-1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "If the problem has a genetic predisposition within families, then only genetic relatives should be considered as part of this data. If the problem has psychosocial or environmental effects then non-genetic family members may also be included."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Family history']/items[openEHR-EHR-EVALUATION.family_history.v2]/data[at0001]/items[at0028]",
                "children" : [
                  {
                    "id" : "problem_diagnosis_name",
                    "name" : "Problem/diagnosis name",
                    "localizedName" : "Problem/diagnosis name",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0029",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "This is the problem for which aggregated data involving all family members will be collected. Coding of the index problem with a terminology is preferred, where possible."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Family history']/items[openEHR-EHR-EVALUATION.family_history.v2]/data[at0001]/items[at0028]/items[at0029]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT",
                        "list" : [
                          {
                            "value" : "Hypertension",
                            "label" : "Hypertension"
                          },
                          {
                            "value" : "Heart attack/heart disease",
                            "label" : "Heart attack/heart disease"
                          },
                          {
                            "value" : "Stroke/transient ischaemic attack",
                            "label" : "Stroke/transient ischaemic attack"
                          },
                          {
                            "value" : "Other cardiovascular disease",
                            "label" : "Other cardiovascular disease"
                          },
                          {
                            "value" : "Kidney disease",
                            "label" : "Kidney disease"
                          },
                          {
                            "value" : "Diabetes Mellitus",
                            "label" : "Diabetes Mellitus"
                          },
                          {
                            "value" : "Dyslipidaemia",
                            "label" : "Dyslipidaemia"
                          },
                          {
                            "value" : "Prostate Cancer",
                            "label" : "Prostate Cancer"
                          },
                          {
                            "value" : "Breast Cancer",
                            "label" : "Breast Cancer"
                          },
                          {
                            "value" : "Colon Cancer",
                            "label" : "Colon Cancer"
                          }
                        ],
                        "listOpen" : false
                      }
                    ]
                  },
                  {
                    "id" : "description",
                    "name" : "Description",
                    "localizedName" : "Description",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0030",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Family history']/items[openEHR-EHR-EVALUATION.family_history.v2]/data[at0001]/items[at0028]/items[at0030]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "per_family_member",
                "name" : "Per family member",
                "localizedName" : "Per family member",
                "rmType" : "CLUSTER",
                "nodeId" : "at0003",
                "min" : "0",
                "max" : "-1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "The data elements in this cluster will relate to the individual identified either by name or by alias. Repeat the use of the cluster for other family members."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Family history']/items[openEHR-EHR-EVALUATION.family_history.v2]/data[at0001]/items[at0003]",
                "children" : [
                  {
                    "id" : "relationship",
                    "name" : "Relationship",
                    "localizedName" : "Relationship",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0016",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "For example: mother, step-father, maternal grandmother, or paternal uncle. Coding of the relationship with a terminology is preferred, where possible and including specification of maternal and paternal as required."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Family history']/items[openEHR-EHR-EVALUATION.family_history.v2]/data[at0001]/items[at0003]/items[at0016]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT",
                        "list" : [
                          {
                            "value" : "Mother",
                            "label" : "Mother"
                          },
                          {
                            "value" : "Father",
                            "label" : "Father"
                          },
                          {
                            "value" : "Sister",
                            "label" : "Sister"
                          },
                          {
                            "value" : "Brother",
                            "label" : "Brother"
                          },
                          {
                            "value" : "Son",
                            "label" : "Son"
                          },
                          {
                            "value" : "Daughter",
                            "label" : "Daughter"
                          }
                        ],
                        "listOpen" : false
                      }
                    ]
                  },
                  {
                    "id" : "relationship_degree",
                    "name" : "Relationship degree",
                    "localizedName" : "Relationship degree",
                    "rmType" : "DV_CODED_TEXT",
                    "nodeId" : "at0064",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "If the 'Relationship' data element uses pre-coordinated terms that include the degree of relationship, then this data element is redundant."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Family history']/items[openEHR-EHR-EVALUATION.family_history.v2]/data[at0001]/items[at0003]/items[at0064]/value",
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "at0065",
                            "label" : "First degree relative",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0066",
                            "label" : "Second degree relative",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0067",
                            "label" : "Third degree relative",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "family_line",
                    "name" : "Family line",
                    "localizedName" : "Family line",
                    "rmType" : "DV_CODED_TEXT",
                    "nodeId" : "at0068",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "If the 'Relationship' data element uses pre-coordinated terms that include the family line, then this data element is redundant."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Family history']/items[openEHR-EHR-EVALUATION.family_history.v2]/data[at0001]/items[at0003]/items[at0068]/value",
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "at0069",
                            "label" : "Maternal line",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0070",
                            "label" : "Paternal line",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "deceased",
                    "name" : "Deceased?",
                    "localizedName" : "Deceased?",
                    "rmType" : "DV_BOOLEAN",
                    "nodeId" : "at0023",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "Record as 'True' if family member is deceased."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Family history']/items[openEHR-EHR-EVALUATION.family_history.v2]/data[at0001]/items[at0003]/items[at0023]/value",
                    "inputs" : [
                      {
                        "type" : "BOOLEAN",
                        "list" : [
                          {
                            "value" : "true",
                            "label" : "true"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "clinical_history",
                    "name" : "Clinical history",
                    "localizedName" : "Clinical history",
                    "rmType" : "CLUSTER",
                    "nodeId" : "at0008",
                    "min" : "0",
                    "max" : "-1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "If more detail is required, suggest using EVALUATION.problem_diagnosis or the ACTION.procedure archetype and specifying the 'Subject of Care' as the family member, rather than the subject of the health record."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Family history']/items[openEHR-EHR-EVALUATION.family_history.v2]/data[at0001]/items[at0003]/items[at0008]",
                    "children" : [
                      {
                        "id" : "age_at_onset",
                        "name" : "Age at onset",
                        "localizedName" : "Age at onset",
                        "rmType" : "DV_DURATION",
                        "nodeId" : "at0010",
                        "min" : "0",
                        "max" : "1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "annotations" : {
                          "comment" : "For health problems with multiple occurrences, this describes the first nown occurrence."
                        },
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Family history']/items[openEHR-EHR-EVALUATION.family_history.v2]/data[at0001]/items[at0003]/items[at0008]/items[at0010]/value",
                        "inputs" : [
                          {
                            "suffix" : "year",
                            "type" : "INTEGER",
                            "validation" : {
                              "range" : {
                                "minOp" : ">=",
                                "min" : 0,
                                "maxOp" : "<=",
                                "max" : 200
                              }
                            }
                          },
                          {
                            "suffix" : "month",
                            "type" : "INTEGER",
                            "validation" : {
                              "range" : {
                                "minOp" : ">=",
                                "min" : 0
                              }
                            }
                          },
                          {
                            "suffix" : "week",
                            "type" : "INTEGER",
                            "validation" : {
                              "range" : {
                                "minOp" : ">=",
                                "min" : 0
                              }
                            }
                          },
                          {
                            "suffix" : "day",
                            "type" : "INTEGER",
                            "validation" : {
                              "range" : {
                                "minOp" : ">=",
                                "min" : 0
                              }
                            }
                          }
                        ]
                      },
                      {
                        "id" : "cause_of_death",
                        "name" : "Cause of death?",
                        "localizedName" : "Cause of death?",
                        "rmType" : "DV_CODED_TEXT",
                        "nodeId" : "at0014",
                        "min" : "0",
                        "max" : "1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Family history']/items[openEHR-EHR-EVALUATION.family_history.v2]/data[at0001]/items[at0003]/items[at0008]/items[at0014]/value",
                        "inputs" : [
                          {
                            "suffix" : "code",
                            "type" : "CODED_TEXT",
                            "list" : [
                              {
                                "value" : "at0061",
                                "label" : "Direct cause or closely related",
                                "localizedLabels" : [
                                  null
                                ],
                                "localizedDescriptions" : [
                                  null
                                ]
                              },
                              {
                                "value" : "at0062",
                                "label" : "Unrelated",
                                "localizedLabels" : [
                                  null
                                ],
                                "localizedDescriptions" : [
                                  null
                                ]
                              },
                              {
                                "value" : "at0063",
                                "label" : "Indeterminate",
                                "localizedLabels" : [
                                  null
                                ],
                                "localizedDescriptions" : [
                                  null
                                ]
                              }
                            ],
                            "listOpen" : true
                          },
                          {
                            "suffix" : "other",
                            "type" : "TEXT"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "comment",
                    "name" : "Comment",
                    "localizedName" : "Comment",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0046",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Family history']/items[openEHR-EHR-EVALUATION.family_history.v2]/data[at0001]/items[at0003]/items[at0046]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "last_updated",
                "name" : "Last Updated",
                "localizedName" : "Last Updated",
                "rmType" : "DV_DATE_TIME",
                "nodeId" : "at0026",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Family history']/items[openEHR-EHR-EVALUATION.family_history.v2]/protocol[at0025]/items[at0026]/value",
                "inputs" : [
                  {
                    "type" : "DATETIME"
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Family history']/items[openEHR-EHR-EVALUATION.family_history.v2]/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Family history']/items[openEHR-EHR-EVALUATION.family_history.v2]/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Family history']/items[openEHR-EHR-EVALUATION.family_history.v2]/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "id" : "sexual_health",
        "name" : "Sexual Health",
        "localizedName" : "Sexual Health",
        "rmType" : "EVALUATION",
        "nodeId" : "openEHR-EHR-EVALUATION.sexual_health_summary.v0",
        "min" : "0",
        "max" : "1",
        "localizedNames" : [
          null
        ],
        "localizedDescriptions" : [
          null
        ],
        "aqlPath" : "/content[openEHR-EHR-EVALUATION.sexual_health_summary.v0,'Sexual Health']",
        "children" : [
          {
            "id" : "have_you_ever_had_any_of_the_following_diseases",
            "name" : "Have you ever had any of the following diseases?",
            "localizedName" : "Have you ever had any of the following diseases?",
            "rmType" : "DV_TEXT",
            "nodeId" : "at0012",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-EVALUATION.sexual_health_summary.v0,'Sexual Health']/data[at0001]/items[at0012,'Have you ever had any of the following diseases?']/value",
            "inputs" : [
              {
                "type" : "TEXT",
                "list" : [
                  {
                    "value" : "Gonorrhea",
                    "label" : "Gonorrhea"
                  },
                  {
                    "value" : "HIV/AIDS",
                    "label" : "HIV/AIDS"
                  },
                  {
                    "value" : "HPV",
                    "label" : "HPV"
                  },
                  {
                    "value" : "Chlamydia",
                    "label" : "Chlamydia"
                  },
                  {
                    "value" : "Herpes Simplex",
                    "label" : "Herpes Simplex"
                  },
                  {
                    "value" : "Hepatitis B",
                    "label" : "Hepatitis B"
                  },
                  {
                    "value" : "Syphilis",
                    "label" : "Syphilis"
                  }
                ],
                "listOpen" : false
              }
            ]
          },
          {
            "id" : "are_you_sexually_active",
            "name" : "Are you sexually active?",
            "localizedName" : "Are you sexually active?",
            "rmType" : "DV_CODED_TEXT",
            "nodeId" : "at0002",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-EVALUATION.sexual_health_summary.v0,'Sexual Health']/data[at0001]/items[at0002,'Are you sexually active?']/value",
            "inputs" : [
              {
                "suffix" : "code",
                "type" : "CODED_TEXT",
                "list" : [
                  {
                    "value" : "at0009",
                    "label" : "Sexually active, regular partner",
                    "localizedLabels" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ]
                  },
                  {
                    "value" : "at0010",
                    "label" : "Sexually active, no regular partner",
                    "localizedLabels" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ]
                  },
                  {
                    "value" : "at0011",
                    "label" : "Never sexually active",
                    "localizedLabels" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ]
                  }
                ]
              }
            ]
          },
          {
            "id" : "comment",
            "name" : "Comment",
            "localizedName" : "Comment",
            "rmType" : "DV_TEXT",
            "nodeId" : "at0015",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-EVALUATION.sexual_health_summary.v0,'Sexual Health']/data[at0001]/items[at0015]/value",
            "inputs" : [
              {
                "type" : "TEXT"
              }
            ]
          },
          {
            "id" : "language",
            "name" : "Language",
            "rmType" : "CODE_PHRASE",
            "min" : "1",
            "max" : "1",
            "aqlPath" : "/content[openEHR-EHR-EVALUATION.sexual_health_summary.v0,'Sexual Health']/language",
            "inContext" : true
          },
          {
            "id" : "encoding",
            "name" : "Encoding",
            "rmType" : "CODE_PHRASE",
            "min" : "1",
            "max" : "1",
            "aqlPath" : "/content[openEHR-EHR-EVALUATION.sexual_health_summary.v0,'Sexual Health']/encoding",
            "inContext" : true
          },
          {
            "id" : "subject",
            "name" : "Subject",
            "rmType" : "PARTY_PROXY",
            "min" : "1",
            "max" : "1",
            "aqlPath" : "/content[openEHR-EHR-EVALUATION.sexual_health_summary.v0,'Sexual Health']/subject",
            "inContext" : true,
            "inputs" : [
              {
                "suffix" : "id",
                "type" : "TEXT"
              },
              {
                "suffix" : "id_scheme",
                "type" : "TEXT"
              },
              {
                "suffix" : "id_namespace",
                "type" : "TEXT"
              },
              {
                "suffix" : "name",
                "type" : "TEXT"
              }
            ]
          }
        ]
      },
      {
        "id" : "progress_note",
        "name" : "Progress note",
        "localizedName" : "Progress note",
        "rmType" : "OBSERVATION",
        "nodeId" : "openEHR-EHR-OBSERVATION.progress_note.v1",
        "min" : "0",
        "max" : "1",
        "localizedNames" : [
          null
        ],
        "localizedDescriptions" : [
          null
        ],
        "aqlPath" : "/content[openEHR-EHR-OBSERVATION.progress_note.v1]",
        "children" : [
          {
            "id" : "any_event",
            "name" : "Any event",
            "localizedName" : "Any event",
            "rmType" : "EVENT",
            "nodeId" : "at0002",
            "min" : "0",
            "max" : "-1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-OBSERVATION.progress_note.v1]/data[at0001]/events[at0002]",
            "children" : [
              {
                "id" : "progress_note",
                "name" : "Progress Note",
                "localizedName" : "Progress Note",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0004",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-OBSERVATION.progress_note.v1]/data[at0001]/events[at0002]/data[at0003]/items[at0004]/value",
                "inputs" : [
                  {
                    "type" : "TEXT"
                  }
                ]
              },
              {
                "id" : "time",
                "name" : "Time",
                "rmType" : "DV_DATE_TIME",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-OBSERVATION.progress_note.v1]/data[at0001]/events[at0002]/time",
                "inContext" : true,
                "inputs" : [
                  {
                    "type" : "DATETIME"
                  }
                ]
              }
            ]
          },
          {
            "id" : "language",
            "name" : "Language",
            "rmType" : "CODE_PHRASE",
            "min" : "1",
            "max" : "1",
            "aqlPath" : "/content[openEHR-EHR-OBSERVATION.progress_note.v1]/language",
            "inContext" : true
          },
          {
            "id" : "encoding",
            "name" : "Encoding",
            "rmType" : "CODE_PHRASE",
            "min" : "1",
            "max" : "1",
            "aqlPath" : "/content[openEHR-EHR-OBSERVATION.progress_note.v1]/encoding",
            "inContext" : true
          },
          {
            "id" : "subject",
            "name" : "Subject",
            "rmType" : "PARTY_PROXY",
            "min" : "1",
            "max" : "1",
            "aqlPath" : "/content[openEHR-EHR-OBSERVATION.progress_note.v1]/subject",
            "inContext" : true,
            "inputs" : [
              {
                "suffix" : "id",
                "type" : "TEXT"
              },
              {
                "suffix" : "id_scheme",
                "type" : "TEXT"
              },
              {
                "suffix" : "id_namespace",
                "type" : "TEXT"
              },
              {
                "suffix" : "name",
                "type" : "TEXT"
              }
            ]
          }
        ]
      },
      {
        "id" : "category",
        "rmType" : "DV_CODED_TEXT",
        "nodeId" : "",
        "min" : "1",
        "max" : "1",
        "aqlPath" : "/category",
        "inContext" : true,
        "inputs" : [
          {
            "suffix" : "code",
            "type" : "CODED_TEXT",
            "terminology" : "openehr",
            "list" : [
              {
                "value" : "433",
                "label" : "event",
                "localizedLabels" : [
                  null
                ]
              }
            ]
          }
        ]
      }
    ]
  }
}