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" : "UHB - Somerset Cancer Diagnosis import.v0",
  "version" : "2.3",
  "defaultLanguage" : "en",
  "languages" : [
    "en"
  ],
  "tree" : {
    "id" : "somerset_cancer_diagnosis_import",
    "name" : "Somerset Cancer Diagnosis import",
    "localizedName" : "Somerset Cancer Diagnosis import",
    "rmType" : "COMPOSITION",
    "nodeId" : "openEHR-EHR-COMPOSITION.report.v1",
    "min" : "1",
    "max" : "1",
    "localizedNames" : [
      null
    ],
    "localizedDescriptions" : [
      null
    ],
    "aqlPath" : "",
    "children" : [
      {
        "id" : "context",
        "rmType" : "EVENT_CONTEXT",
        "nodeId" : "",
        "min" : "1",
        "max" : "1",
        "aqlPath" : "/context",
        "children" : [
          {
            "id" : "uhb_request_id",
            "name" : "UHB Request ID",
            "localizedName" : "UHB Request ID",
            "rmType" : "DV_TEXT",
            "nodeId" : "at0002",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/context/other_context[at0001]/items[at0002,'UHB Request ID']/value",
            "inputs" : [
              {
                "type" : "TEXT"
              }
            ]
          },
          {
            "id" : "start_time",
            "name" : "Start_time",
            "rmType" : "DV_DATE_TIME",
            "min" : "1",
            "max" : "1",
            "aqlPath" : "/context/start_time",
            "inContext" : true,
            "inputs" : [
              {
                "type" : "DATETIME"
              }
            ]
          },
          {
            "id" : "setting",
            "name" : "Setting",
            "rmType" : "DV_CODED_TEXT",
            "min" : "1",
            "max" : "1",
            "aqlPath" : "/context/setting",
            "inContext" : true,
            "inputs" : [
              {
                "suffix" : "code",
                "type" : "TEXT"
              },
              {
                "suffix" : "value",
                "type" : "TEXT"
              }
            ]
          }
        ]
      },
      {
        "id" : "diagnosis",
        "name" : "Diagnosis",
        "localizedName" : "Diagnosis",
        "rmType" : "SECTION",
        "nodeId" : "openEHR-EHR-SECTION.adhoc.v1",
        "min" : "0",
        "max" : "1",
        "localizedNames" : [
          null
        ],
        "localizedDescriptions" : [
          null
        ],
        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']",
        "children" : [
          {
            "id" : "problem_diagnosis",
            "name" : "Problem/Diagnosis",
            "localizedName" : "Problem/Diagnosis",
            "rmType" : "EVALUATION",
            "nodeId" : "openEHR-EHR-EVALUATION.problem_diagnosis.v1",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "annotations" : {
              "comment" : "Clear delineation between the scope of a problem versus a diagnosis is not easy to achieve in practice. For the purposes of clinical documentation with this archetype, problem and diagnosis are regarded as a continuum, with increasing levels of detail and supportive evidence usually providing weight towards the label of 'diagnosis'."
            },
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]",
            "children" : [
              {
                "id" : "diagnosis",
                "name" : "Diagnosis",
                "localizedName" : "Diagnosis",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0002",
                "min" : "1",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "Coding of the name of the problem or diagnosis with a terminology is preferred, where possible."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[at0002,'Diagnosis']/value",
                "inputs" : [
                  {
                    "type" : "TEXT"
                  }
                ]
              },
              {
                "id" : "type",
                "name" : "Type",
                "localizedName" : "Type",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0012",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "Coding of the name of the anatomical location with a terminology is preferred, where possible.\r\nUse this data element to record precoordinated anatomical locations. If the requirements for recording the anatomical location are determined at run-time by the application or require more complex modelling such as relative locations then use the CLUSTER.anatomical_location or CLUSTER.relative_location within the 'Structured anatomical location' SLOT in this archetype. Occurrences for this data element are unbounded to allow for clinical scenarios such as describing a rash in multiple locations but where all of the other attributes are identical. If the anatomical location is included in the Problem/diagnosis name via precoordinated codes, this data element becomes redundant. \r\n\r\n"
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[at0012,'Type']/value",
                "inputs" : [
                  {
                    "type" : "TEXT"
                  }
                ]
              },
              {
                "id" : "first_seen_date",
                "name" : "First seen date",
                "localizedName" : "First seen date",
                "rmType" : "DV_DATE_TIME",
                "nodeId" : "at0077",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "Data captured/imported as \"Age at onset\" should be converted to a date using the subject's date of birth."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[at0077,'First seen date']/value",
                "inputs" : [
                  {
                    "type" : "DATETIME"
                  }
                ]
              },
              {
                "id" : "diagnosis_date",
                "name" : "Diagnosis date",
                "localizedName" : "Diagnosis date",
                "rmType" : "DV_DATE_TIME",
                "nodeId" : "at0003",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "Partial dates are acceptable. If the subject of care is under the age of one year, then the complete date or a minimum of the month and year is necessary to enable accurate age calculations - for example, if used to drive decision support. Data captured/imported as \"Age at time of clinical recognition\" should be converted to a date using the subject's date of birth."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[at0003,'Diagnosis date']/value",
                "inputs" : [
                  {
                    "type" : "DATETIME"
                  }
                ]
              },
              {
                "id" : "cancer_diagnosis",
                "name" : "Cancer diagnosis",
                "localizedName" : "Cancer diagnosis",
                "rmType" : "CLUSTER",
                "nodeId" : "openEHR-EHR-CLUSTER.cancer_diagnosis_reporting_uk.v0",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.cancer_diagnosis_reporting_uk.v0]",
                "children" : [
                  {
                    "id" : "recurrence_indicator",
                    "name" : "Recurrence indicator",
                    "localizedName" : "Recurrence indicator",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0013",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.cancer_diagnosis_reporting_uk.v0]/items[at0013]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "detailed_diagnosis_coding",
                    "name" : "Detailed diagnosis coding",
                    "localizedName" : "Detailed diagnosis coding",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0052",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.cancer_diagnosis_reporting_uk.v0]/items[at0052]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "cancer_group",
                    "name" : "Cancer group",
                    "localizedName" : "Cancer group",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0053",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.cancer_diagnosis_reporting_uk.v0]/items[at0053]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "morphology",
                    "name" : "Morphology",
                    "localizedName" : "Morphology",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0001",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "The SNOMED version should be captured as part of the code string."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.cancer_diagnosis_reporting_uk.v0]/items[at0001]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "topography",
                    "name" : "Topography",
                    "localizedName" : "Topography",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0002",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "The SNOMED version should be captured as part of the code string."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.cancer_diagnosis_reporting_uk.v0]/items[at0002]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "tumour_laterality",
                    "name" : "Tumour laterality",
                    "localizedName" : "Tumour laterality",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0028",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.cancer_diagnosis_reporting_uk.v0]/items[at0028]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "basis_of_diagnosis",
                    "name" : "Basis of diagnosis",
                    "localizedName" : "Basis of diagnosis",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0035",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.cancer_diagnosis_reporting_uk.v0]/items[at0035]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "upper_gi_staging",
                "name" : "Upper GI staging",
                "localizedName" : "Upper GI staging",
                "rmType" : "CLUSTER",
                "nodeId" : "openEHR-EHR-CLUSTER.upper_gi_staging_uk.v0",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.upper_gi_staging_uk.v0]",
                "children" : [
                  {
                    "id" : "bclc_stage",
                    "name" : "BCLC stage",
                    "localizedName" : "BCLC stage",
                    "rmType" : "CLUSTER",
                    "nodeId" : "openEHR-EHR-CLUSTER.bclc_stage.v0",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.upper_gi_staging_uk.v0]/items[openEHR-EHR-CLUSTER.bclc_stage.v0]",
                    "children" : [
                      {
                        "id" : "bclc_stage",
                        "name" : "BCLC stage",
                        "localizedName" : "BCLC stage",
                        "rmType" : "DV_CODED_TEXT",
                        "nodeId" : "at0001",
                        "min" : "0",
                        "max" : "1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.upper_gi_staging_uk.v0]/items[openEHR-EHR-CLUSTER.bclc_stage.v0]/items[at0001]/value",
                        "inputs" : [
                          {
                            "suffix" : "code",
                            "type" : "CODED_TEXT",
                            "list" : [
                              {
                                "value" : "at0003",
                                "label" : "0",
                                "localizedLabels" : [
                                  null
                                ],
                                "localizedDescriptions" : [
                                  null
                                ]
                              },
                              {
                                "value" : "at0004",
                                "label" : "A",
                                "localizedLabels" : [
                                  null
                                ],
                                "localizedDescriptions" : [
                                  null
                                ]
                              },
                              {
                                "value" : "at0005",
                                "label" : "B",
                                "localizedLabels" : [
                                  null
                                ],
                                "localizedDescriptions" : [
                                  null
                                ]
                              },
                              {
                                "value" : "at0006",
                                "label" : "C",
                                "localizedLabels" : [
                                  null
                                ],
                                "localizedDescriptions" : [
                                  null
                                ]
                              },
                              {
                                "value" : "at0007",
                                "label" : "D",
                                "localizedLabels" : [
                                  null
                                ],
                                "localizedDescriptions" : [
                                  null
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "pancreatic_clinical_stage",
                    "name" : "Pancreatic clinical stage",
                    "localizedName" : "Pancreatic clinical stage",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0008",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.upper_gi_staging_uk.v0]/items[at0008]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "final_figo_grade",
                "name" : "Final FIGO grade",
                "localizedName" : "Final FIGO grade",
                "rmType" : "CLUSTER",
                "nodeId" : "openEHR-EHR-CLUSTER.figo_grade.v0",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.figo_grade.v0,'Final FIGO grade']",
                "children" : [
                  {
                    "id" : "figo_grade",
                    "name" : "FIGO grade",
                    "localizedName" : "FIGO grade",
                    "rmType" : "DV_CODED_TEXT",
                    "nodeId" : "at0001",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.figo_grade.v0,'Final FIGO grade']/items[at0001]/value",
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "at0002",
                            "label" : "FIGO 1",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0003",
                            "label" : "FIGO 2",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0004",
                            "label" : "FIGO 3",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "figo_version",
                    "name" : "FIGO version",
                    "localizedName" : "FIGO version",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0005",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.figo_grade.v0,'Final FIGO grade']/items[at0005]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "colorectal_staging",
                "name" : "Colorectal staging",
                "localizedName" : "Colorectal staging",
                "rmType" : "CLUSTER",
                "nodeId" : "openEHR-EHR-CLUSTER.colorectal_staging_uk.v0",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.colorectal_staging_uk.v0]",
                "children" : [
                  {
                    "id" : "synchronous_tumour_indicator",
                    "name" : "Synchronous tumour indicator",
                    "localizedName" : "Synchronous tumour indicator",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0001",
                    "min" : "0",
                    "max" : "-1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.colorectal_staging_uk.v0]/items[at0001]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "modified_dukes_stage",
                    "name" : "Modified Dukes stage",
                    "localizedName" : "Modified Dukes stage",
                    "rmType" : "CLUSTER",
                    "nodeId" : "openEHR-EHR-CLUSTER.modified_dukes_stage.v0",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.colorectal_staging_uk.v0]/items[openEHR-EHR-CLUSTER.modified_dukes_stage.v0]",
                    "children" : [
                      {
                        "id" : "modified_dukes_stage",
                        "name" : "Modified Dukes stage",
                        "localizedName" : "Modified Dukes stage",
                        "rmType" : "DV_CODED_TEXT",
                        "nodeId" : "at0001",
                        "min" : "0",
                        "max" : "1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.colorectal_staging_uk.v0]/items[openEHR-EHR-CLUSTER.modified_dukes_stage.v0]/items[at0001]/value",
                        "inputs" : [
                          {
                            "suffix" : "code",
                            "type" : "CODED_TEXT",
                            "list" : [
                              {
                                "value" : "at0002",
                                "label" : "Dukes Stage A",
                                "localizedLabels" : [
                                  null
                                ],
                                "localizedDescriptions" : [
                                  null
                                ]
                              },
                              {
                                "value" : "at0003",
                                "label" : "Dukes Stage B",
                                "localizedLabels" : [
                                  null
                                ],
                                "localizedDescriptions" : [
                                  null
                                ]
                              },
                              {
                                "value" : "at0004",
                                "label" : "Dukes Stage C1",
                                "localizedLabels" : [
                                  null
                                ],
                                "localizedDescriptions" : [
                                  null
                                ]
                              },
                              {
                                "value" : "at0005",
                                "label" : "Dukes Stage C2",
                                "localizedLabels" : [
                                  null
                                ],
                                "localizedDescriptions" : [
                                  null
                                ]
                              },
                              {
                                "value" : "at0006",
                                "label" : "Dukes Stage D",
                                "localizedLabels" : [
                                  null
                                ],
                                "localizedDescriptions" : [
                                  null
                                ]
                              },
                              {
                                "value" : "at0007",
                                "label" : "99 Not known",
                                "localizedLabels" : [
                                  null
                                ],
                                "localizedDescriptions" : [
                                  null
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "testicular_staging",
                "name" : "Testicular staging",
                "localizedName" : "Testicular staging",
                "rmType" : "CLUSTER",
                "nodeId" : "openEHR-EHR-CLUSTER.testicular_staging_uk.v0",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.testicular_staging_uk.v0]",
                "children" : [
                  {
                    "id" : "extranodal_metastases",
                    "name" : "Extranodal metastases",
                    "localizedName" : "Extranodal metastases",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0014",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.testicular_staging_uk.v0]/items[at0014]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "lung_metastases_sub-stage_grouping",
                    "name" : "Lung metastases sub-stage grouping",
                    "localizedName" : "Lung metastases sub-stage grouping",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0020",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.testicular_staging_uk.v0]/items[at0020]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "final_tnm",
                "name" : "Final TNM",
                "localizedName" : "Final TNM",
                "rmType" : "CLUSTER",
                "nodeId" : "openEHR-EHR-CLUSTER.tnm.v1",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "Designated as TNM or cTNM."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.tnm.v1,'Final TNM']",
                "children" : [
                  {
                    "id" : "primary_tumour_t",
                    "name" : "Primary tumour (T)",
                    "localizedName" : "Primary tumour (T)",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0003",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "Coding with a T code appropriate for the tumour type and anatomical site is expected. For example: 'T1'; or 'cT3'. Represented as 'T' or 'cT' in the 'TNM assessment'."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.tnm.v1,'Final TNM']/items[at0003]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "regional_lymph_nodes_n",
                    "name" : "Regional lymph nodes (N)",
                    "localizedName" : "Regional lymph nodes (N)",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0004",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "Coding with an N code appropriate for the tumour type and anatomical site is expected. For example: 'NX'; or 'cN2'. Represented as 'N' or 'cN' within the 'TNM assessment'."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.tnm.v1,'Final TNM']/items[at0004]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "distant_metastasis_m",
                    "name" : "Distant metastasis (M)",
                    "localizedName" : "Distant metastasis (M)",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0005",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "Coding with an M code appropriate for the tumour type and anatomical site is expected. For example: 'M1'; 'cM1a'; 'M1 PUL'; or 'cM0'. Represented as 'M' or 'cM' within the 'TNM assessment'."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.tnm.v1,'Final TNM']/items[at0005]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "differentiation",
                    "name" : "Differentiation",
                    "localizedName" : "Differentiation",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0006",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "Pretreatment histopathological assessment may be determined from a limited biopsy prior to formal resection. Coding with a G code appropriate for the identified tumour type and anatomical site is expected. For example: 'G2'; 'GX'; or 'low grade' for bone and soft tissue sarcoma classification. Represented as 'G' within the 'TNM assessment'."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.tnm.v1,'Final TNM']/items[at0006,'Differentiation']/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "tnm_stage_group",
                    "name" : "TNM Stage Group",
                    "localizedName" : "TNM Stage Group",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0031",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "For example: carcinoma in situ is categorised as stage 0; or tumours with distant metastasis are categorised as stage IV."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.tnm.v1,'Final TNM']/items[at0031,'TNM Stage Group']/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "tnm_version",
                    "name" : "TNM Version",
                    "localizedName" : "TNM Version",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0032",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.tnm.v1,'Final TNM']/items[at0032,'TNM Version']/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "tumour_id",
                "name" : "Tumour ID",
                "localizedName" : "Tumour ID",
                "rmType" : "CLUSTER",
                "nodeId" : "openEHR-EHR-CLUSTER.tumour_id_gel.v0",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.tumour_id_gel.v0,'Tumour ID']",
                "children" : [
                  {
                    "id" : "tumour_identifier",
                    "name" : "Tumour identifier",
                    "localizedName" : "Tumour identifier",
                    "rmType" : "DV_IDENTIFIER",
                    "nodeId" : "at0001",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.tumour_id_gel.v0,'Tumour ID']/items[at0001]/value",
                    "inputs" : [
                      {
                        "suffix" : "id",
                        "type" : "TEXT"
                      },
                      {
                        "suffix" : "type",
                        "type" : "TEXT"
                      },
                      {
                        "suffix" : "issuer",
                        "type" : "TEXT"
                      },
                      {
                        "suffix" : "assigner",
                        "type" : "TEXT"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "metasases_summary",
                "name" : "Metasases summary",
                "localizedName" : "Metasases summary",
                "rmType" : "CLUSTER",
                "nodeId" : "openEHR-EHR-CLUSTER.scr_metastases.v0",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.scr_metastases.v0,'Metasases summary']",
                "children" : [
                  {
                    "id" : "tumour_status",
                    "name" : "Tumour status",
                    "localizedName" : "Tumour status",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0009",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.scr_metastases.v0,'Metasases summary']/items[at0009]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "metastasis",
                    "name" : "Metastasis",
                    "localizedName" : "Metastasis",
                    "rmType" : "CLUSTER",
                    "nodeId" : "at0010",
                    "min" : "0",
                    "max" : "-1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.scr_metastases.v0,'Metasases summary']/items[at0010]",
                    "children" : [
                      {
                        "id" : "primary_cancer_site",
                        "name" : "Primary cancer site",
                        "localizedName" : "Primary cancer site",
                        "rmType" : "DV_TEXT",
                        "nodeId" : "at0011",
                        "min" : "0",
                        "max" : "1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.scr_metastases.v0,'Metasases summary']/items[at0010]/items[at0011]/value",
                        "inputs" : [
                          {
                            "type" : "TEXT"
                          }
                        ]
                      },
                      {
                        "id" : "location",
                        "name" : "Location",
                        "localizedName" : "Location",
                        "rmType" : "DV_TEXT",
                        "nodeId" : "at0012",
                        "min" : "0",
                        "max" : "1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.scr_metastases.v0,'Metasases summary']/items[at0010]/items[at0012]/value",
                        "inputs" : [
                          {
                            "type" : "TEXT"
                          }
                        ]
                      },
                      {
                        "id" : "certainty",
                        "name" : "Certainty",
                        "localizedName" : "Certainty",
                        "rmType" : "DV_TEXT",
                        "nodeId" : "at0013",
                        "min" : "0",
                        "max" : "1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/data[at0001]/items[openEHR-EHR-CLUSTER.scr_metastases.v0,'Metasases summary']/items[at0010]/items[at0013]/value",
                        "inputs" : [
                          {
                            "type" : "TEXT"
                          }
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "cancer_times",
                "name" : "Cancer times",
                "localizedName" : "Cancer times",
                "rmType" : "CLUSTER",
                "nodeId" : "openEHR-EHR-CLUSTER.cancer_wait_times.v0",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/protocol[at0032]/items[openEHR-EHR-CLUSTER.cancer_wait_times.v0]",
                "children" : [
                  {
                    "id" : "wait_time",
                    "name" : "Wait time",
                    "localizedName" : "Wait time",
                    "rmType" : "DV_DURATION",
                    "nodeId" : "at0006",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/protocol[at0032]/items[openEHR-EHR-CLUSTER.cancer_wait_times.v0]/items[at0006]/value",
                    "inputs" : [
                      {
                        "suffix" : "day",
                        "type" : "INTEGER",
                        "validation" : {
                          "range" : {
                            "minOp" : ">=",
                            "min" : 0
                          }
                        }
                      }
                    ]
                  },
                  {
                    "id" : "target",
                    "name" : "Target",
                    "localizedName" : "Target",
                    "rmType" : "DV_DATE_TIME",
                    "nodeId" : "at0004",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/protocol[at0032]/items[openEHR-EHR-CLUSTER.cancer_wait_times.v0]/items[at0004]/value",
                    "inputs" : [
                      {
                        "type" : "DATETIME"
                      }
                    ]
                  },
                  {
                    "id" : "fds_target",
                    "name" : "FDS Target",
                    "localizedName" : "FDS Target",
                    "rmType" : "DV_DATE_TIME",
                    "nodeId" : "at0005",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/protocol[at0032]/items[openEHR-EHR-CLUSTER.cancer_wait_times.v0]/items[at0005]/value",
                    "inputs" : [
                      {
                        "type" : "DATETIME"
                      }
                    ]
                  },
                  {
                    "id" : "known_to_palliative_care",
                    "name" : "Known to Palliative care",
                    "localizedName" : "Known to Palliative care",
                    "rmType" : "DV_CODED_TEXT",
                    "nodeId" : "at0007",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/protocol[at0032]/items[openEHR-EHR-CLUSTER.cancer_wait_times.v0]/items[at0007]/value",
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "at0008",
                            "label" : "Yes",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          },
                          {
                            "value" : "at0009",
                            "label" : "No",
                            "localizedLabels" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "somerset_care_id",
                    "name" : "Somerset Care Id",
                    "localizedName" : "Somerset Care Id",
                    "rmType" : "DV_IDENTIFIER",
                    "nodeId" : "at0012",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/protocol[at0032]/items[openEHR-EHR-CLUSTER.cancer_wait_times.v0]/items[at0012]/value",
                    "inputs" : [
                      {
                        "suffix" : "id",
                        "type" : "TEXT"
                      },
                      {
                        "suffix" : "type",
                        "type" : "TEXT"
                      },
                      {
                        "suffix" : "issuer",
                        "type" : "TEXT"
                      },
                      {
                        "suffix" : "assigner",
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "patient_informed_date",
                    "name" : "Patient informed date",
                    "localizedName" : "Patient informed date",
                    "rmType" : "DV_DATE_TIME",
                    "nodeId" : "at0010",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/protocol[at0032]/items[openEHR-EHR-CLUSTER.cancer_wait_times.v0]/items[at0010]/value",
                    "inputs" : [
                      {
                        "type" : "DATETIME"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-EVALUATION.problem_diagnosis.v1]/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "child-pugh_score",
            "name" : "Child-Pugh Score",
            "localizedName" : "Child-Pugh Score",
            "rmType" : "OBSERVATION",
            "nodeId" : "openEHR-EHR-OBSERVATION.child_pugh_score.v0",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-OBSERVATION.child_pugh_score.v0]",
            "children" : [
              {
                "id" : "total_child-pugh_score",
                "name" : "Total Child-Pugh score",
                "localizedName" : "Total Child-Pugh score",
                "rmType" : "DV_COUNT",
                "nodeId" : "at0028",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-OBSERVATION.child_pugh_score.v0]/data[at0001]/events[at0002]/data[at0003]/items[at0028]/value",
                "inputs" : [
                  {
                    "type" : "INTEGER",
                    "validation" : {
                      "range" : {
                        "minOp" : ">=",
                        "min" : 5,
                        "maxOp" : "<=",
                        "max" : 15
                      }
                    }
                  }
                ],
                "termBindings" : {
                  "SNOMED-CT" : {
                    "value" : "[SNOMED-CT::710066005]",
                    "terminologyId" : "SNOMED-CT"
                  },
                  "value" : {
                    "value" : "[SNOMED-CT::710066005]",
                    "terminologyId" : "SNOMED-CT"
                  }
                }
              },
              {
                "id" : "time",
                "name" : "Time",
                "rmType" : "DV_DATE_TIME",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-OBSERVATION.child_pugh_score.v0]/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-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-OBSERVATION.child_pugh_score.v0]/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-OBSERVATION.child_pugh_score.v0]/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Diagnosis']/items[openEHR-EHR-OBSERVATION.child_pugh_score.v0]/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "id" : "comorbidities",
        "name" : "Comorbidities",
        "localizedName" : "Comorbidities",
        "rmType" : "OBSERVATION",
        "nodeId" : "openEHR-EHR-OBSERVATION.condition_screening.v0",
        "min" : "0",
        "max" : "1",
        "localizedNames" : [
          null
        ],
        "localizedDescriptions" : [
          null
        ],
        "aqlPath" : "/content[openEHR-EHR-OBSERVATION.condition_screening.v0,'Comorbidities']",
        "children" : [
          {
            "id" : "specific_condition",
            "name" : "Specific condition",
            "localizedName" : "Specific condition",
            "rmType" : "CLUSTER",
            "nodeId" : "at0022",
            "min" : "0",
            "max" : "-1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-OBSERVATION.condition_screening.v0,'Comorbidities']/data[at0001]/events[at0002]/data[at0003]/items[at0022]",
            "children" : [
              {
                "id" : "condition_name",
                "name" : "Condition name",
                "localizedName" : "Condition name",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0004",
                "min" : "1",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-OBSERVATION.condition_screening.v0,'Comorbidities']/data[at0001]/events[at0002]/data[at0003]/items[at0022]/items[at0004]/value",
                "inputs" : [
                  {
                    "type" : "TEXT",
                    "list" : [
                      {
                        "value" : "Acute pancreatitis",
                        "label" : "Acute pancreatitis"
                      },
                      {
                        "value" : "Alcohol-induced pancreatitis",
                        "label" : "Alcohol-induced pancreatitis"
                      },
                      {
                        "value" : "Anaemia",
                        "label" : "Anaemia"
                      },
                      {
                        "value" : "Angina",
                        "label" : "Angina"
                      },
                      {
                        "value" : "On Aspirin",
                        "label" : "On Aspirin"
                      },
                      {
                        "value" : "Bowel",
                        "label" : "Bowel"
                      },
                      {
                        "value" : "Cardiac disease",
                        "label" : "Cardiac disease"
                      },
                      {
                        "value" : "Cerebrovascular disease",
                        "label" : "Cerebrovascular disease"
                      },
                      {
                        "value" : "Chronic pancreatitis",
                        "label" : "Chronic pancreatitis"
                      },
                      {
                        "value" : "Cirrhosis/Liver disease",
                        "label" : "Cirrhosis/Liver disease"
                      },
                      {
                        "value" : "Clotting",
                        "label" : "Clotting"
                      },
                      {
                        "value" : "Chronic obstructive airways disease",
                        "label" : "Chronic obstructive airways disease"
                      },
                      {
                        "value" : "History of CVA",
                        "label" : "History of CVA"
                      },
                      {
                        "value" : "Type 1 Diabetes",
                        "label" : "Type 1 Diabetes"
                      },
                      {
                        "value" : "Type 2 Diabetes",
                        "label" : "Type 2 Diabetes"
                      },
                      {
                        "value" : "Failure",
                        "label" : "Failure"
                      },
                      {
                        "value" : "Heart",
                        "label" : "Heart"
                      },
                      {
                        "value" : "Hypertension",
                        "label" : "Hypertension"
                      },
                      {
                        "value" : "Liver",
                        "label" : "Liver"
                      },
                      {
                        "value" : "Mental illness",
                        "label" : "Mental illness"
                      },
                      {
                        "value" : "MI",
                        "label" : "MI"
                      },
                      {
                        "value" : "Neuro",
                        "label" : "Neuro"
                      },
                      {
                        "value" : "Other",
                        "label" : "Other"
                      },
                      {
                        "value" : "Peripheral vascular disease",
                        "label" : "Peripheral vascular disease"
                      },
                      {
                        "value" : "Renal disease",
                        "label" : "Renal disease"
                      },
                      {
                        "value" : "Respiratory disease",
                        "label" : "Respiratory disease"
                      },
                      {
                        "value" : "Creatinine more than 170 mmols/l",
                        "label" : "Creatinine more than 170 mmols/l"
                      },
                      {
                        "value" : "On steroids",
                        "label" : "On steroids"
                      },
                      {
                        "value" : "Vascular",
                        "label" : "Vascular"
                      },
                      {
                        "value" : "On Warfarin",
                        "label" : "On Warfarin"
                      },
                      {
                        "value" : "DIP",
                        "label" : "DIP"
                      },
                      {
                        "value" : "CLOP",
                        "label" : "CLOP"
                      },
                      {
                        "value" : "Pace",
                        "label" : "Pace"
                      },
                      {
                        "value" : "Barrett's Oesophagus",
                        "label" : "Barrett's Oesophagus"
                      }
                    ],
                    "listOpen" : false
                  }
                ]
              },
              {
                "id" : "presence",
                "name" : "Presence?",
                "localizedName" : "Presence?",
                "rmType" : "DV_CODED_TEXT",
                "nodeId" : "at0005",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-OBSERVATION.condition_screening.v0,'Comorbidities']/data[at0001]/events[at0002]/data[at0003]/items[at0022]/items[at0005]/value",
                "inputs" : [
                  {
                    "suffix" : "code",
                    "type" : "CODED_TEXT",
                    "list" : [
                      {
                        "value" : "at0023",
                        "label" : "Present",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "termBindings" : {
                          "SNOMED-CT" : {
                            "value" : "[SNOMED-CT::410515003]",
                            "terminologyId" : "SNOMED-CT"
                          },
                          "value" : {
                            "value" : "[SNOMED-CT::410515003]",
                            "terminologyId" : "SNOMED-CT"
                          }
                        }
                      },
                      {
                        "value" : "at0024",
                        "label" : "Absent",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "termBindings" : {
                          "SNOMED-CT" : {
                            "value" : "[SNOMED-CT::410516002]",
                            "terminologyId" : "SNOMED-CT"
                          },
                          "value" : {
                            "value" : "[SNOMED-CT::410516002]",
                            "terminologyId" : "SNOMED-CT"
                          }
                        }
                      }
                    ]
                  }
                ]
              }
            ]
          },
          {
            "id" : "comment",
            "name" : "Comment",
            "localizedName" : "Comment",
            "rmType" : "DV_TEXT",
            "nodeId" : "at0025",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-OBSERVATION.condition_screening.v0,'Comorbidities']/data[at0001]/events[at0002]/data[at0003]/items[at0025]/value",
            "inputs" : [
              {
                "type" : "TEXT"
              }
            ]
          },
          {
            "id" : "time",
            "name" : "Time",
            "rmType" : "DV_DATE_TIME",
            "min" : "1",
            "max" : "1",
            "aqlPath" : "/content[openEHR-EHR-OBSERVATION.condition_screening.v0,'Comorbidities']/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.condition_screening.v0,'Comorbidities']/language",
            "inContext" : true
          },
          {
            "id" : "encoding",
            "name" : "Encoding",
            "rmType" : "CODE_PHRASE",
            "min" : "1",
            "max" : "1",
            "aqlPath" : "/content[openEHR-EHR-OBSERVATION.condition_screening.v0,'Comorbidities']/encoding",
            "inContext" : true
          },
          {
            "id" : "subject",
            "name" : "Subject",
            "rmType" : "PARTY_PROXY",
            "min" : "1",
            "max" : "1",
            "aqlPath" : "/content[openEHR-EHR-OBSERVATION.condition_screening.v0,'Comorbidities']/subject",
            "inContext" : true,
            "inputs" : [
              {
                "suffix" : "id",
                "type" : "TEXT"
              },
              {
                "suffix" : "id_scheme",
                "type" : "TEXT"
              },
              {
                "suffix" : "id_namespace",
                "type" : "TEXT"
              },
              {
                "suffix" : "name",
                "type" : "TEXT"
              }
            ]
          }
        ]
      },
      {
        "id" : "past_medical_history",
        "name" : "Past medical history",
        "localizedName" : "Past medical history",
        "rmType" : "EVALUATION",
        "nodeId" : "openEHR-EHR-EVALUATION.clinical_synopsis.v1",
        "min" : "0",
        "max" : "1",
        "localizedNames" : [
          null
        ],
        "localizedDescriptions" : [
          null
        ],
        "aqlPath" : "/content[openEHR-EHR-EVALUATION.clinical_synopsis.v1,'Past medical history']",
        "children" : [
          {
            "id" : "synopsis",
            "name" : "Synopsis",
            "localizedName" : "Synopsis",
            "rmType" : "DV_TEXT",
            "nodeId" : "at0002",
            "min" : "1",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-EVALUATION.clinical_synopsis.v1,'Past medical history']/data[at0001]/items[at0002]/value",
            "inputs" : [
              {
                "type" : "TEXT"
              }
            ]
          },
          {
            "id" : "language",
            "name" : "Language",
            "rmType" : "CODE_PHRASE",
            "min" : "1",
            "max" : "1",
            "aqlPath" : "/content[openEHR-EHR-EVALUATION.clinical_synopsis.v1,'Past medical history']/language",
            "inContext" : true
          },
          {
            "id" : "encoding",
            "name" : "Encoding",
            "rmType" : "CODE_PHRASE",
            "min" : "1",
            "max" : "1",
            "aqlPath" : "/content[openEHR-EHR-EVALUATION.clinical_synopsis.v1,'Past medical history']/encoding",
            "inContext" : true
          },
          {
            "id" : "subject",
            "name" : "Subject",
            "rmType" : "PARTY_PROXY",
            "min" : "1",
            "max" : "1",
            "aqlPath" : "/content[openEHR-EHR-EVALUATION.clinical_synopsis.v1,'Past medical history']/subject",
            "inContext" : true,
            "inputs" : [
              {
                "suffix" : "id",
                "type" : "TEXT"
              },
              {
                "suffix" : "id_scheme",
                "type" : "TEXT"
              },
              {
                "suffix" : "id_namespace",
                "type" : "TEXT"
              },
              {
                "suffix" : "name",
                "type" : "TEXT"
              }
            ]
          }
        ]
      },
      {
        "id" : "scr_palliative_care_assessment",
        "name" : "SCR Palliative care assessment",
        "localizedName" : "SCR Palliative care assessment",
        "rmType" : "EVALUATION",
        "nodeId" : "openEHR-EHR-EVALUATION.scr_palliative_care_assessment.v0",
        "min" : "0",
        "max" : "-1",
        "localizedNames" : [
          null
        ],
        "localizedDescriptions" : [
          null
        ],
        "aqlPath" : "/content[openEHR-EHR-EVALUATION.scr_palliative_care_assessment.v0]",
        "children" : [
          {
            "id" : "pain_control",
            "name" : "Pain control",
            "localizedName" : "Pain control",
            "rmType" : "DV_CODED_TEXT",
            "nodeId" : "at0007",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-EVALUATION.scr_palliative_care_assessment.v0]/data[at0001]/items[at0007]/value",
            "inputs" : [
              {
                "suffix" : "code",
                "type" : "CODED_TEXT",
                "list" : [
                  {
                    "value" : "at0011",
                    "label" : "Yes",
                    "localizedLabels" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ]
                  },
                  {
                    "value" : "at0012",
                    "label" : "No",
                    "localizedLabels" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ]
                  }
                ]
              }
            ]
          },
          {
            "id" : "other_symptom_management",
            "name" : "Other symptom management",
            "localizedName" : "Other symptom management",
            "rmType" : "DV_CODED_TEXT",
            "nodeId" : "at0008",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-EVALUATION.scr_palliative_care_assessment.v0]/data[at0001]/items[at0008]/value",
            "inputs" : [
              {
                "suffix" : "code",
                "type" : "CODED_TEXT",
                "list" : [
                  {
                    "value" : "at0013",
                    "label" : "Yes",
                    "localizedLabels" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ]
                  },
                  {
                    "value" : "at0014",
                    "label" : "No",
                    "localizedLabels" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ]
                  }
                ]
              }
            ]
          },
          {
            "id" : "telephone_support",
            "name" : "Telephone support",
            "localizedName" : "Telephone support",
            "rmType" : "DV_CODED_TEXT",
            "nodeId" : "at0009",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-EVALUATION.scr_palliative_care_assessment.v0]/data[at0001]/items[at0009]/value",
            "inputs" : [
              {
                "suffix" : "code",
                "type" : "CODED_TEXT",
                "list" : [
                  {
                    "value" : "at0015",
                    "label" : "Yes",
                    "localizedLabels" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ]
                  },
                  {
                    "value" : "at0016",
                    "label" : "No",
                    "localizedLabels" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ]
                  }
                ]
              }
            ]
          },
          {
            "id" : "psychological_support",
            "name" : "Psychological support",
            "localizedName" : "Psychological support",
            "rmType" : "DV_CODED_TEXT",
            "nodeId" : "at0010",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-EVALUATION.scr_palliative_care_assessment.v0]/data[at0001]/items[at0010]/value",
            "inputs" : [
              {
                "suffix" : "code",
                "type" : "CODED_TEXT",
                "list" : [
                  {
                    "value" : "at0017",
                    "label" : "Yes",
                    "localizedLabels" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ]
                  },
                  {
                    "value" : "at0018",
                    "label" : "No",
                    "localizedLabels" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ]
                  }
                ]
              }
            ]
          },
          {
            "id" : "contact_date",
            "name" : "Contact date",
            "localizedName" : "Contact date",
            "rmType" : "DV_DATE_TIME",
            "nodeId" : "at0004",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-EVALUATION.scr_palliative_care_assessment.v0]/protocol[at0002]/items[at0004]/value",
            "inputs" : [
              {
                "type" : "DATETIME"
              }
            ]
          },
          {
            "id" : "assessment_id",
            "name" : "Assessment ID",
            "localizedName" : "Assessment ID",
            "rmType" : "DV_IDENTIFIER",
            "nodeId" : "at0006",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-EVALUATION.scr_palliative_care_assessment.v0]/protocol[at0002]/items[at0006]/value",
            "inputs" : [
              {
                "suffix" : "id",
                "type" : "TEXT"
              },
              {
                "suffix" : "type",
                "type" : "TEXT"
              },
              {
                "suffix" : "issuer",
                "type" : "TEXT"
              },
              {
                "suffix" : "assigner",
                "type" : "TEXT"
              }
            ]
          },
          {
            "id" : "language",
            "name" : "Language",
            "rmType" : "CODE_PHRASE",
            "min" : "1",
            "max" : "1",
            "aqlPath" : "/content[openEHR-EHR-EVALUATION.scr_palliative_care_assessment.v0]/language",
            "inContext" : true
          },
          {
            "id" : "encoding",
            "name" : "Encoding",
            "rmType" : "CODE_PHRASE",
            "min" : "1",
            "max" : "1",
            "aqlPath" : "/content[openEHR-EHR-EVALUATION.scr_palliative_care_assessment.v0]/encoding",
            "inContext" : true
          },
          {
            "id" : "subject",
            "name" : "Subject",
            "rmType" : "PARTY_PROXY",
            "min" : "1",
            "max" : "1",
            "aqlPath" : "/content[openEHR-EHR-EVALUATION.scr_palliative_care_assessment.v0]/subject",
            "inContext" : true,
            "inputs" : [
              {
                "suffix" : "id",
                "type" : "TEXT"
              },
              {
                "suffix" : "id_scheme",
                "type" : "TEXT"
              },
              {
                "suffix" : "id_namespace",
                "type" : "TEXT"
              },
              {
                "suffix" : "name",
                "type" : "TEXT"
              }
            ]
          }
        ]
      },
      {
        "id" : "holistic_needs_assessment_summary",
        "name" : "Holistic Needs Assessment Summary",
        "localizedName" : "Holistic Needs Assessment Summary",
        "rmType" : "EVALUATION",
        "nodeId" : "openEHR-EHR-EVALUATION.holistic_needs_assessment_summary.v0",
        "min" : "0",
        "max" : "-1",
        "localizedNames" : [
          null
        ],
        "localizedDescriptions" : [
          null
        ],
        "annotations" : {
          "comment" : "Use for managing a summary of the McMillan Holistic Needs Assessment process."
        },
        "aqlPath" : "/content[openEHR-EHR-EVALUATION.holistic_needs_assessment_summary.v0]",
        "children" : [
          {
            "id" : "summary_of_hna",
            "name" : "Summary of HNA",
            "localizedName" : "Summary of HNA",
            "rmType" : "DV_TEXT",
            "nodeId" : "at0015",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-EVALUATION.holistic_needs_assessment_summary.v0]/data[at0001]/items[at0015]/value",
            "inputs" : [
              {
                "type" : "TEXT"
              }
            ]
          },
          {
            "id" : "date_last_updated",
            "name" : "Date last updated",
            "localizedName" : "Date last updated",
            "rmType" : "DV_DATE_TIME",
            "nodeId" : "at0017",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-EVALUATION.holistic_needs_assessment_summary.v0]/protocol[at0012]/items[at0017]/value",
            "inputs" : [
              {
                "type" : "DATETIME"
              }
            ]
          },
          {
            "id" : "language",
            "name" : "Language",
            "rmType" : "CODE_PHRASE",
            "min" : "1",
            "max" : "1",
            "aqlPath" : "/content[openEHR-EHR-EVALUATION.holistic_needs_assessment_summary.v0]/language",
            "inContext" : true
          },
          {
            "id" : "encoding",
            "name" : "Encoding",
            "rmType" : "CODE_PHRASE",
            "min" : "1",
            "max" : "1",
            "aqlPath" : "/content[openEHR-EHR-EVALUATION.holistic_needs_assessment_summary.v0]/encoding",
            "inContext" : true
          },
          {
            "id" : "subject",
            "name" : "Subject",
            "rmType" : "PARTY_PROXY",
            "min" : "1",
            "max" : "1",
            "aqlPath" : "/content[openEHR-EHR-EVALUATION.holistic_needs_assessment_summary.v0]/subject",
            "inContext" : true,
            "inputs" : [
              {
                "suffix" : "id",
                "type" : "TEXT"
              },
              {
                "suffix" : "id_scheme",
                "type" : "TEXT"
              },
              {
                "suffix" : "id_namespace",
                "type" : "TEXT"
              },
              {
                "suffix" : "name",
                "type" : "TEXT"
              }
            ]
          }
        ]
      },
      {
        "id" : "treatment",
        "name" : "Treatment",
        "localizedName" : "Treatment",
        "rmType" : "SECTION",
        "nodeId" : "openEHR-EHR-SECTION.adhoc.v1",
        "min" : "0",
        "max" : "1",
        "localizedNames" : [
          null
        ],
        "localizedDescriptions" : [
          null
        ],
        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']",
        "children" : [
          {
            "id" : "brachytherapy",
            "name" : "Brachytherapy",
            "localizedName" : "Brachytherapy",
            "rmType" : "ACTION",
            "nodeId" : "openEHR-EHR-ACTION.procedure.v1",
            "min" : "0",
            "max" : "-1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Brachytherapy']",
            "children" : [
              {
                "id" : "ism_transition",
                "name" : "Ism_transition",
                "rmType" : "ISM_TRANSITION",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Brachytherapy']/ism_transition",
                "inContext" : true,
                "children" : [
                  {
                    "id" : "current_state",
                    "name" : "Current_state",
                    "rmType" : "DV_CODED_TEXT",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Brachytherapy']/ism_transition/current_state",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "532",
                            "label" : "completed"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "transition",
                    "name" : "Transition",
                    "rmType" : "DV_CODED_TEXT",
                    "min" : "0",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Brachytherapy']/ism_transition/transition",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "TEXT"
                      },
                      {
                        "suffix" : "value",
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "careflow_step",
                    "name" : "Careflow_step",
                    "rmType" : "DV_CODED_TEXT",
                    "min" : "0",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Brachytherapy']/ism_transition/careflow_step",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "at0043",
                            "label" : "Procedure completed",
                            "localizedLabels" : [
                              null
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "procedure_name",
                "name" : "Procedure name",
                "localizedName" : "Procedure name",
                "rmType" : "DV_CODED_TEXT",
                "nodeId" : "at0002",
                "min" : "1",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "Coding of the specific procedure with a terminology is preferred, where possible."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Brachytherapy']/description[at0001]/items[at0002]/value",
                "inputs" : [
                  {
                    "suffix" : "code",
                    "type" : "CODED_TEXT",
                    "defaultValue" : "152198000",
                    "terminology" : "SNOMED-CT",
                    "list" : [
                      {
                        "value" : "152198000",
                        "label" : "Brachytherapy",
                        "localizedLabels" : [
                          null
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "brachytherapy_type",
                "name" : "Brachytherapy type",
                "localizedName" : "Brachytherapy type",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0065",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "Use this data element to record simple terms or a narrative description. If the requirements for recording the method require more complex modelling then this can be represented by additional archetypes within the 'Procedure detail' SLOT in this archetype. If the method is included in the 'Procedure name' via precoordinated codes, this data element becomes redundant."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Brachytherapy']/description[at0001]/items[at0065,'Brachytherapy type']/value",
                "inputs" : [
                  {
                    "type" : "TEXT"
                  }
                ]
              },
              {
                "id" : "brachytherapy_id",
                "name" : "Brachytherapy ID",
                "localizedName" : "Brachytherapy ID",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0056",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "This is equivalent to Filler Order Number in HL7 v2 specifications."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Brachytherapy']/protocol[at0053]/items[at0056,'Brachytherapy ID']/value",
                "inputs" : [
                  {
                    "type" : "TEXT"
                  }
                ]
              },
              {
                "id" : "time",
                "name" : "Time",
                "rmType" : "DV_DATE_TIME",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Brachytherapy']/time",
                "inContext" : true,
                "inputs" : [
                  {
                    "type" : "DATETIME"
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Brachytherapy']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Brachytherapy']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Brachytherapy']/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "teletherapy",
            "name" : "Teletherapy",
            "localizedName" : "Teletherapy",
            "rmType" : "ACTION",
            "nodeId" : "openEHR-EHR-ACTION.procedure.v1",
            "min" : "0",
            "max" : "-1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Teletherapy']",
            "children" : [
              {
                "id" : "ism_transition",
                "name" : "Ism_transition",
                "rmType" : "ISM_TRANSITION",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Teletherapy']/ism_transition",
                "inContext" : true,
                "children" : [
                  {
                    "id" : "current_state",
                    "name" : "Current_state",
                    "rmType" : "DV_CODED_TEXT",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Teletherapy']/ism_transition/current_state",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "532",
                            "label" : "completed"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "transition",
                    "name" : "Transition",
                    "rmType" : "DV_CODED_TEXT",
                    "min" : "0",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Teletherapy']/ism_transition/transition",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "TEXT"
                      },
                      {
                        "suffix" : "value",
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "careflow_step",
                    "name" : "Careflow_step",
                    "rmType" : "DV_CODED_TEXT",
                    "min" : "0",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Teletherapy']/ism_transition/careflow_step",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "at0043",
                            "label" : "Procedure completed",
                            "localizedLabels" : [
                              null
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "procedure_name",
                "name" : "Procedure name",
                "localizedName" : "Procedure name",
                "rmType" : "DV_CODED_TEXT",
                "nodeId" : "at0002",
                "min" : "1",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "Coding of the specific procedure with a terminology is preferred, where possible."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Teletherapy']/description[at0001]/items[at0002]/value",
                "inputs" : [
                  {
                    "suffix" : "code",
                    "type" : "CODED_TEXT",
                    "defaultValue" : "33195004",
                    "terminology" : "SNOMED-CT",
                    "list" : [
                      {
                        "value" : "33195004",
                        "label" : "Teletherapy",
                        "localizedLabels" : [
                          null
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "treatment_site",
                "name" : "Treatment site",
                "localizedName" : "Treatment site",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0063",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "Occurrences for this data element are unbounded to allow for clinical scenarios such as removing multiple skin lesions in different places, but where all of the other attributes are identical. Use this data element to record simple terms or precoordinated anatomical locations. If the requirements for recording the anatomical location are determined at run-time by the application or require more complex modelling such as relative locations then use the CLUSTER.anatomical_location or CLUSTER.relative_location within the 'Procedure detail' SLOT in this archetype. If the anatomical location is included in the 'Procedure name' via precoordinated codes, this data element becomes redundant."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Teletherapy']/description[at0001]/items[at0063,'Treatment site']/value",
                "inputs" : [
                  {
                    "type" : "TEXT"
                  }
                ]
              },
              {
                "id" : "treatment_intent",
                "name" : "Treatment intent",
                "localizedName" : "Treatment intent",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0014",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "For example: the reason for the cancellation or suspension of the procedure."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Teletherapy']/description[at0001]/items[at0014,'Treatment intent']/value",
                "inputs" : [
                  {
                    "type" : "TEXT"
                  }
                ]
              },
              {
                "id" : "teletherapy_id",
                "name" : "Teletherapy ID",
                "localizedName" : "Teletherapy ID",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0056",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "This is equivalent to Filler Order Number in HL7 v2 specifications."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Teletherapy']/protocol[at0053]/items[at0056,'Teletherapy ID']/value",
                "inputs" : [
                  {
                    "type" : "TEXT"
                  }
                ]
              },
              {
                "id" : "time",
                "name" : "Time",
                "rmType" : "DV_DATE_TIME",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Teletherapy']/time",
                "inContext" : true,
                "inputs" : [
                  {
                    "type" : "DATETIME"
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Teletherapy']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Teletherapy']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Teletherapy']/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "chemotherapy",
            "name" : "Chemotherapy",
            "localizedName" : "Chemotherapy",
            "rmType" : "ACTION",
            "nodeId" : "openEHR-EHR-ACTION.procedure.v1",
            "min" : "0",
            "max" : "-1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Chemotherapy']",
            "children" : [
              {
                "id" : "ism_transition",
                "name" : "Ism_transition",
                "rmType" : "ISM_TRANSITION",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Chemotherapy']/ism_transition",
                "inContext" : true,
                "children" : [
                  {
                    "id" : "current_state",
                    "name" : "Current_state",
                    "rmType" : "DV_CODED_TEXT",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Chemotherapy']/ism_transition/current_state",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "532",
                            "label" : "completed"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "transition",
                    "name" : "Transition",
                    "rmType" : "DV_CODED_TEXT",
                    "min" : "0",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Chemotherapy']/ism_transition/transition",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "TEXT"
                      },
                      {
                        "suffix" : "value",
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "careflow_step",
                    "name" : "Careflow_step",
                    "rmType" : "DV_CODED_TEXT",
                    "min" : "0",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Chemotherapy']/ism_transition/careflow_step",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "at0043",
                            "label" : "Procedure completed",
                            "localizedLabels" : [
                              null
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "procedure_name",
                "name" : "Procedure name",
                "localizedName" : "Procedure name",
                "rmType" : "DV_CODED_TEXT",
                "nodeId" : "at0002",
                "min" : "1",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "Coding of the specific procedure with a terminology is preferred, where possible."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Chemotherapy']/description[at0001]/items[at0002]/value",
                "inputs" : [
                  {
                    "suffix" : "code",
                    "type" : "CODED_TEXT",
                    "defaultValue" : "367336001",
                    "terminology" : "SNOMED-CT",
                    "list" : [
                      {
                        "value" : "367336001",
                        "label" : "Chemotherapy",
                        "localizedLabels" : [
                          null
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "drug_regimen",
                "name" : "Drug regimen",
                "localizedName" : "Drug regimen",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0065",
                "min" : "0",
                "max" : "-1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "Use this data element to record simple terms or a narrative description. If the requirements for recording the method require more complex modelling then this can be represented by additional archetypes within the 'Procedure detail' SLOT in this archetype. If the method is included in the 'Procedure name' via precoordinated codes, this data element becomes redundant."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Chemotherapy']/description[at0001]/items[at0065,'Drug regimen']/value",
                "inputs" : [
                  {
                    "type" : "TEXT"
                  }
                ]
              },
              {
                "id" : "treatment_intent",
                "name" : "Treatment intent",
                "localizedName" : "Treatment intent",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0014",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "For example: the reason for the cancellation or suspension of the procedure."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Chemotherapy']/description[at0001]/items[at0014,'Treatment intent']/value",
                "inputs" : [
                  {
                    "type" : "TEXT"
                  }
                ]
              },
              {
                "id" : "chemotherapy_id",
                "name" : "Chemotherapy ID",
                "localizedName" : "Chemotherapy ID",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0056",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "This is equivalent to Filler Order Number in HL7 v2 specifications."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Chemotherapy']/protocol[at0053]/items[at0056,'Chemotherapy ID']/value",
                "inputs" : [
                  {
                    "type" : "TEXT"
                  }
                ]
              },
              {
                "id" : "time",
                "name" : "Time",
                "rmType" : "DV_DATE_TIME",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Chemotherapy']/time",
                "inContext" : true,
                "inputs" : [
                  {
                    "type" : "DATETIME"
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Chemotherapy']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Chemotherapy']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-ACTION.procedure.v1,'Chemotherapy']/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "surgery",
            "name" : "Surgery",
            "localizedName" : "Surgery",
            "rmType" : "SECTION",
            "nodeId" : "openEHR-EHR-SECTION.adhoc.v1",
            "min" : "0",
            "max" : "-1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-SECTION.adhoc.v1,'Surgery']",
            "children" : [
              {
                "id" : "primary_procedure",
                "name" : "Primary procedure",
                "localizedName" : "Primary procedure",
                "rmType" : "ACTION",
                "nodeId" : "openEHR-EHR-ACTION.procedure.v1",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-SECTION.adhoc.v1,'Surgery']/items[openEHR-EHR-ACTION.procedure.v1,'Primary procedure']",
                "children" : [
                  {
                    "id" : "ism_transition",
                    "name" : "Ism_transition",
                    "rmType" : "ISM_TRANSITION",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-SECTION.adhoc.v1,'Surgery']/items[openEHR-EHR-ACTION.procedure.v1,'Primary procedure']/ism_transition",
                    "inContext" : true,
                    "children" : [
                      {
                        "id" : "current_state",
                        "name" : "Current_state",
                        "rmType" : "DV_CODED_TEXT",
                        "min" : "1",
                        "max" : "1",
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-SECTION.adhoc.v1,'Surgery']/items[openEHR-EHR-ACTION.procedure.v1,'Primary procedure']/ism_transition/current_state",
                        "inContext" : true,
                        "inputs" : [
                          {
                            "suffix" : "code",
                            "type" : "CODED_TEXT",
                            "list" : [
                              {
                                "value" : "532",
                                "label" : "completed"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "id" : "transition",
                        "name" : "Transition",
                        "rmType" : "DV_CODED_TEXT",
                        "min" : "0",
                        "max" : "1",
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-SECTION.adhoc.v1,'Surgery']/items[openEHR-EHR-ACTION.procedure.v1,'Primary procedure']/ism_transition/transition",
                        "inContext" : true,
                        "inputs" : [
                          {
                            "suffix" : "code",
                            "type" : "TEXT"
                          },
                          {
                            "suffix" : "value",
                            "type" : "TEXT"
                          }
                        ]
                      },
                      {
                        "id" : "careflow_step",
                        "name" : "Careflow_step",
                        "rmType" : "DV_CODED_TEXT",
                        "min" : "0",
                        "max" : "1",
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-SECTION.adhoc.v1,'Surgery']/items[openEHR-EHR-ACTION.procedure.v1,'Primary procedure']/ism_transition/careflow_step",
                        "inContext" : true,
                        "inputs" : [
                          {
                            "suffix" : "code",
                            "type" : "CODED_TEXT",
                            "list" : [
                              {
                                "value" : "at0043",
                                "label" : "Procedure completed",
                                "localizedLabels" : [
                                  null
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "procedure_name",
                    "name" : "Procedure name",
                    "localizedName" : "Procedure name",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0002",
                    "min" : "1",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "Coding of the specific procedure with a terminology is preferred, where possible."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-SECTION.adhoc.v1,'Surgery']/items[openEHR-EHR-ACTION.procedure.v1,'Primary procedure']/description[at0001]/items[at0002]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "surgery_id",
                    "name" : "Surgery ID",
                    "localizedName" : "Surgery ID",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0056",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "This is equivalent to Filler Order Number in HL7 v2 specifications."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-SECTION.adhoc.v1,'Surgery']/items[openEHR-EHR-ACTION.procedure.v1,'Primary procedure']/protocol[at0053]/items[at0056,'Surgery ID']/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "time",
                    "name" : "Time",
                    "rmType" : "DV_DATE_TIME",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-SECTION.adhoc.v1,'Surgery']/items[openEHR-EHR-ACTION.procedure.v1,'Primary procedure']/time",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "type" : "DATETIME"
                      }
                    ]
                  },
                  {
                    "id" : "language",
                    "name" : "Language",
                    "rmType" : "CODE_PHRASE",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-SECTION.adhoc.v1,'Surgery']/items[openEHR-EHR-ACTION.procedure.v1,'Primary procedure']/language",
                    "inContext" : true
                  },
                  {
                    "id" : "encoding",
                    "name" : "Encoding",
                    "rmType" : "CODE_PHRASE",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-SECTION.adhoc.v1,'Surgery']/items[openEHR-EHR-ACTION.procedure.v1,'Primary procedure']/encoding",
                    "inContext" : true
                  },
                  {
                    "id" : "subject",
                    "name" : "Subject",
                    "rmType" : "PARTY_PROXY",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-SECTION.adhoc.v1,'Surgery']/items[openEHR-EHR-ACTION.procedure.v1,'Primary procedure']/subject",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "suffix" : "id",
                        "type" : "TEXT"
                      },
                      {
                        "suffix" : "id_scheme",
                        "type" : "TEXT"
                      },
                      {
                        "suffix" : "id_namespace",
                        "type" : "TEXT"
                      },
                      {
                        "suffix" : "name",
                        "type" : "TEXT"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "secondary_procedure",
                "name" : "Secondary procedure",
                "localizedName" : "Secondary procedure",
                "rmType" : "ACTION",
                "nodeId" : "openEHR-EHR-ACTION.procedure.v1",
                "min" : "0",
                "max" : "-1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-SECTION.adhoc.v1,'Surgery']/items[openEHR-EHR-ACTION.procedure.v1,'Secondary procedure']",
                "children" : [
                  {
                    "id" : "ism_transition",
                    "name" : "Ism_transition",
                    "rmType" : "ISM_TRANSITION",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-SECTION.adhoc.v1,'Surgery']/items[openEHR-EHR-ACTION.procedure.v1,'Secondary procedure']/ism_transition",
                    "inContext" : true,
                    "children" : [
                      {
                        "id" : "current_state",
                        "name" : "Current_state",
                        "rmType" : "DV_CODED_TEXT",
                        "min" : "1",
                        "max" : "1",
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-SECTION.adhoc.v1,'Surgery']/items[openEHR-EHR-ACTION.procedure.v1,'Secondary procedure']/ism_transition/current_state",
                        "inContext" : true,
                        "inputs" : [
                          {
                            "suffix" : "code",
                            "type" : "CODED_TEXT",
                            "list" : [
                              {
                                "value" : "532",
                                "label" : "completed"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "id" : "transition",
                        "name" : "Transition",
                        "rmType" : "DV_CODED_TEXT",
                        "min" : "0",
                        "max" : "1",
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-SECTION.adhoc.v1,'Surgery']/items[openEHR-EHR-ACTION.procedure.v1,'Secondary procedure']/ism_transition/transition",
                        "inContext" : true,
                        "inputs" : [
                          {
                            "suffix" : "code",
                            "type" : "TEXT"
                          },
                          {
                            "suffix" : "value",
                            "type" : "TEXT"
                          }
                        ]
                      },
                      {
                        "id" : "careflow_step",
                        "name" : "Careflow_step",
                        "rmType" : "DV_CODED_TEXT",
                        "min" : "0",
                        "max" : "1",
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-SECTION.adhoc.v1,'Surgery']/items[openEHR-EHR-ACTION.procedure.v1,'Secondary procedure']/ism_transition/careflow_step",
                        "inContext" : true,
                        "inputs" : [
                          {
                            "suffix" : "code",
                            "type" : "CODED_TEXT",
                            "list" : [
                              {
                                "value" : "at0043",
                                "label" : "Procedure completed",
                                "localizedLabels" : [
                                  null
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "procedure_name",
                    "name" : "Procedure name",
                    "localizedName" : "Procedure name",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0002",
                    "min" : "1",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "Coding of the specific procedure with a terminology is preferred, where possible."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-SECTION.adhoc.v1,'Surgery']/items[openEHR-EHR-ACTION.procedure.v1,'Secondary procedure']/description[at0001]/items[at0002]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "surgery_id",
                    "name" : "Surgery ID",
                    "localizedName" : "Surgery ID",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0056",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "This is equivalent to Filler Order Number in HL7 v2 specifications."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-SECTION.adhoc.v1,'Surgery']/items[openEHR-EHR-ACTION.procedure.v1,'Secondary procedure']/protocol[at0053]/items[at0056,'Surgery ID']/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "time",
                    "name" : "Time",
                    "rmType" : "DV_DATE_TIME",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-SECTION.adhoc.v1,'Surgery']/items[openEHR-EHR-ACTION.procedure.v1,'Secondary procedure']/time",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "type" : "DATETIME"
                      }
                    ]
                  },
                  {
                    "id" : "language",
                    "name" : "Language",
                    "rmType" : "CODE_PHRASE",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-SECTION.adhoc.v1,'Surgery']/items[openEHR-EHR-ACTION.procedure.v1,'Secondary procedure']/language",
                    "inContext" : true
                  },
                  {
                    "id" : "encoding",
                    "name" : "Encoding",
                    "rmType" : "CODE_PHRASE",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-SECTION.adhoc.v1,'Surgery']/items[openEHR-EHR-ACTION.procedure.v1,'Secondary procedure']/encoding",
                    "inContext" : true
                  },
                  {
                    "id" : "subject",
                    "name" : "Subject",
                    "rmType" : "PARTY_PROXY",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Treatment']/items[openEHR-EHR-SECTION.adhoc.v1,'Surgery']/items[openEHR-EHR-ACTION.procedure.v1,'Secondary procedure']/subject",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "suffix" : "id",
                        "type" : "TEXT"
                      },
                      {
                        "suffix" : "id_scheme",
                        "type" : "TEXT"
                      },
                      {
                        "suffix" : "id_namespace",
                        "type" : "TEXT"
                      },
                      {
                        "suffix" : "name",
                        "type" : "TEXT"
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "id" : "investigations",
        "name" : "Investigations",
        "localizedName" : "Investigations",
        "rmType" : "SECTION",
        "nodeId" : "openEHR-EHR-SECTION.adhoc.v1",
        "min" : "0",
        "max" : "1",
        "localizedNames" : [
          null
        ],
        "localizedDescriptions" : [
          null
        ],
        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Investigations']",
        "children" : [
          {
            "id" : "imaging",
            "name" : "Imaging",
            "localizedName" : "Imaging",
            "rmType" : "OBSERVATION",
            "nodeId" : "openEHR-EHR-OBSERVATION.imaging_exam_result.v0",
            "min" : "0",
            "max" : "-1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Investigations']/items[openEHR-EHR-OBSERVATION.imaging_exam_result.v0,'Imaging']",
            "children" : [
              {
                "id" : "procedure",
                "name" : "Procedure",
                "localizedName" : "Procedure",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0004",
                "min" : "1",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "Coding with a terminology, potentially a pre-coordinated term specifying both modality and anatomical location, is desirable where possible. Possible candidate terminologies: LOINC, SNOMED CT or RadLex."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Investigations']/items[openEHR-EHR-OBSERVATION.imaging_exam_result.v0,'Imaging']/data[at0001]/events[at0002]/data[at0003]/items[at0004,'Procedure']/value",
                "inputs" : [
                  {
                    "type" : "TEXT"
                  }
                ]
              },
              {
                "id" : "modality",
                "name" : "Modality",
                "localizedName" : "Modality",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0005",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "Also known as 'Examination type'. For example: Ultrasound; Computed tomography; or X-ray. Coding with a terminology is desirable, where possible. If the modality is specified by a code in the Examination result name, then this field may be redundant."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Investigations']/items[openEHR-EHR-OBSERVATION.imaging_exam_result.v0,'Imaging']/data[at0001]/events[at0002]/data[at0003]/items[at0005]/value",
                "inputs" : [
                  {
                    "type" : "TEXT"
                  }
                ]
              },
              {
                "id" : "anatomical_site",
                "name" : "Anatomical site",
                "localizedName" : "Anatomical site",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0055",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "This data element is redundant if the anatomical site is identified in the 'Test name'."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Investigations']/items[openEHR-EHR-OBSERVATION.imaging_exam_result.v0,'Imaging']/data[at0001]/events[at0002]/data[at0003]/items[at0055]/value",
                "inputs" : [
                  {
                    "type" : "TEXT"
                  }
                ]
              },
              {
                "id" : "imaging_outcome",
                "name" : "Imaging outcome",
                "localizedName" : "Imaging outcome",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0021",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "Also referred to as 'Opinion' or 'Impression'."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Investigations']/items[openEHR-EHR-OBSERVATION.imaging_exam_result.v0,'Imaging']/data[at0001]/events[at0002]/data[at0003]/items[at0021,'Imaging outcome']/value",
                "inputs" : [
                  {
                    "type" : "TEXT"
                  }
                ]
              },
              {
                "id" : "time",
                "name" : "Time",
                "rmType" : "DV_DATE_TIME",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Investigations']/items[openEHR-EHR-OBSERVATION.imaging_exam_result.v0,'Imaging']/data[at0001]/events[at0002]/time",
                "inContext" : true,
                "inputs" : [
                  {
                    "type" : "DATETIME"
                  }
                ]
              },
              {
                "id" : "procedure_description",
                "name" : "Procedure description",
                "localizedName" : "Procedure description",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0049",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "For example: outline of technique; non-routine alternative or additional imaging; nature and route of administration of contrast agent, radiopharmaceuticals and/or treatments administered; adverse reactions to contrast media."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Investigations']/items[openEHR-EHR-OBSERVATION.imaging_exam_result.v0,'Imaging']/protocol[at0025]/items[at0049,'Procedure description']/value",
                "inputs" : [
                  {
                    "type" : "TEXT"
                  }
                ]
              },
              {
                "id" : "examination_request_details",
                "name" : "Examination request details",
                "localizedName" : "Examination request details",
                "rmType" : "CLUSTER",
                "nodeId" : "at0027",
                "min" : "0",
                "max" : "-1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Investigations']/items[openEHR-EHR-OBSERVATION.imaging_exam_result.v0,'Imaging']/protocol[at0025]/items[at0027]",
                "children" : [
                  {
                    "id" : "image_id",
                    "name" : "Image ID",
                    "localizedName" : "Image ID",
                    "rmType" : "DV_IDENTIFIER",
                    "nodeId" : "at0033",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Investigations']/items[openEHR-EHR-OBSERVATION.imaging_exam_result.v0,'Imaging']/protocol[at0025]/items[at0027]/items[at0033,'Image ID']/value",
                    "inputs" : [
                      {
                        "suffix" : "id",
                        "type" : "TEXT"
                      },
                      {
                        "suffix" : "type",
                        "type" : "TEXT"
                      },
                      {
                        "suffix" : "issuer",
                        "type" : "TEXT"
                      },
                      {
                        "suffix" : "assigner",
                        "type" : "TEXT"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Investigations']/items[openEHR-EHR-OBSERVATION.imaging_exam_result.v0,'Imaging']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Investigations']/items[openEHR-EHR-OBSERVATION.imaging_exam_result.v0,'Imaging']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Investigations']/items[openEHR-EHR-OBSERVATION.imaging_exam_result.v0,'Imaging']/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "pathology",
            "name" : "Pathology",
            "localizedName" : "Pathology",
            "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,'Investigations']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Pathology']",
            "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,'Investigations']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Pathology']/data[at0001]/events[at0002]/data[at0003]/items[at0005]/value",
                "inputs" : [
                  {
                    "type" : "TEXT",
                    "defaultValue" : "Histopathology test"
                  }
                ]
              },
              {
                "id" : "histopathology_summary",
                "name" : "Histopathology summary",
                "localizedName" : "Histopathology summary",
                "rmType" : "CLUSTER",
                "nodeId" : "openEHR-EHR-CLUSTER.histopath_summary_cosd.v0",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Investigations']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Pathology']/data[at0001]/events[at0002]/data[at0003]/items[openEHR-EHR-CLUSTER.histopath_summary_cosd.v0]",
                "children" : [
                  {
                    "id" : "number_of_nodes_positive",
                    "name" : "Number of nodes positive",
                    "localizedName" : "Number of nodes positive",
                    "rmType" : "DV_COUNT",
                    "nodeId" : "at0002",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Investigations']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Pathology']/data[at0001]/events[at0002]/data[at0003]/items[openEHR-EHR-CLUSTER.histopath_summary_cosd.v0]/items[at0002]/value",
                    "inputs" : [
                      {
                        "type" : "INTEGER"
                      }
                    ]
                  },
                  {
                    "id" : "number_of_nodes_examined",
                    "name" : "Number of nodes examined",
                    "localizedName" : "Number of nodes examined",
                    "rmType" : "DV_COUNT",
                    "nodeId" : "at0003",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Investigations']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Pathology']/data[at0001]/events[at0002]/data[at0003]/items[openEHR-EHR-CLUSTER.histopath_summary_cosd.v0]/items[at0003]/value",
                    "inputs" : [
                      {
                        "type" : "INTEGER",
                        "validation" : {
                          "range" : {
                            "minOp" : ">=",
                            "min" : 1
                          }
                        }
                      }
                    ]
                  },
                  {
                    "id" : "excision_margin",
                    "name" : "Excision margin",
                    "localizedName" : "Excision margin",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0005",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Investigations']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Pathology']/data[at0001]/events[at0002]/data[at0003]/items[openEHR-EHR-CLUSTER.histopath_summary_cosd.v0]/items[at0005]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "synchronous_tumour",
                    "name" : "Synchronous tumour",
                    "localizedName" : "Synchronous tumour",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0038",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Investigations']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Pathology']/data[at0001]/events[at0002]/data[at0003]/items[openEHR-EHR-CLUSTER.histopath_summary_cosd.v0]/items[at0038]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "tnm_pathological_classification",
                "name" : "TNM pathological classification",
                "localizedName" : "TNM pathological classification",
                "rmType" : "CLUSTER",
                "nodeId" : "openEHR-EHR-CLUSTER.tnm-pathological.v1",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "Designated as pTNM."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Investigations']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Pathology']/data[at0001]/events[at0002]/data[at0003]/items[openEHR-EHR-CLUSTER.tnm-pathological.v1]",
                "children" : [
                  {
                    "id" : "primary_tumour_pt",
                    "name" : "Primary tumour (pT)",
                    "localizedName" : "Primary tumour (pT)",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0003.1",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "Coding with a T code appropriate for the tumour type and anatomical site is expected. For example: 'pT1'; or 'pT3'. Represented as 'pT' in the 'TNM assessment'."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Investigations']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Pathology']/data[at0001]/events[at0002]/data[at0003]/items[openEHR-EHR-CLUSTER.tnm-pathological.v1]/items[at0003.1]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "regional_lymph_nodes_pn",
                    "name" : "Regional lymph nodes (pN)",
                    "localizedName" : "Regional lymph nodes (pN)",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0004.1",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "Coding with an N code appropriate for the tumour type and anatomical site is expected. For example: 'pNX'; or 'pN2'. Represented as 'pN' in the 'TNM assessment'."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Investigations']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Pathology']/data[at0001]/events[at0002]/data[at0003]/items[openEHR-EHR-CLUSTER.tnm-pathological.v1]/items[at0004.1]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "distant_metastasis_pm",
                    "name" : "Distant metastasis (pM)",
                    "localizedName" : "Distant metastasis (pM)",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0005.1",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "Coding with an M code appropriate for the tumour type and anatomical site is expected. For example: 'pM1'. Represented as 'pM' in the 'TNM assessment'."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Investigations']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Pathology']/data[at0001]/events[at0002]/data[at0003]/items[openEHR-EHR-CLUSTER.tnm-pathological.v1]/items[at0005.1]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "pathology_text",
                "name" : "Pathology text",
                "localizedName" : "Pathology text",
                "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,'Investigations']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Pathology']/data[at0001]/events[at0002]/data[at0003]/items[at0057,'Pathology text']/value",
                "inputs" : [
                  {
                    "type" : "TEXT"
                  }
                ]
              },
              {
                "id" : "time",
                "name" : "Time",
                "rmType" : "DV_DATE_TIME",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Investigations']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Pathology']/data[at0001]/events[at0002]/time",
                "inContext" : true,
                "inputs" : [
                  {
                    "type" : "DATETIME"
                  }
                ]
              },
              {
                "id" : "report_number",
                "name" : "Report number",
                "localizedName" : "Report number",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0068",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "This identifier is an internal tracking number assigned by the LIS, and it not intended to be the name of the test."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Investigations']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Pathology']/protocol[at0004]/items[at0068,'Report number']/value",
                "inputs" : [
                  {
                    "type" : "TEXT"
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Investigations']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Pathology']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Investigations']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Pathology']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Investigations']/items[openEHR-EHR-OBSERVATION.laboratory_test_result.v1,'Pathology']/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "id" : "observations",
        "name" : "Observations",
        "localizedName" : "Observations",
        "rmType" : "SECTION",
        "nodeId" : "openEHR-EHR-SECTION.adhoc.v1",
        "min" : "0",
        "max" : "1",
        "localizedNames" : [
          null
        ],
        "localizedDescriptions" : [
          null
        ],
        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Observations']",
        "children" : [
          {
            "id" : "height",
            "name" : "Height",
            "localizedName" : "Height",
            "rmType" : "OBSERVATION",
            "nodeId" : "openEHR-EHR-OBSERVATION.height.v2",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "annotations" : {
              "comment" : "Height is measured with the individual in a standing position and body length in a recumbent position."
            },
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Observations']/items[openEHR-EHR-OBSERVATION.height.v2,'Height']",
            "children" : [
              {
                "id" : "height_length",
                "name" : "Height/Length",
                "localizedName" : "Height/Length",
                "rmType" : "DV_QUANTITY",
                "nodeId" : "at0004",
                "min" : "1",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Observations']/items[openEHR-EHR-OBSERVATION.height.v2,'Height']/data[at0001]/events[at0002]/data[at0003]/items[at0004]/value",
                "inputs" : [
                  {
                    "suffix" : "magnitude",
                    "type" : "DECIMAL",
                    "validation" : {
                      "range" : {
                        "minOp" : ">=",
                        "min" : 0.0,
                        "maxOp" : "<=",
                        "max" : 1000.0
                      }
                    }
                  },
                  {
                    "suffix" : "unit",
                    "type" : "CODED_TEXT",
                    "list" : [
                      {
                        "value" : "cm",
                        "label" : "cm"
                      }
                    ]
                  }
                ],
                "termBindings" : {
                  "LOINC" : {
                    "value" : "[LOINC::8302-2]",
                    "terminologyId" : "LOINC"
                  },
                  "value" : {
                    "value" : "[LOINC::8302-2]",
                    "terminologyId" : "LOINC"
                  }
                }
              },
              {
                "id" : "time",
                "name" : "Time",
                "rmType" : "DV_DATE_TIME",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Observations']/items[openEHR-EHR-OBSERVATION.height.v2,'Height']/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-SECTION.adhoc.v1,'Observations']/items[openEHR-EHR-OBSERVATION.height.v2,'Height']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Observations']/items[openEHR-EHR-OBSERVATION.height.v2,'Height']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Observations']/items[openEHR-EHR-OBSERVATION.height.v2,'Height']/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "weight",
            "name" : "Weight",
            "localizedName" : "Weight",
            "rmType" : "OBSERVATION",
            "nodeId" : "openEHR-EHR-OBSERVATION.body_weight.v2",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Observations']/items[openEHR-EHR-OBSERVATION.body_weight.v2,'Weight']",
            "children" : [
              {
                "id" : "weight",
                "name" : "Weight",
                "localizedName" : "Weight",
                "rmType" : "DV_QUANTITY",
                "nodeId" : "at0004",
                "min" : "1",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Observations']/items[openEHR-EHR-OBSERVATION.body_weight.v2,'Weight']/data[at0002]/events[at0003]/data[at0001]/items[at0004]/value",
                "inputs" : [
                  {
                    "suffix" : "magnitude",
                    "type" : "DECIMAL",
                    "validation" : {
                      "range" : {
                        "minOp" : ">=",
                        "min" : 0.0,
                        "maxOp" : "<=",
                        "max" : 1000.0
                      }
                    }
                  },
                  {
                    "suffix" : "unit",
                    "type" : "CODED_TEXT",
                    "list" : [
                      {
                        "value" : "kg",
                        "label" : "kg"
                      }
                    ]
                  }
                ],
                "termBindings" : {
                  "LOINC" : {
                    "value" : "[LOINC::29463-7]",
                    "terminologyId" : "LOINC"
                  },
                  "value" : {
                    "value" : "[LOINC::29463-7]",
                    "terminologyId" : "LOINC"
                  }
                }
              },
              {
                "id" : "time",
                "name" : "Time",
                "rmType" : "DV_DATE_TIME",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Observations']/items[openEHR-EHR-OBSERVATION.body_weight.v2,'Weight']/data[at0002]/events[at0003]/time",
                "inContext" : true,
                "inputs" : [
                  {
                    "type" : "DATETIME"
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Observations']/items[openEHR-EHR-OBSERVATION.body_weight.v2,'Weight']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Observations']/items[openEHR-EHR-OBSERVATION.body_weight.v2,'Weight']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Observations']/items[openEHR-EHR-OBSERVATION.body_weight.v2,'Weight']/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "tobacco_smoking_summary",
            "name" : "Tobacco smoking summary",
            "localizedName" : "Tobacco smoking summary",
            "rmType" : "EVALUATION",
            "nodeId" : "openEHR-EHR-EVALUATION.tobacco_smoking_summary.v1",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Observations']/items[openEHR-EHR-EVALUATION.tobacco_smoking_summary.v1]",
            "children" : [
              {
                "id" : "overall_status",
                "name" : "Overall status",
                "localizedName" : "Overall status",
                "rmType" : "DV_CODED_TEXT",
                "nodeId" : "at0089",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Observations']/items[openEHR-EHR-EVALUATION.tobacco_smoking_summary.v1]/data[at0001]/items[at0089]/value",
                "inputs" : [
                  {
                    "suffix" : "code",
                    "type" : "CODED_TEXT",
                    "list" : [
                      {
                        "value" : "at0006",
                        "label" : "Never smoked",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      },
                      {
                        "value" : "at0003",
                        "label" : "Current smoker",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      },
                      {
                        "value" : "at0005",
                        "label" : "Former smoker",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Observations']/items[openEHR-EHR-EVALUATION.tobacco_smoking_summary.v1]/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Observations']/items[openEHR-EHR-EVALUATION.tobacco_smoking_summary.v1]/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Observations']/items[openEHR-EHR-EVALUATION.tobacco_smoking_summary.v1]/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "alcohol_consumption",
            "name" : "Alcohol consumption",
            "localizedName" : "Alcohol consumption",
            "rmType" : "OBSERVATION",
            "nodeId" : "openEHR-EHR-OBSERVATION.alcohol_consupltion_cosd.v0",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Observations']/items[openEHR-EHR-OBSERVATION.alcohol_consupltion_cosd.v0]",
            "children" : [
              {
                "id" : "in_past_3_months",
                "name" : "In past 3 months",
                "localizedName" : "In past 3 months",
                "rmType" : "POINT_EVENT",
                "nodeId" : "at0002",
                "min" : "0",
                "max" : "-1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Observations']/items[openEHR-EHR-OBSERVATION.alcohol_consupltion_cosd.v0]/data[at0001]/events[at0002]",
                "children" : [
                  {
                    "id" : "status",
                    "name" : "Status",
                    "localizedName" : "Status",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0007",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "Heavy (>14 Units per week)\t1\nLight (<=14 Units per week)\t2\nNever\t3\nNot Known\t9\nNot Stated (person asked but declined to provide a response)\tZ\n"
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Observations']/items[openEHR-EHR-OBSERVATION.alcohol_consupltion_cosd.v0]/data[at0001]/events[at0002]/data[at0003]/items[at0007]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "daily_amount",
                    "name" : "Daily amount",
                    "localizedName" : "Daily amount",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0008",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Observations']/items[openEHR-EHR-OBSERVATION.alcohol_consupltion_cosd.v0]/data[at0001]/events[at0002]/data[at0003]/items[at0008]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "time",
                    "name" : "Time",
                    "rmType" : "DV_DATE_TIME",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Observations']/items[openEHR-EHR-OBSERVATION.alcohol_consupltion_cosd.v0]/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-SECTION.adhoc.v1,'Observations']/items[openEHR-EHR-OBSERVATION.alcohol_consupltion_cosd.v0]/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Observations']/items[openEHR-EHR-OBSERVATION.alcohol_consupltion_cosd.v0]/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Observations']/items[openEHR-EHR-OBSERVATION.alcohol_consupltion_cosd.v0]/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "id" : "gyn_history",
        "name" : "Gyn history",
        "localizedName" : "Gyn history",
        "rmType" : "SECTION",
        "nodeId" : "openEHR-EHR-SECTION.adhoc.v1",
        "min" : "0",
        "max" : "1",
        "localizedNames" : [
          null
        ],
        "localizedDescriptions" : [
          null
        ],
        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Gyn history']",
        "children" : [
          {
            "id" : "menstruation_summary",
            "name" : "Menstruation summary",
            "localizedName" : "Menstruation summary",
            "rmType" : "EVALUATION",
            "nodeId" : "openEHR-EHR-EVALUATION.menstrual_cycle_summary.v0",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Gyn history']/items[openEHR-EHR-EVALUATION.menstrual_cycle_summary.v0]",
            "children" : [
              {
                "id" : "age_at_menarche",
                "name" : "Age at menarche",
                "localizedName" : "Age at menarche",
                "rmType" : "DV_DURATION",
                "nodeId" : "at0002",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Gyn history']/items[openEHR-EHR-EVALUATION.menstrual_cycle_summary.v0]/data[at0001]/items[at0002]/value",
                "inputs" : [
                  {
                    "suffix" : "year",
                    "type" : "INTEGER",
                    "validation" : {
                      "range" : {
                        "minOp" : ">=",
                        "min" : 0
                      }
                    }
                  },
                  {
                    "suffix" : "month",
                    "type" : "INTEGER",
                    "validation" : {
                      "range" : {
                        "minOp" : ">=",
                        "min" : 0
                      }
                    }
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Gyn history']/items[openEHR-EHR-EVALUATION.menstrual_cycle_summary.v0]/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Gyn history']/items[openEHR-EHR-EVALUATION.menstrual_cycle_summary.v0]/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Gyn history']/items[openEHR-EHR-EVALUATION.menstrual_cycle_summary.v0]/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "ocp_use",
            "name" : "OCP use",
            "localizedName" : "OCP use",
            "rmType" : "EVALUATION",
            "nodeId" : "openEHR-EHR-EVALUATION.health_risk.v1",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Gyn history']/items[openEHR-EHR-EVALUATION.health_risk.v1,'OCP use']",
            "children" : [
              {
                "id" : "health_risk",
                "name" : "Health risk",
                "localizedName" : "Health risk",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0002",
                "min" : "1",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "Coding of 'Health risk' with a terminology is preferred, where possible. Free text should be used only if there is no appropriate terminology available. For example: risk of cardiovascular disease, with risk factors of hypertension and hypercholesterolaemia."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Gyn history']/items[openEHR-EHR-EVALUATION.health_risk.v1,'OCP use']/data[at0001]/items[at0002]/value",
                "inputs" : [
                  {
                    "type" : "TEXT",
                    "defaultValue" : "Oral contraceptive use"
                  }
                ]
              },
              {
                "id" : "total_ocp_time",
                "name" : "Total OCP time",
                "localizedName" : "Total OCP time",
                "rmType" : "DV_DURATION",
                "nodeId" : "at0023",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "That is: the risk of experiencing the identified 'Health risk' in the next <X> years."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Gyn history']/items[openEHR-EHR-EVALUATION.health_risk.v1,'OCP use']/data[at0001]/items[at0023,'Total OCP time']/value",
                "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" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Gyn history']/items[openEHR-EHR-EVALUATION.health_risk.v1,'OCP use']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Gyn history']/items[openEHR-EHR-EVALUATION.health_risk.v1,'OCP use']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Gyn history']/items[openEHR-EHR-EVALUATION.health_risk.v1,'OCP use']/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "hrt_use",
            "name" : "HRT use",
            "localizedName" : "HRT use",
            "rmType" : "EVALUATION",
            "nodeId" : "openEHR-EHR-EVALUATION.health_risk.v1",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Gyn history']/items[openEHR-EHR-EVALUATION.health_risk.v1,'HRT use']",
            "children" : [
              {
                "id" : "health_risk",
                "name" : "Health risk",
                "localizedName" : "Health risk",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0002",
                "min" : "1",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "Coding of 'Health risk' with a terminology is preferred, where possible. Free text should be used only if there is no appropriate terminology available. For example: risk of cardiovascular disease, with risk factors of hypertension and hypercholesterolaemia."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Gyn history']/items[openEHR-EHR-EVALUATION.health_risk.v1,'HRT use']/data[at0001]/items[at0002]/value",
                "inputs" : [
                  {
                    "type" : "TEXT",
                    "defaultValue" : "Hormone replacement therapy use"
                  }
                ]
              },
              {
                "id" : "total_hrt_time",
                "name" : "Total HRT time",
                "localizedName" : "Total HRT time",
                "rmType" : "DV_DURATION",
                "nodeId" : "at0023",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "That is: the risk of experiencing the identified 'Health risk' in the next <X> years."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Gyn history']/items[openEHR-EHR-EVALUATION.health_risk.v1,'HRT use']/data[at0001]/items[at0023,'Total HRT time']/value",
                "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" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Gyn history']/items[openEHR-EHR-EVALUATION.health_risk.v1,'HRT use']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Gyn history']/items[openEHR-EHR-EVALUATION.health_risk.v1,'HRT use']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Gyn history']/items[openEHR-EHR-EVALUATION.health_risk.v1,'HRT use']/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "coil",
            "name" : "Coil",
            "localizedName" : "Coil",
            "rmType" : "EVALUATION",
            "nodeId" : "openEHR-EHR-EVALUATION.health_risk.v1",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Gyn history']/items[openEHR-EHR-EVALUATION.health_risk.v1,'Coil']",
            "children" : [
              {
                "id" : "health_risk",
                "name" : "Health risk",
                "localizedName" : "Health risk",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0002",
                "min" : "1",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "Coding of 'Health risk' with a terminology is preferred, where possible. Free text should be used only if there is no appropriate terminology available. For example: risk of cardiovascular disease, with risk factors of hypertension and hypercholesterolaemia."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Gyn history']/items[openEHR-EHR-EVALUATION.health_risk.v1,'Coil']/data[at0001]/items[at0002]/value",
                "inputs" : [
                  {
                    "type" : "TEXT",
                    "defaultValue" : "Children"
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Gyn history']/items[openEHR-EHR-EVALUATION.health_risk.v1,'Coil']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Gyn history']/items[openEHR-EHR-EVALUATION.health_risk.v1,'Coil']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Gyn history']/items[openEHR-EHR-EVALUATION.health_risk.v1,'Coil']/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "children",
            "name" : "Children",
            "localizedName" : "Children",
            "rmType" : "EVALUATION",
            "nodeId" : "openEHR-EHR-EVALUATION.health_risk.v1",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Gyn history']/items[openEHR-EHR-EVALUATION.health_risk.v1,'Children']",
            "children" : [
              {
                "id" : "health_risk",
                "name" : "Health risk",
                "localizedName" : "Health risk",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0002",
                "min" : "1",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "Coding of 'Health risk' with a terminology is preferred, where possible. Free text should be used only if there is no appropriate terminology available. For example: risk of cardiovascular disease, with risk factors of hypertension and hypercholesterolaemia."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Gyn history']/items[openEHR-EHR-EVALUATION.health_risk.v1,'Children']/data[at0001]/items[at0002]/value",
                "inputs" : [
                  {
                    "type" : "TEXT",
                    "defaultValue" : "Children"
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Gyn history']/items[openEHR-EHR-EVALUATION.health_risk.v1,'Children']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Gyn history']/items[openEHR-EHR-EVALUATION.health_risk.v1,'Children']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Gyn history']/items[openEHR-EHR-EVALUATION.health_risk.v1,'Children']/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "id" : "admin",
        "name" : "Admin",
        "localizedName" : "Admin",
        "rmType" : "SECTION",
        "nodeId" : "openEHR-EHR-SECTION.adhoc.v1",
        "min" : "0",
        "max" : "1",
        "localizedNames" : [
          null
        ],
        "localizedDescriptions" : [
          null
        ],
        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Admin']",
        "children" : [
          {
            "id" : "death_details",
            "name" : "Death details",
            "localizedName" : "Death details",
            "rmType" : "EVALUATION",
            "nodeId" : "openEHR-EHR-EVALUATION.death_details_gel.v0",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Admin']/items[openEHR-EHR-EVALUATION.death_details_gel.v0,'Death details']",
            "children" : [
              {
                "id" : "date_of_death",
                "name" : "Date of death",
                "localizedName" : "Date of death",
                "rmType" : "DV_DATE_TIME",
                "nodeId" : "at0016",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Admin']/items[openEHR-EHR-EVALUATION.death_details_gel.v0,'Death details']/data[at0001]/items[at0016]/value",
                "inputs" : [
                  {
                    "type" : "DATETIME"
                  }
                ]
              },
              {
                "id" : "death_location",
                "name" : "Death location",
                "localizedName" : "Death location",
                "rmType" : "DV_CODED_TEXT",
                "nodeId" : "at0002",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Admin']/items[openEHR-EHR-EVALUATION.death_details_gel.v0,'Death details']/data[at0001]/items[at0002]/value",
                "inputs" : [
                  {
                    "suffix" : "code",
                    "type" : "CODED_TEXT",
                    "list" : [
                      {
                        "value" : "at0003",
                        "label" : "1: Hospital",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      },
                      {
                        "value" : "at0004",
                        "label" : "2: NHS hospice or specialist palliative care unit",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      },
                      {
                        "value" : "at0005",
                        "label" : "3: Voluntary hospice or specialist palliative care unit",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      },
                      {
                        "value" : "at0006",
                        "label" : "4: Patient's own home",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      },
                      {
                        "value" : "at0007",
                        "label" : "5: Care home",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      },
                      {
                        "value" : "at0008",
                        "label" : "6: Other",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "death_cause",
                "name" : "Death cause",
                "localizedName" : "Death cause",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0010",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Admin']/items[openEHR-EHR-EVALUATION.death_details_gel.v0,'Death details']/data[at0001]/items[at0010,'Death cause']/value",
                "inputs" : [
                  {
                    "type" : "TEXT"
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Admin']/items[openEHR-EHR-EVALUATION.death_details_gel.v0,'Death details']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Admin']/items[openEHR-EHR-EVALUATION.death_details_gel.v0,'Death details']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Admin']/items[openEHR-EHR-EVALUATION.death_details_gel.v0,'Death details']/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "research_participation",
            "name" : "Research participation",
            "localizedName" : "Research participation",
            "rmType" : "ADMIN_ENTRY",
            "nodeId" : "openEHR-EHR-ADMIN_ENTRY.research_participation.v0",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Admin']/items[openEHR-EHR-ADMIN_ENTRY.research_participation.v0]",
            "children" : [
              {
                "id" : "trial_number",
                "name" : "Trial number",
                "localizedName" : "Trial number",
                "rmType" : "DV_IDENTIFIER",
                "nodeId" : "at0003",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Admin']/items[openEHR-EHR-ADMIN_ENTRY.research_participation.v0]/data[at0001]/items[at0003,'Trial number']/value",
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "type",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "issuer",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "assigner",
                    "type" : "TEXT"
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Admin']/items[openEHR-EHR-ADMIN_ENTRY.research_participation.v0]/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Admin']/items[openEHR-EHR-ADMIN_ENTRY.research_participation.v0]/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'Admin']/items[openEHR-EHR-ADMIN_ENTRY.research_participation.v0]/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "id" : "key_contacts",
        "name" : "Key contacts",
        "localizedName" : "Key contacts",
        "rmType" : "ADMIN_ENTRY",
        "nodeId" : "openEHR-EHR-ADMIN_ENTRY.care_team.v0",
        "min" : "0",
        "max" : "1",
        "localizedNames" : [
          null
        ],
        "localizedDescriptions" : [
          null
        ],
        "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']",
        "children" : [
          {
            "id" : "care_team",
            "name" : "Care team",
            "localizedName" : "Care team",
            "rmType" : "CLUSTER",
            "nodeId" : "openEHR-EHR-CLUSTER.care_team.v0",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/data[at0001]/items[openEHR-EHR-CLUSTER.care_team.v0]",
            "children" : [
              {
                "id" : "name",
                "name" : "Name",
                "localizedName" : "Name",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0018",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "E.g. the \"red\" vs. \"green\" trauma teams."
                },
                "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/data[at0001]/items[openEHR-EHR-CLUSTER.care_team.v0]/items[at0018]/value",
                "inputs" : [
                  {
                    "type" : "TEXT",
                    "list" : [
                      {
                        "value" : "Key contacts",
                        "label" : "Key contacts"
                      }
                    ],
                    "listOpen" : false
                  }
                ]
              },
              {
                "id" : "key_worker",
                "name" : "Key worker",
                "localizedName" : "Key worker",
                "rmType" : "CLUSTER",
                "nodeId" : "at0021",
                "min" : "0",
                "max" : "-1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/data[at0001]/items[openEHR-EHR-CLUSTER.care_team.v0]/items[at0021,'Key worker']",
                "children" : [
                  {
                    "id" : "role_and_relationship",
                    "name" : "Role and Relationship",
                    "localizedName" : "Role and Relationship",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0022",
                    "min" : "0",
                    "max" : "-1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/data[at0001]/items[openEHR-EHR-CLUSTER.care_team.v0]/items[at0021,'Key worker']/items[at0022,'Role and Relationship']/value",
                    "inputs" : [
                      {
                        "type" : "TEXT",
                        "defaultValue" : "Key worker",
                        "list" : [
                          {
                            "value" : "Key worker",
                            "label" : "Key worker"
                          },
                          {
                            "value" : "GP",
                            "label" : "GP"
                          },
                          {
                            "value" : "GP Practice",
                            "label" : "GP Practice"
                          }
                        ],
                        "listOpen" : true
                      }
                    ]
                  },
                  {
                    "id" : "member",
                    "name" : "Member",
                    "localizedName" : "Member",
                    "rmType" : "CLUSTER",
                    "nodeId" : "openEHR-EHR-CLUSTER.contact_cc.v0",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/data[at0001]/items[openEHR-EHR-CLUSTER.care_team.v0]/items[at0021,'Key worker']/items[openEHR-EHR-CLUSTER.contact_cc.v0,'Member']",
                    "children" : [
                      {
                        "id" : "name",
                        "name" : "Name",
                        "localizedName" : "Name",
                        "rmType" : "CLUSTER",
                        "nodeId" : "openEHR-EHR-CLUSTER.name_cc.v0",
                        "min" : "0",
                        "max" : "-1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/data[at0001]/items[openEHR-EHR-CLUSTER.care_team.v0]/items[at0021,'Key worker']/items[openEHR-EHR-CLUSTER.contact_cc.v0,'Member']/items[openEHR-EHR-CLUSTER.name_cc.v0]",
                        "children" : [
                          {
                            "id" : "use",
                            "name" : "Use",
                            "localizedName" : "Use",
                            "rmType" : "DV_CODED_TEXT",
                            "nodeId" : "at0001",
                            "min" : "1",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/data[at0001]/items[openEHR-EHR-CLUSTER.care_team.v0]/items[at0021,'Key worker']/items[openEHR-EHR-CLUSTER.contact_cc.v0,'Member']/items[openEHR-EHR-CLUSTER.name_cc.v0]/items[at0001]/value",
                            "inputs" : [
                              {
                                "suffix" : "code",
                                "type" : "CODED_TEXT",
                                "list" : [
                                  {
                                    "value" : "at0002",
                                    "label" : "Usual",
                                    "localizedLabels" : [
                                      null
                                    ],
                                    "localizedDescriptions" : [
                                      null
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "id" : "contact_name",
                            "name" : "Contact name",
                            "localizedName" : "Contact name",
                            "rmType" : "DV_TEXT",
                            "nodeId" : "at0009",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/data[at0001]/items[openEHR-EHR-CLUSTER.care_team.v0]/items[at0021,'Key worker']/items[openEHR-EHR-CLUSTER.contact_cc.v0,'Member']/items[openEHR-EHR-CLUSTER.name_cc.v0]/items[at0009,'Contact name']/value",
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "gp",
                "name" : "GP",
                "localizedName" : "GP",
                "rmType" : "CLUSTER",
                "nodeId" : "at0021",
                "min" : "0",
                "max" : "-1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/data[at0001]/items[openEHR-EHR-CLUSTER.care_team.v0]/items[at0021,'GP']",
                "children" : [
                  {
                    "id" : "role_and_relationship",
                    "name" : "Role and Relationship",
                    "localizedName" : "Role and Relationship",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0022",
                    "min" : "0",
                    "max" : "-1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/data[at0001]/items[openEHR-EHR-CLUSTER.care_team.v0]/items[at0021,'GP']/items[at0022,'Role and Relationship']/value",
                    "inputs" : [
                      {
                        "type" : "TEXT",
                        "list" : [
                          {
                            "value" : "Key worker",
                            "label" : "Key worker"
                          },
                          {
                            "value" : "GP",
                            "label" : "GP"
                          },
                          {
                            "value" : "GP Practice",
                            "label" : "GP Practice"
                          }
                        ],
                        "listOpen" : true
                      }
                    ]
                  },
                  {
                    "id" : "member",
                    "name" : "Member",
                    "localizedName" : "Member",
                    "rmType" : "CLUSTER",
                    "nodeId" : "openEHR-EHR-CLUSTER.contact_cc.v0",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/data[at0001]/items[openEHR-EHR-CLUSTER.care_team.v0]/items[at0021,'GP']/items[openEHR-EHR-CLUSTER.contact_cc.v0,'Member']",
                    "children" : [
                      {
                        "id" : "name",
                        "name" : "Name",
                        "localizedName" : "Name",
                        "rmType" : "CLUSTER",
                        "nodeId" : "openEHR-EHR-CLUSTER.name_cc.v0",
                        "min" : "0",
                        "max" : "-1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/data[at0001]/items[openEHR-EHR-CLUSTER.care_team.v0]/items[at0021,'GP']/items[openEHR-EHR-CLUSTER.contact_cc.v0,'Member']/items[openEHR-EHR-CLUSTER.name_cc.v0]",
                        "children" : [
                          {
                            "id" : "use",
                            "name" : "Use",
                            "localizedName" : "Use",
                            "rmType" : "DV_CODED_TEXT",
                            "nodeId" : "at0001",
                            "min" : "1",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/data[at0001]/items[openEHR-EHR-CLUSTER.care_team.v0]/items[at0021,'GP']/items[openEHR-EHR-CLUSTER.contact_cc.v0,'Member']/items[openEHR-EHR-CLUSTER.name_cc.v0]/items[at0001]/value",
                            "inputs" : [
                              {
                                "suffix" : "code",
                                "type" : "CODED_TEXT",
                                "list" : [
                                  {
                                    "value" : "at0002",
                                    "label" : "Usual",
                                    "localizedLabels" : [
                                      null
                                    ],
                                    "localizedDescriptions" : [
                                      null
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "id" : "contact_name",
                            "name" : "Contact name",
                            "localizedName" : "Contact name",
                            "rmType" : "DV_TEXT",
                            "nodeId" : "at0009",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/data[at0001]/items[openEHR-EHR-CLUSTER.care_team.v0]/items[at0021,'GP']/items[openEHR-EHR-CLUSTER.contact_cc.v0,'Member']/items[openEHR-EHR-CLUSTER.name_cc.v0]/items[at0009,'Contact name']/value",
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "id" : "anonymised_person_parent",
                        "name" : "Anonymised person (PARENT)",
                        "localizedName" : "Anonymised person (PARENT)",
                        "rmType" : "CLUSTER",
                        "nodeId" : "openEHR-EHR-CLUSTER.person_anonymised_parent.v0",
                        "min" : "0",
                        "max" : "1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/data[at0001]/items[openEHR-EHR-CLUSTER.care_team.v0]/items[at0021,'GP']/items[openEHR-EHR-CLUSTER.contact_cc.v0,'Member']/items[openEHR-EHR-CLUSTER.person_anonymised_parent.v0]",
                        "children" : [
                          {
                            "id" : "administrative_gender",
                            "name" : "Administrative Gender",
                            "localizedName" : "Administrative Gender",
                            "rmType" : "DV_CODED_TEXT",
                            "nodeId" : "at0001",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/data[at0001]/items[openEHR-EHR-CLUSTER.care_team.v0]/items[at0021,'GP']/items[openEHR-EHR-CLUSTER.contact_cc.v0,'Member']/items[openEHR-EHR-CLUSTER.person_anonymised_parent.v0]/items[at0001]/value",
                            "inputs" : [
                              {
                                "suffix" : "code",
                                "type" : "CODED_TEXT",
                                "list" : [
                                  {
                                    "value" : "at0009",
                                    "label" : "Male",
                                    "localizedLabels" : [
                                      null
                                    ],
                                    "localizedDescriptions" : [
                                      null
                                    ]
                                  },
                                  {
                                    "value" : "at0010",
                                    "label" : "Female",
                                    "localizedLabels" : [
                                      null
                                    ],
                                    "localizedDescriptions" : [
                                      null
                                    ]
                                  },
                                  {
                                    "value" : "at0011",
                                    "label" : "Undetermined",
                                    "localizedLabels" : [
                                      null
                                    ],
                                    "localizedDescriptions" : [
                                      null
                                    ]
                                  },
                                  {
                                    "value" : "at0012",
                                    "label" : "Not known",
                                    "localizedLabels" : [
                                      null
                                    ],
                                    "localizedDescriptions" : [
                                      null
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "id" : "birth_sex",
                            "name" : "Birth Sex",
                            "localizedName" : "Birth Sex",
                            "rmType" : "DV_CODED_TEXT",
                            "nodeId" : "at0002",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/data[at0001]/items[openEHR-EHR-CLUSTER.care_team.v0]/items[at0021,'GP']/items[openEHR-EHR-CLUSTER.contact_cc.v0,'Member']/items[openEHR-EHR-CLUSTER.person_anonymised_parent.v0]/items[at0002]/value",
                            "inputs" : [
                              {
                                "suffix" : "code",
                                "type" : "CODED_TEXT",
                                "list" : [
                                  {
                                    "value" : "at0009",
                                    "label" : "Male",
                                    "localizedLabels" : [
                                      null
                                    ],
                                    "localizedDescriptions" : [
                                      null
                                    ]
                                  },
                                  {
                                    "value" : "at0010",
                                    "label" : "Female",
                                    "localizedLabels" : [
                                      null
                                    ],
                                    "localizedDescriptions" : [
                                      null
                                    ]
                                  },
                                  {
                                    "value" : "at0011",
                                    "label" : "Undetermined",
                                    "localizedLabels" : [
                                      null
                                    ],
                                    "localizedDescriptions" : [
                                      null
                                    ]
                                  },
                                  {
                                    "value" : "at0012",
                                    "label" : "Not known",
                                    "localizedLabels" : [
                                      null
                                    ],
                                    "localizedDescriptions" : [
                                      null
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "id" : "vital_status",
                            "name" : "Vital Status",
                            "localizedName" : "Vital Status",
                            "rmType" : "DV_CODED_TEXT",
                            "nodeId" : "at0003",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/data[at0001]/items[openEHR-EHR-CLUSTER.care_team.v0]/items[at0021,'GP']/items[openEHR-EHR-CLUSTER.contact_cc.v0,'Member']/items[openEHR-EHR-CLUSTER.person_anonymised_parent.v0]/items[at0003]/value",
                            "inputs" : [
                              {
                                "suffix" : "code",
                                "type" : "CODED_TEXT",
                                "list" : [
                                  {
                                    "value" : "at0004",
                                    "label" : "Alive",
                                    "localizedLabels" : [
                                      null
                                    ],
                                    "localizedDescriptions" : [
                                      null
                                    ]
                                  },
                                  {
                                    "value" : "at0005",
                                    "label" : "Dead",
                                    "localizedLabels" : [
                                      null
                                    ],
                                    "localizedDescriptions" : [
                                      null
                                    ]
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "id" : "age",
                            "name" : "Age",
                            "localizedName" : "Age",
                            "rmType" : "DV_DURATION",
                            "nodeId" : "at0008",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/data[at0001]/items[openEHR-EHR-CLUSTER.care_team.v0]/items[at0021,'GP']/items[openEHR-EHR-CLUSTER.contact_cc.v0,'Member']/items[openEHR-EHR-CLUSTER.person_anonymised_parent.v0]/items[at0008]/value",
                            "inputs" : [
                              {
                                "suffix" : "year",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "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
                                  }
                                }
                              },
                              {
                                "suffix" : "hour",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              },
                              {
                                "suffix" : "minute",
                                "type" : "INTEGER",
                                "validation" : {
                                  "range" : {
                                    "minOp" : ">=",
                                    "min" : 0
                                  }
                                }
                              }
                            ]
                          },
                          {
                            "id" : "anonymised_current_location",
                            "name" : "Anonymised current location",
                            "localizedName" : "Anonymised current location",
                            "rmType" : "DV_TEXT",
                            "nodeId" : "at0013",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/data[at0001]/items[openEHR-EHR-CLUSTER.care_team.v0]/items[at0021,'GP']/items[openEHR-EHR-CLUSTER.contact_cc.v0,'Member']/items[openEHR-EHR-CLUSTER.person_anonymised_parent.v0]/items[at0013]/value",
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "id" : "gp_practice",
                        "name" : "GP practice",
                        "localizedName" : "GP practice",
                        "rmType" : "CLUSTER",
                        "nodeId" : "openEHR-EHR-CLUSTER.organisation_cc.v0",
                        "min" : "0",
                        "max" : "1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/data[at0001]/items[openEHR-EHR-CLUSTER.care_team.v0]/items[at0021,'GP']/items[openEHR-EHR-CLUSTER.contact_cc.v0,'Member']/items[openEHR-EHR-CLUSTER.organisation_cc.v0,'GP practice']",
                        "children" : [
                          {
                            "id" : "name",
                            "name" : "Name",
                            "localizedName" : "Name",
                            "rmType" : "DV_TEXT",
                            "nodeId" : "at0012",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/data[at0001]/items[openEHR-EHR-CLUSTER.care_team.v0]/items[at0021,'GP']/items[openEHR-EHR-CLUSTER.contact_cc.v0,'Member']/items[openEHR-EHR-CLUSTER.organisation_cc.v0,'GP practice']/items[at0012]/value",
                            "inputs" : [
                              {
                                "type" : "TEXT"
                              }
                            ]
                          },
                          {
                            "id" : "address",
                            "name" : "Address",
                            "localizedName" : "Address",
                            "rmType" : "CLUSTER",
                            "nodeId" : "openEHR-EHR-CLUSTER.address_cc.v0",
                            "min" : "0",
                            "max" : "1",
                            "localizedNames" : [
                              null
                            ],
                            "localizedDescriptions" : [
                              null
                            ],
                            "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/data[at0001]/items[openEHR-EHR-CLUSTER.care_team.v0]/items[at0021,'GP']/items[openEHR-EHR-CLUSTER.contact_cc.v0,'Member']/items[openEHR-EHR-CLUSTER.organisation_cc.v0,'GP practice']/items[openEHR-EHR-CLUSTER.address_cc.v0]",
                            "children" : [
                              {
                                "id" : "address_line_2",
                                "name" : "Address line 2",
                                "localizedName" : "Address line 2",
                                "rmType" : "DV_TEXT",
                                "nodeId" : "at0011",
                                "min" : "0",
                                "max" : "1",
                                "localizedNames" : [
                                  null
                                ],
                                "localizedDescriptions" : [
                                  null
                                ],
                                "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/data[at0001]/items[openEHR-EHR-CLUSTER.care_team.v0]/items[at0021,'GP']/items[openEHR-EHR-CLUSTER.contact_cc.v0,'Member']/items[openEHR-EHR-CLUSTER.organisation_cc.v0,'GP practice']/items[openEHR-EHR-CLUSTER.address_cc.v0]/items[at0011,'Address line 2']/value",
                                "inputs" : [
                                  {
                                    "type" : "TEXT"
                                  }
                                ]
                              },
                              {
                                "id" : "address_line_3",
                                "name" : "Address line 3",
                                "localizedName" : "Address line 3",
                                "rmType" : "DV_TEXT",
                                "nodeId" : "at0011",
                                "min" : "0",
                                "max" : "1",
                                "localizedNames" : [
                                  null
                                ],
                                "localizedDescriptions" : [
                                  null
                                ],
                                "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/data[at0001]/items[openEHR-EHR-CLUSTER.care_team.v0]/items[at0021,'GP']/items[openEHR-EHR-CLUSTER.contact_cc.v0,'Member']/items[openEHR-EHR-CLUSTER.organisation_cc.v0,'GP practice']/items[openEHR-EHR-CLUSTER.address_cc.v0]/items[at0011,'Address line 3']/value",
                                "inputs" : [
                                  {
                                    "type" : "TEXT"
                                  }
                                ]
                              },
                              {
                                "id" : "address_line_4",
                                "name" : "Address line 4",
                                "localizedName" : "Address line 4",
                                "rmType" : "DV_TEXT",
                                "nodeId" : "at0011",
                                "min" : "0",
                                "max" : "1",
                                "localizedNames" : [
                                  null
                                ],
                                "localizedDescriptions" : [
                                  null
                                ],
                                "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/data[at0001]/items[openEHR-EHR-CLUSTER.care_team.v0]/items[at0021,'GP']/items[openEHR-EHR-CLUSTER.contact_cc.v0,'Member']/items[openEHR-EHR-CLUSTER.organisation_cc.v0,'GP practice']/items[openEHR-EHR-CLUSTER.address_cc.v0]/items[at0011,'Address line 4']/value",
                                "inputs" : [
                                  {
                                    "type" : "TEXT"
                                  }
                                ]
                              },
                              {
                                "id" : "postal_code",
                                "name" : "Postal code",
                                "localizedName" : "Postal code",
                                "rmType" : "DV_TEXT",
                                "nodeId" : "at0014",
                                "min" : "0",
                                "max" : "1",
                                "localizedNames" : [
                                  null
                                ],
                                "localizedDescriptions" : [
                                  null
                                ],
                                "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/data[at0001]/items[openEHR-EHR-CLUSTER.care_team.v0]/items[at0021,'GP']/items[openEHR-EHR-CLUSTER.contact_cc.v0,'Member']/items[openEHR-EHR-CLUSTER.organisation_cc.v0,'GP practice']/items[openEHR-EHR-CLUSTER.address_cc.v0]/items[at0014]/value",
                                "inputs" : [
                                  {
                                    "type" : "TEXT"
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "other_details_about_contact",
                    "name" : "Other details about contact",
                    "localizedName" : "Other details about contact",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0030",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/data[at0001]/items[openEHR-EHR-CLUSTER.care_team.v0]/items[at0021,'GP']/items[at0030,'Other details about contact']/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  }
                ]
              }
            ]
          },
          {
            "id" : "language",
            "name" : "Language",
            "rmType" : "CODE_PHRASE",
            "min" : "1",
            "max" : "1",
            "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/language",
            "inContext" : true
          },
          {
            "id" : "encoding",
            "name" : "Encoding",
            "rmType" : "CODE_PHRASE",
            "min" : "1",
            "max" : "1",
            "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/encoding",
            "inContext" : true
          },
          {
            "id" : "subject",
            "name" : "Subject",
            "rmType" : "PARTY_PROXY",
            "min" : "1",
            "max" : "1",
            "aqlPath" : "/content[openEHR-EHR-ADMIN_ENTRY.care_team.v0,'Key contacts']/subject",
            "inContext" : true,
            "inputs" : [
              {
                "suffix" : "id",
                "type" : "TEXT"
              },
              {
                "suffix" : "id_scheme",
                "type" : "TEXT"
              },
              {
                "suffix" : "id_namespace",
                "type" : "TEXT"
              },
              {
                "suffix" : "name",
                "type" : "TEXT"
              }
            ]
          }
        ]
      },
      {
        "id" : "mdt_referral",
        "name" : "MDT Referral",
        "localizedName" : "MDT Referral",
        "rmType" : "SECTION",
        "nodeId" : "openEHR-EHR-SECTION.adhoc.v1",
        "min" : "0",
        "max" : "-1",
        "localizedNames" : [
          null
        ],
        "localizedDescriptions" : [
          null
        ],
        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']",
        "children" : [
          {
            "id" : "service_request",
            "name" : "Service request",
            "localizedName" : "Service request",
            "rmType" : "INSTRUCTION",
            "nodeId" : "openEHR-EHR-INSTRUCTION.service_request.v1",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]",
            "children" : [
              {
                "id" : "current_activity",
                "name" : "Current Activity",
                "localizedName" : "Current Activity",
                "rmType" : "ACTIVITY",
                "nodeId" : "at0001",
                "min" : "1",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]/activities[at0001]",
                "children" : [
                  {
                    "id" : "service_name",
                    "name" : "Service name",
                    "localizedName" : "Service name",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0121",
                    "min" : "1",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "Coding of the 'Service name' with a coding system is desirable, if available. For example: 'referral' to an endocrinologist for diabetes management."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]/activities[at0001]/description[at0009]/items[at0121]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "reason_for_request",
                    "name" : "Reason for request",
                    "localizedName" : "Reason for request",
                    "rmType" : "DV_TEXT",
                    "nodeId" : "at0062",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "annotations" : {
                      "comment" : "Coding of the 'Reason for request' with a coding system is desirable, if available. This data element allows multiple occurrences to enable the user to record a multiple responses, if required. For example: 'manage diabetes complications'."
                    },
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]/activities[at0001]/description[at0009]/items[at0062]/value",
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "timing",
                    "name" : "Timing",
                    "rmType" : "DV_PARSABLE",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]/activities[at0001]/timing",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "suffix" : "value",
                        "type" : "TEXT"
                      },
                      {
                        "suffix" : "formalism",
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "action_archetype_id",
                    "name" : "Action_archetype_id",
                    "rmType" : "STRING",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]/activities[at0001]/action_archetype_id",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "type" : "TEXT"
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "referringclinician",
                "name" : "ReferringClinician",
                "localizedName" : "ReferringClinician",
                "rmType" : "CLUSTER",
                "nodeId" : "openEHR-EHR-CLUSTER.practitioner_cc.v0",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]/protocol[at0008]/items[openEHR-EHR-CLUSTER.practitioner_cc.v0,'ReferringClinician']",
                "children" : [
                  {
                    "id" : "identifier",
                    "name" : "Identifier",
                    "localizedName" : "Identifier",
                    "rmType" : "CLUSTER",
                    "nodeId" : "openEHR-EHR-CLUSTER.identifier_cc.v0",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]/protocol[at0008]/items[openEHR-EHR-CLUSTER.practitioner_cc.v0,'ReferringClinician']/items[openEHR-EHR-CLUSTER.identifier_cc.v0]",
                    "children" : [
                      {
                        "id" : "referring_clinician_id",
                        "name" : "Referring clinician ID",
                        "localizedName" : "Referring clinician ID",
                        "rmType" : "DV_IDENTIFIER",
                        "nodeId" : "at0001",
                        "min" : "0",
                        "max" : "1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]/protocol[at0008]/items[openEHR-EHR-CLUSTER.practitioner_cc.v0,'ReferringClinician']/items[openEHR-EHR-CLUSTER.identifier_cc.v0]/items[at0001,'Referring clinician ID']/value",
                        "inputs" : [
                          {
                            "suffix" : "id",
                            "type" : "TEXT"
                          },
                          {
                            "suffix" : "type",
                            "type" : "TEXT"
                          },
                          {
                            "suffix" : "issuer",
                            "type" : "TEXT"
                          },
                          {
                            "suffix" : "assigner",
                            "type" : "TEXT"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "name",
                    "name" : "Name",
                    "localizedName" : "Name",
                    "rmType" : "CLUSTER",
                    "nodeId" : "openEHR-EHR-CLUSTER.name_cc.v0",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]/protocol[at0008]/items[openEHR-EHR-CLUSTER.practitioner_cc.v0,'ReferringClinician']/items[openEHR-EHR-CLUSTER.name_cc.v0]",
                    "children" : [
                      {
                        "id" : "use",
                        "name" : "Use",
                        "localizedName" : "Use",
                        "rmType" : "DV_CODED_TEXT",
                        "nodeId" : "at0001",
                        "min" : "1",
                        "max" : "1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]/protocol[at0008]/items[openEHR-EHR-CLUSTER.practitioner_cc.v0,'ReferringClinician']/items[openEHR-EHR-CLUSTER.name_cc.v0]/items[at0001]/value",
                        "inputs" : [
                          {
                            "suffix" : "code",
                            "type" : "CODED_TEXT",
                            "defaultValue" : "at0002",
                            "list" : [
                              {
                                "value" : "at0002",
                                "label" : "Usual",
                                "localizedLabels" : [
                                  null
                                ],
                                "localizedDescriptions" : [
                                  null
                                ]
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "id" : "referring_clinician_name",
                        "name" : "Referring clinician name",
                        "localizedName" : "Referring clinician name",
                        "rmType" : "DV_TEXT",
                        "nodeId" : "at0009",
                        "min" : "0",
                        "max" : "1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]/protocol[at0008]/items[openEHR-EHR-CLUSTER.practitioner_cc.v0,'ReferringClinician']/items[openEHR-EHR-CLUSTER.name_cc.v0]/items[at0009,'Referring clinician name']/value",
                        "inputs" : [
                          {
                            "type" : "TEXT"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "phone",
                    "name" : "Phone",
                    "localizedName" : "Phone",
                    "rmType" : "CLUSTER",
                    "nodeId" : "openEHR-EHR-CLUSTER.telecom_cc.v0",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]/protocol[at0008]/items[openEHR-EHR-CLUSTER.practitioner_cc.v0,'ReferringClinician']/items[openEHR-EHR-CLUSTER.telecom_cc.v0,'Phone']",
                    "children" : [
                      {
                        "id" : "system",
                        "name" : "System",
                        "localizedName" : "System",
                        "rmType" : "DV_CODED_TEXT",
                        "nodeId" : "at0001",
                        "min" : "0",
                        "max" : "1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]/protocol[at0008]/items[openEHR-EHR-CLUSTER.practitioner_cc.v0,'ReferringClinician']/items[openEHR-EHR-CLUSTER.telecom_cc.v0,'Phone']/items[at0001]/value",
                        "inputs" : [
                          {
                            "suffix" : "code",
                            "type" : "CODED_TEXT",
                            "defaultValue" : "at0012",
                            "list" : [
                              {
                                "value" : "at0012",
                                "label" : "Phone",
                                "localizedLabels" : [
                                  null
                                ],
                                "localizedDescriptions" : [
                                  null
                                ]
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "id" : "referrer_phone",
                        "name" : "Referrer phone",
                        "localizedName" : "Referrer phone",
                        "rmType" : "DV_TEXT",
                        "nodeId" : "at0002",
                        "min" : "0",
                        "max" : "1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]/protocol[at0008]/items[openEHR-EHR-CLUSTER.practitioner_cc.v0,'ReferringClinician']/items[openEHR-EHR-CLUSTER.telecom_cc.v0,'Phone']/items[at0002,'Referrer phone']/value",
                        "inputs" : [
                          {
                            "type" : "TEXT"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "email",
                    "name" : "Email",
                    "localizedName" : "Email",
                    "rmType" : "CLUSTER",
                    "nodeId" : "openEHR-EHR-CLUSTER.telecom_cc.v0",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]/protocol[at0008]/items[openEHR-EHR-CLUSTER.practitioner_cc.v0,'ReferringClinician']/items[openEHR-EHR-CLUSTER.telecom_cc.v0,'Email']",
                    "children" : [
                      {
                        "id" : "system",
                        "name" : "System",
                        "localizedName" : "System",
                        "rmType" : "DV_CODED_TEXT",
                        "nodeId" : "at0001",
                        "min" : "0",
                        "max" : "1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]/protocol[at0008]/items[openEHR-EHR-CLUSTER.practitioner_cc.v0,'ReferringClinician']/items[openEHR-EHR-CLUSTER.telecom_cc.v0,'Email']/items[at0001]/value",
                        "inputs" : [
                          {
                            "suffix" : "code",
                            "type" : "CODED_TEXT",
                            "defaultValue" : "at0014",
                            "list" : [
                              {
                                "value" : "at0014",
                                "label" : "Email",
                                "localizedLabels" : [
                                  null
                                ],
                                "localizedDescriptions" : [
                                  null
                                ]
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "id" : "referrer_email",
                        "name" : "Referrer email",
                        "localizedName" : "Referrer email",
                        "rmType" : "DV_TEXT",
                        "nodeId" : "at0002",
                        "min" : "0",
                        "max" : "1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]/protocol[at0008]/items[openEHR-EHR-CLUSTER.practitioner_cc.v0,'ReferringClinician']/items[openEHR-EHR-CLUSTER.telecom_cc.v0,'Email']/items[at0002,'Referrer email']/value",
                        "inputs" : [
                          {
                            "type" : "TEXT"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "organisation",
                    "name" : "Organisation",
                    "localizedName" : "Organisation",
                    "rmType" : "CLUSTER",
                    "nodeId" : "openEHR-EHR-CLUSTER.organisation_cc.v0",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]/protocol[at0008]/items[openEHR-EHR-CLUSTER.practitioner_cc.v0,'ReferringClinician']/items[openEHR-EHR-CLUSTER.organisation_cc.v0]",
                    "children" : [
                      {
                        "id" : "referring_hospital",
                        "name" : "Referring hospital",
                        "localizedName" : "Referring hospital",
                        "rmType" : "DV_TEXT",
                        "nodeId" : "at0012",
                        "min" : "0",
                        "max" : "1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]/protocol[at0008]/items[openEHR-EHR-CLUSTER.practitioner_cc.v0,'ReferringClinician']/items[openEHR-EHR-CLUSTER.organisation_cc.v0]/items[at0012,'Referring hospital']/value",
                        "inputs" : [
                          {
                            "type" : "TEXT"
                          }
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "receiving_clinician",
                "name" : "Receiving clinician",
                "localizedName" : "Receiving clinician",
                "rmType" : "CLUSTER",
                "nodeId" : "openEHR-EHR-CLUSTER.practitioner_cc.v0",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]/protocol[at0008]/items[openEHR-EHR-CLUSTER.practitioner_cc.v0,'Receiving clinician']",
                "children" : [
                  {
                    "id" : "name",
                    "name" : "Name",
                    "localizedName" : "Name",
                    "rmType" : "CLUSTER",
                    "nodeId" : "openEHR-EHR-CLUSTER.name_cc.v0",
                    "min" : "0",
                    "max" : "1",
                    "localizedNames" : [
                      null
                    ],
                    "localizedDescriptions" : [
                      null
                    ],
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]/protocol[at0008]/items[openEHR-EHR-CLUSTER.practitioner_cc.v0,'Receiving clinician']/items[openEHR-EHR-CLUSTER.name_cc.v0]",
                    "children" : [
                      {
                        "id" : "use",
                        "name" : "Use",
                        "localizedName" : "Use",
                        "rmType" : "DV_CODED_TEXT",
                        "nodeId" : "at0001",
                        "min" : "1",
                        "max" : "1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]/protocol[at0008]/items[openEHR-EHR-CLUSTER.practitioner_cc.v0,'Receiving clinician']/items[openEHR-EHR-CLUSTER.name_cc.v0]/items[at0001]/value",
                        "inputs" : [
                          {
                            "suffix" : "code",
                            "type" : "CODED_TEXT",
                            "defaultValue" : "at0002",
                            "list" : [
                              {
                                "value" : "at0002",
                                "label" : "Usual",
                                "localizedLabels" : [
                                  null
                                ],
                                "localizedDescriptions" : [
                                  null
                                ]
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "id" : "receiving_clinician_name",
                        "name" : "Receiving clinician name",
                        "localizedName" : "Receiving clinician name",
                        "rmType" : "DV_TEXT",
                        "nodeId" : "at0009",
                        "min" : "0",
                        "max" : "1",
                        "localizedNames" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ],
                        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]/protocol[at0008]/items[openEHR-EHR-CLUSTER.practitioner_cc.v0,'Receiving clinician']/items[openEHR-EHR-CLUSTER.name_cc.v0]/items[at0009,'Receiving clinician name']/value",
                        "inputs" : [
                          {
                            "type" : "TEXT"
                          }
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "expiry_time",
                "name" : "expiry_time",
                "rmType" : "DV_DATE_TIME",
                "min" : "0",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]/expiry_time",
                "inputs" : [
                  {
                    "type" : "DATETIME"
                  }
                ]
              },
              {
                "id" : "narrative",
                "name" : "Narrative",
                "rmType" : "DV_TEXT",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]/narrative",
                "inContext" : true,
                "inputs" : [
                  {
                    "type" : "TEXT"
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-INSTRUCTION.service_request.v1]/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "initial_gp_referral",
            "name" : "Initial GP referral",
            "localizedName" : "Initial GP referral",
            "rmType" : "ACTION",
            "nodeId" : "openEHR-EHR-ACTION.service.v0",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Initial GP referral']",
            "children" : [
              {
                "id" : "ism_transition",
                "name" : "Ism_transition",
                "rmType" : "ISM_TRANSITION",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Initial GP referral']/ism_transition",
                "inContext" : true,
                "children" : [
                  {
                    "id" : "current_state",
                    "name" : "Current_state",
                    "rmType" : "DV_CODED_TEXT",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Initial GP referral']/ism_transition/current_state",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "526",
                            "label" : "planned"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "transition",
                    "name" : "Transition",
                    "rmType" : "DV_CODED_TEXT",
                    "min" : "0",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Initial GP referral']/ism_transition/transition",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "TEXT"
                      },
                      {
                        "suffix" : "value",
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "careflow_step",
                    "name" : "Careflow_step",
                    "rmType" : "DV_CODED_TEXT",
                    "min" : "0",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Initial GP referral']/ism_transition/careflow_step",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "at0026",
                            "label" : "Initial GP referral",
                            "localizedLabels" : [
                              null
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "service_name",
                "name" : "Service name",
                "localizedName" : "Service name",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0011",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "Coding of the specific service name with a terminology is preferred, where possible."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Initial GP referral']/description[at0001]/items[at0011]/value",
                "inputs" : [
                  {
                    "type" : "TEXT",
                    "defaultValue" : "Cancer MDT referral"
                  }
                ]
              },
              {
                "id" : "time",
                "name" : "Time",
                "rmType" : "DV_DATE_TIME",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Initial GP referral']/time",
                "inContext" : true,
                "inputs" : [
                  {
                    "type" : "DATETIME"
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Initial GP referral']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Initial GP referral']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Initial GP referral']/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "tertiary_referral_agreed",
            "name" : "Tertiary Referral agreed",
            "localizedName" : "Tertiary Referral agreed",
            "rmType" : "ACTION",
            "nodeId" : "openEHR-EHR-ACTION.service.v0",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Tertiary Referral agreed']",
            "children" : [
              {
                "id" : "ism_transition",
                "name" : "Ism_transition",
                "rmType" : "ISM_TRANSITION",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Tertiary Referral agreed']/ism_transition",
                "inContext" : true,
                "children" : [
                  {
                    "id" : "current_state",
                    "name" : "Current_state",
                    "rmType" : "DV_CODED_TEXT",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Tertiary Referral agreed']/ism_transition/current_state",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "529",
                            "label" : "scheduled"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "transition",
                    "name" : "Transition",
                    "rmType" : "DV_CODED_TEXT",
                    "min" : "0",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Tertiary Referral agreed']/ism_transition/transition",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "TEXT"
                      },
                      {
                        "suffix" : "value",
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "careflow_step",
                    "name" : "Careflow_step",
                    "rmType" : "DV_CODED_TEXT",
                    "min" : "0",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Tertiary Referral agreed']/ism_transition/careflow_step",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "at0003",
                            "label" : "Tertiary referral agreed",
                            "localizedLabels" : [
                              null
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "service_name",
                "name" : "Service name",
                "localizedName" : "Service name",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0011",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "Coding of the specific service name with a terminology is preferred, where possible."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Tertiary Referral agreed']/description[at0001]/items[at0011]/value",
                "inputs" : [
                  {
                    "type" : "TEXT",
                    "defaultValue" : "Cancer MDT referral"
                  }
                ]
              },
              {
                "id" : "time",
                "name" : "Time",
                "rmType" : "DV_DATE_TIME",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Tertiary Referral agreed']/time",
                "inContext" : true,
                "inputs" : [
                  {
                    "type" : "DATETIME"
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Tertiary Referral agreed']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Tertiary Referral agreed']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Tertiary Referral agreed']/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "initial_tertiary_referral",
            "name" : "Initial Tertiary referral",
            "localizedName" : "Initial Tertiary referral",
            "rmType" : "ACTION",
            "nodeId" : "openEHR-EHR-ACTION.service.v0",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Initial Tertiary referral']",
            "children" : [
              {
                "id" : "ism_transition",
                "name" : "Ism_transition",
                "rmType" : "ISM_TRANSITION",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Initial Tertiary referral']/ism_transition",
                "inContext" : true,
                "children" : [
                  {
                    "id" : "current_state",
                    "name" : "Current_state",
                    "rmType" : "DV_CODED_TEXT",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Initial Tertiary referral']/ism_transition/current_state",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "526",
                            "label" : "planned"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "transition",
                    "name" : "Transition",
                    "rmType" : "DV_CODED_TEXT",
                    "min" : "0",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Initial Tertiary referral']/ism_transition/transition",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "TEXT"
                      },
                      {
                        "suffix" : "value",
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "careflow_step",
                    "name" : "Careflow_step",
                    "rmType" : "DV_CODED_TEXT",
                    "min" : "0",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Initial Tertiary referral']/ism_transition/careflow_step",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "at0026",
                            "label" : "Initial Tertiary referral",
                            "localizedLabels" : [
                              null
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "service_name",
                "name" : "Service name",
                "localizedName" : "Service name",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0011",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "Coding of the specific service name with a terminology is preferred, where possible."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Initial Tertiary referral']/description[at0001]/items[at0011]/value",
                "inputs" : [
                  {
                    "type" : "TEXT",
                    "defaultValue" : "Cancer MDT referral"
                  }
                ]
              },
              {
                "id" : "time",
                "name" : "Time",
                "rmType" : "DV_DATE_TIME",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Initial Tertiary referral']/time",
                "inContext" : true,
                "inputs" : [
                  {
                    "type" : "DATETIME"
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Initial Tertiary referral']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Initial Tertiary referral']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT Referral']/items[openEHR-EHR-ACTION.service.v0,'Initial Tertiary referral']/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "id" : "mdt",
        "name" : "MDT",
        "localizedName" : "MDT",
        "rmType" : "SECTION",
        "nodeId" : "openEHR-EHR-SECTION.adhoc.v1",
        "min" : "0",
        "max" : "-1",
        "localizedNames" : [
          null
        ],
        "localizedDescriptions" : [
          null
        ],
        "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT']",
        "children" : [
          {
            "id" : "mdt_meeting",
            "name" : "MDT meeting",
            "localizedName" : "MDT meeting",
            "rmType" : "ACTION",
            "nodeId" : "openEHR-EHR-ACTION.service.v0",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT']/items[openEHR-EHR-ACTION.service.v0,'MDT meeting']",
            "children" : [
              {
                "id" : "ism_transition",
                "name" : "Ism_transition",
                "rmType" : "ISM_TRANSITION",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT']/items[openEHR-EHR-ACTION.service.v0,'MDT meeting']/ism_transition",
                "inContext" : true,
                "children" : [
                  {
                    "id" : "current_state",
                    "name" : "Current_state",
                    "rmType" : "DV_CODED_TEXT",
                    "min" : "1",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT']/items[openEHR-EHR-ACTION.service.v0,'MDT meeting']/ism_transition/current_state",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "245",
                            "label" : "active"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id" : "transition",
                    "name" : "Transition",
                    "rmType" : "DV_CODED_TEXT",
                    "min" : "0",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT']/items[openEHR-EHR-ACTION.service.v0,'MDT meeting']/ism_transition/transition",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "TEXT"
                      },
                      {
                        "suffix" : "value",
                        "type" : "TEXT"
                      }
                    ]
                  },
                  {
                    "id" : "careflow_step",
                    "name" : "Careflow_step",
                    "rmType" : "DV_CODED_TEXT",
                    "min" : "0",
                    "max" : "1",
                    "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT']/items[openEHR-EHR-ACTION.service.v0,'MDT meeting']/ism_transition/careflow_step",
                    "inContext" : true,
                    "inputs" : [
                      {
                        "suffix" : "code",
                        "type" : "CODED_TEXT",
                        "list" : [
                          {
                            "value" : "at0004",
                            "label" : "MDT Delivered",
                            "localizedLabels" : [
                              null
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "service_name",
                "name" : "Service name",
                "localizedName" : "Service name",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0011",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "annotations" : {
                  "comment" : "Coding of the specific service name with a terminology is preferred, where possible."
                },
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT']/items[openEHR-EHR-ACTION.service.v0,'MDT meeting']/description[at0001]/items[at0011]/value",
                "inputs" : [
                  {
                    "type" : "TEXT",
                    "defaultValue" : "MDT meeting"
                  }
                ]
              },
              {
                "id" : "care_plan_id",
                "name" : "Care plan ID",
                "localizedName" : "Care plan ID",
                "rmType" : "DV_IDENTIFIER",
                "nodeId" : "at0018",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT']/items[openEHR-EHR-ACTION.service.v0,'MDT meeting']/protocol[at0015]/items[at0018,'Care plan ID']/value",
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "type",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "issuer",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "assigner",
                    "type" : "TEXT"
                  }
                ]
              },
              {
                "id" : "time",
                "name" : "Time",
                "rmType" : "DV_DATE_TIME",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT']/items[openEHR-EHR-ACTION.service.v0,'MDT meeting']/time",
                "inContext" : true,
                "inputs" : [
                  {
                    "type" : "DATETIME"
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT']/items[openEHR-EHR-ACTION.service.v0,'MDT meeting']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT']/items[openEHR-EHR-ACTION.service.v0,'MDT meeting']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT']/items[openEHR-EHR-ACTION.service.v0,'MDT meeting']/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "who_status",
            "name" : "WHO status",
            "localizedName" : "WHO status",
            "rmType" : "OBSERVATION",
            "nodeId" : "openEHR-EHR-OBSERVATION.ecog.v1",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT']/items[openEHR-EHR-OBSERVATION.ecog.v1,'WHO status']",
            "children" : [
              {
                "id" : "status",
                "name" : "Status",
                "localizedName" : "Status",
                "rmType" : "DV_ORDINAL",
                "nodeId" : "at0004",
                "min" : "1",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT']/items[openEHR-EHR-OBSERVATION.ecog.v1,'WHO status']/data[at0001]/events[at0002]/data[at0003]/items[at0004,'Status']/value",
                "inputs" : [
                  {
                    "type" : "CODED_TEXT",
                    "list" : [
                      {
                        "value" : "at0005",
                        "label" : "Asymptomatic",
                        "ordinal" : "0",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      },
                      {
                        "value" : "at0006",
                        "label" : "Symptomatic, fully ambulatory",
                        "ordinal" : "1",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      },
                      {
                        "value" : "at0007",
                        "label" : "Symptomatic, in bed <50% of the day",
                        "ordinal" : "2",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      },
                      {
                        "value" : "at0008",
                        "label" : "Symptomatic, in bed >50% of the day (but not bedridden)",
                        "ordinal" : "3",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      },
                      {
                        "value" : "at0009",
                        "label" : "Bedridden",
                        "ordinal" : "4",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      },
                      {
                        "value" : "at0010",
                        "label" : "Dead",
                        "ordinal" : "5",
                        "localizedLabels" : [
                          null
                        ],
                        "localizedDescriptions" : [
                          null
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "id" : "description",
                "name" : "Description",
                "localizedName" : "Description",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0013",
                "min" : "0",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT']/items[openEHR-EHR-OBSERVATION.ecog.v1,'WHO status']/data[at0001]/events[at0002]/data[at0003]/items[at0013,'Description']/value",
                "inputs" : [
                  {
                    "type" : "TEXT"
                  }
                ]
              },
              {
                "id" : "time",
                "name" : "Time",
                "rmType" : "DV_DATE_TIME",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT']/items[openEHR-EHR-OBSERVATION.ecog.v1,'WHO status']/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-SECTION.adhoc.v1,'MDT']/items[openEHR-EHR-OBSERVATION.ecog.v1,'WHO status']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT']/items[openEHR-EHR-OBSERVATION.ecog.v1,'WHO status']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT']/items[openEHR-EHR-OBSERVATION.ecog.v1,'WHO status']/subject",
                "inContext" : true,
                "inputs" : [
                  {
                    "suffix" : "id",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_scheme",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "id_namespace",
                    "type" : "TEXT"
                  },
                  {
                    "suffix" : "name",
                    "type" : "TEXT"
                  }
                ]
              }
            ]
          },
          {
            "id" : "mdt_comments",
            "name" : "MDT comments",
            "localizedName" : "MDT comments",
            "rmType" : "EVALUATION",
            "nodeId" : "openEHR-EHR-EVALUATION.clinical_synopsis.v1",
            "min" : "0",
            "max" : "1",
            "localizedNames" : [
              null
            ],
            "localizedDescriptions" : [
              null
            ],
            "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT']/items[openEHR-EHR-EVALUATION.clinical_synopsis.v1,'MDT comments']",
            "children" : [
              {
                "id" : "synopsis",
                "name" : "Synopsis",
                "localizedName" : "Synopsis",
                "rmType" : "DV_TEXT",
                "nodeId" : "at0002",
                "min" : "1",
                "max" : "1",
                "localizedNames" : [
                  null
                ],
                "localizedDescriptions" : [
                  null
                ],
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT']/items[openEHR-EHR-EVALUATION.clinical_synopsis.v1,'MDT comments']/data[at0001]/items[at0002]/value",
                "inputs" : [
                  {
                    "type" : "TEXT"
                  }
                ]
              },
              {
                "id" : "language",
                "name" : "Language",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT']/items[openEHR-EHR-EVALUATION.clinical_synopsis.v1,'MDT comments']/language",
                "inContext" : true
              },
              {
                "id" : "encoding",
                "name" : "Encoding",
                "rmType" : "CODE_PHRASE",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT']/items[openEHR-EHR-EVALUATION.clinical_synopsis.v1,'MDT comments']/encoding",
                "inContext" : true
              },
              {
                "id" : "subject",
                "name" : "Subject",
                "rmType" : "PARTY_PROXY",
                "min" : "1",
                "max" : "1",
                "aqlPath" : "/content[openEHR-EHR-SECTION.adhoc.v1,'MDT']/items[openEHR-EHR-EVALUATION.clinical_synopsis.v1,'MDT comments']/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
                ]
              }
            ]
          }
        ]
      },
      {
        "id" : "language",
        "name" : "Language",
        "rmType" : "CODE_PHRASE",
        "min" : "1",
        "max" : "1",
        "aqlPath" : "/language",
        "inContext" : true
      },
      {
        "id" : "territory",
        "name" : "Territory",
        "rmType" : "CODE_PHRASE",
        "min" : "1",
        "max" : "1",
        "aqlPath" : "/territory",
        "inContext" : true
      },
      {
        "id" : "composer",
        "name" : "Composer",
        "rmType" : "PARTY_PROXY",
        "min" : "1",
        "max" : "1",
        "aqlPath" : "/composer",
        "inContext" : true,
        "inputs" : [
          {
            "suffix" : "id",
            "type" : "TEXT"
          },
          {
            "suffix" : "id_scheme",
            "type" : "TEXT"
          },
          {
            "suffix" : "id_namespace",
            "type" : "TEXT"
          },
          {
            "suffix" : "name",
            "type" : "TEXT"
          }
        ]
      }
    ]
  }
}