{
  "resourceType": "StructureDefinition",
  "id": "c5dba487-62ea-4927-a6a7-58444235eba9",
  "meta": {
    "lastUpdated": "2021-11-10T13:30:20.73+00:00"
  },
  "url": "https://fhir.simplifier.net/Histo-AI/StructureDefinition",
  "name": "HistoAI",
  "status": "draft",
  "date": "2021-10-06T10:27:25.9408563+00:00",
  "fhirVersion": "4.0.1",
  "kind": "logical",
  "abstract": false,
  "type": "https://simplifier.net/Histo-AI/HistoAI",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Element",
  "derivation": "specialization",
  "snapshot": {
    "element": [
      {
        "id": "HistoAI",
        "path": "HistoAI",
        "short": "Base for all elements",
        "definition": "Base definition for all elements in a resource.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "HistoAI",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Element"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.id",
        "path": "HistoAI.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.extension",
        "path": "HistoAI.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient",
        "label": "Patient",
        "short": "Individual patient in Histo-AI study",
        "definition": "Individual patient in Histo-AI study.",
        "alias": [
          "Individual"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "HistoAI.Patient",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.id",
        "path": "HistoAI.Patient.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.extension",
        "path": "HistoAI.Patient.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.modifierExtension",
        "path": "HistoAI.Patient.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.subjectId",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.subjectId",
        "label": "Subject ID",
        "short": "Anonymized id of this patient",
        "definition": "Unique Study record number. This ID will be computer generated and randomly assigned to each subject/record.  Can if needed be linked to hospital patient number or notary number through data manager with key. Do NOT use institution specific ID.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.subjectId",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Identifier"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "v2",
            "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
          },
          {
            "identity": "rim",
            "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]"
          },
          {
            "identity": "servd",
            "map": "Identifier"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.gender",
        "path": "HistoAI.Patient.gender",
        "label": "Gender",
        "short": "male | female | other | unknown",
        "definition": "Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes.",
        "comment": "The gender might not match the biological sex as determined by genetics or the individual's preferred identification.",
        "requirements": "Needed for identification of the individual, in combination with (at least) name and birth date.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.gender",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/code"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.ageAtPrimaryDiagnosis",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "trial-use"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.ageAtPrimaryDiagnosis",
        "label": "Age at Primary Diagnosis",
        "short": "The age at first primary diagnosis for the individual",
        "definition": "The age at first primary diagnosis for the individual.",
        "comment": "At least an estimated year should be provided as a guess if the real DOB is unknown  There is a standard extension \"patient-birthTime\" available that should be used where Time is required (such as in maternity/infant care systems).",
        "requirements": "Age of the individual drives many clinical processes.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.ageAtPrimaryDiagnosis",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Age",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Age"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "qty-3",
            "severity": "error",
            "human": "If a code for the unit is present, the system SHALL also be present",
            "expression": "code.empty() or system.exists()",
            "xpath": "not(exists(f:code)) or exists(f:system)",
            "source": "http://hl7.org/fhir/StructureDefinition/Quantity"
          },
          {
            "key": "age-1",
            "severity": "error",
            "human": "There SHALL be a code if there is a value and it SHALL be an expression of time.  If system is present, it SHALL be UCUM.  If value is present, it SHALL be positive.",
            "expression": "(code.exists() or value.empty()) and (system.empty() or system = %ucum) and (value.empty() or value.hasValue().not() or value > 0)",
            "xpath": "(f:code or not(f:value)) and (not(exists(f:system)) or f:system/@value='http://unitsofmeasure.org') and (not(f:value/@value) or f:value/@value >=0)",
            "source": "http://hl7.org/fhir/StructureDefinition/Age"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "v2",
            "map": "SN (see also Range) or CQ"
          },
          {
            "identity": "rim",
            "map": "PQ, IVL<PQ>, MO, CO, depending on the values"
          },
          {
            "identity": "rim",
            "map": "PQ"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.ageAtDeath",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "trial-use"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.ageAtDeath",
        "label": "Age at Death",
        "short": "The age at death for the individual, if applicable",
        "definition": "The age at death for the individual, if applicable.",
        "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
        "alias": [
          "Death Date",
          "Date of Death",
          "Deseased Date"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.ageAtDeath",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Age",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Age"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "qty-3",
            "severity": "error",
            "human": "If a code for the unit is present, the system SHALL also be present",
            "expression": "code.empty() or system.exists()",
            "xpath": "not(exists(f:code)) or exists(f:system)",
            "source": "http://hl7.org/fhir/StructureDefinition/Quantity"
          },
          {
            "key": "age-1",
            "severity": "error",
            "human": "There SHALL be a code if there is a value and it SHALL be an expression of time.  If system is present, it SHALL be UCUM.  If value is present, it SHALL be positive.",
            "expression": "(code.exists() or value.empty()) and (system.empty() or system = %ucum) and (value.empty() or value.hasValue().not() or value > 0)",
            "xpath": "(f:code or not(f:value)) and (not(exists(f:system)) or f:system/@value='http://unitsofmeasure.org') and (not(f:value/@value) or f:value/@value >=0)",
            "source": "http://hl7.org/fhir/StructureDefinition/Age"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "v2",
            "map": "SN (see also Range) or CQ"
          },
          {
            "identity": "rim",
            "map": "PQ, IVL<PQ>, MO, CO, depending on the values"
          },
          {
            "identity": "rim",
            "map": "PQ"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.causeOfDeath",
        "path": "HistoAI.Patient.causeOfDeath",
        "label": "Cause of Death",
        "short": "Primitive Type string",
        "definition": "A sequence of Unicode characters",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.causeOfDeath",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/string"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.hospitalName",
        "path": "HistoAI.Patient.hospitalName",
        "label": "Hospital Name",
        "short": "Primitive Type string",
        "definition": "Nameofhospital,cityintheNetherlands",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "min": 0,
        "max": "*",
        "base": {
          "path": "HistoAI.Patient.hospitalName",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "string",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/string"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Pathology",
        "label": "Pathology",
        "short": "Pathology report of this patient",
        "definition": "Pathology report of this patient, primarily from Palga (nation wide Dutch pathology record system)",
        "comment": "Indexed with T number",
        "min": 0,
        "max": "*",
        "base": {
          "path": "HistoAI.Patient.Pathology",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.id",
        "path": "HistoAI.Patient.Pathology.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.extension",
        "path": "HistoAI.Patient.Pathology.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.modifierExtension",
        "path": "HistoAI.Patient.Pathology.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.palgaId",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Pathology.palgaId",
        "label": "Palga ID",
        "short": "Palga identifier",
        "definition": "Report name in Palga;\r\nTissue number in Tumor Registry;\r\nAn_number of Analysis in Lab Management System.",
        "comment": "Startswith 'T', 'C' or 'S', then two digits as the year, then dash `-`, followed by 5 digits. regex: /[TCS]\\d{2}-\\d{5}/\r\nFor the latter 5 digits:\r\nInternal tissue number usually starts with 00;\r\nExternal tissue number usually starts with 2x.",
        "alias": [
          "T number",
          "Tissue number",
          "Onderzoeker nummer",
          "An_number",
          "rapnaam"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Pathology.palgaId",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Identifier"
            ]
          }
        ],
        "patternIdentifier": {
          "use": "usual",
          "type": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/StructureDefinition/regex",
                "code": "[TCS]\\d{2}-\\d{5}"
              }
            ]
          }
        },
        "example": [
          {
            "label": "Tissue number",
            "valueIdentifier": {
              "use": "usual",
              "value": "T20-00123"
            }
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "v2",
            "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
          },
          {
            "identity": "rim",
            "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]"
          },
          {
            "identity": "servd",
            "map": "Identifier"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.externalPalgaId",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Pathology.externalPalgaId",
        "label": "External Palga ID",
        "short": "External hospital tissue number",
        "definition": "Exteral hospital - Tissue number in Nation Wide Dutch Pathology Record system",
        "comment": "currently not in the DWH. ask Wouter or Dennis",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Pathology.externalPalgaId",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Identifier"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "v2",
            "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
          },
          {
            "identity": "rim",
            "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]"
          },
          {
            "identity": "servd",
            "map": "Identifier"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.sampleAcquisitionClass",
        "path": "HistoAI.Patient.Pathology.sampleAcquisitionClass",
        "label": "Tissue sample acquisition class",
        "short": "Tissue sample acquisition class",
        "definition": "Tissue sample acquisition class: (palga code)\r\nbiopsy = hollow needle and take small part of tissue;\r\nexision = part of an organ;\r\nresection  = whole organ removal",
        "comment": "05.01 Sample_Class in Data life cycle.\r\ndata source: [LMS].[TissueAcquisiton]",
        "alias": [
          "SampleClass"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Pathology.sampleAcquisitionClass",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/code"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.sampleRemovalType",
        "path": "HistoAI.Patient.Pathology.sampleRemovalType",
        "label": "Sample Removal Type",
        "short": "Type of tissue sample removal",
        "definition": "Type of tissue sample removal: primary / recurrence / metastasis, directly related with tissure number",
        "comment": "combination of: \r\n05.02 Sample_registration Sample_site_Prim\r\n05.03 Sample_registration Sample_site_Met",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Pathology.sampleRemovalType",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/code"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.sampleRemovalIndicator",
        "path": "HistoAI.Patient.Pathology.sampleRemovalIndicator",
        "label": "Sample Removal Timing",
        "short": "Indicate tissure sample removal before or after treatment",
        "definition": "Indicate tissure sample removal timing: before or after treatment.",
        "comment": "05.04 Sample_removal_ind Timeofbiopsytaken(pre-oraftertreatment) in Data life cycle",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Pathology.sampleRemovalIndicator",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/code"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.sampleRemovalDate",
        "path": "HistoAI.Patient.Pathology.sampleRemovalDate",
        "label": "Sample Removal Date",
        "short": "Date of the tissue sample removal",
        "definition": "Date of the tissue sample removal",
        "alias": [
          "monsterdatum",
          "DissectionDate"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Pathology.sampleRemovalDate",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/dateTime"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.ffpeCassette",
        "path": "HistoAI.Patient.Pathology.ffpeCassette",
        "label": "FFPE Cassette",
        "short": "FFPE Cassette",
        "definition": "FFPE (Formalin-Fixed Paraffin-Embedded) Cassette available for this tissue",
        "comment": "Palga record, should match with specimen containers in LMS",
        "min": 0,
        "max": "*",
        "base": {
          "path": "HistoAI.Patient.Pathology.ffpeCassette",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/code"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Pathology.Container",
        "label": "Container",
        "short": "Container of tissue specimen of this pathology analysis",
        "definition": "Container of tissue specimen of this pathology analysis.",
        "alias": [
          "Block",
          "Specimen"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "HistoAI.Patient.Pathology.Container",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.id",
        "path": "HistoAI.Patient.Pathology.Container.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.extension",
        "path": "HistoAI.Patient.Pathology.Container.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.modifierExtension",
        "path": "HistoAI.Patient.Pathology.Container.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.blockNumber",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Pathology.Container.blockNumber",
        "label": "Sample Class",
        "short": "Identifier of the container block",
        "definition": "Identifier of the container block. Combination of sending number + cassette number.",
        "comment": "[LMS].[Specimen].[Number]+[LMS].[Container].[Number]\r\nDepending on enumerateType , can be alpha+number or roman+number: A3 or IV4",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Pathology.Container.blockNumber",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Identifier"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "v2",
            "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
          },
          {
            "identity": "rim",
            "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]"
          },
          {
            "identity": "servd",
            "map": "Identifier"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.SampleSlide",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Pathology.Container.SampleSlide",
        "label": "Sample Slide",
        "short": "The sample slide being digitized",
        "definition": "The sample slide being digitized.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "HistoAI.Patient.Pathology.Container.SampleSlide",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.SampleSlide.id",
        "path": "HistoAI.Patient.Pathology.Container.SampleSlide.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.SampleSlide.extension",
        "path": "HistoAI.Patient.Pathology.Container.SampleSlide.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.SampleSlide.modifierExtension",
        "path": "HistoAI.Patient.Pathology.Container.SampleSlide.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.SampleSlide.staining",
        "path": "HistoAI.Patient.Pathology.Container.SampleSlide.staining",
        "label": "Staining",
        "short": "The staining type of the sample slide",
        "definition": "The staining type of the sample slide: HE, CD3, CD8, PDL1, etc.",
        "comment": "see LMS.Staing for the code",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Pathology.Container.SampleSlide.staining",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/code"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide",
        "label": "Scanned Slide",
        "short": "Digitized slide of the tisse",
        "definition": "Digitized slide of the tisse with certain staining. \r\nMetadata to link with the WSI in image storage.",
        "comment": "This can be in another database specifically for AI research",
        "min": 0,
        "max": "*",
        "base": {
          "path": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.id",
        "path": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.extension",
        "path": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.modifierExtension",
        "path": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.imageId",
        "path": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.imageId",
        "label": "Image ID",
        "short": "Global identifier of the WSI",
        "definition": "Global identifier of the Whole Slide Image",
        "comment": "Generated UUID for each image.",
        "alias": [
          "WSI ID"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.imageId",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "uuid",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/uuid"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.scannerModel",
        "path": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.scannerModel",
        "label": "Scanner Model",
        "short": "Model of the scanner",
        "definition": "Model of the scanner: 3DHistech, Aperio, Philips, etc.",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.scannerModel",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/string"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.fileLocation",
        "path": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.fileLocation",
        "label": "File Location",
        "short": "Description of the file location in Image Storage",
        "definition": "Description of the file location Image Storage. Which image storge? Where is it physically located?",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.fileLocation",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/string"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.fileName",
        "path": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.fileName",
        "label": "File Name",
        "short": "The filename of the digitized slide",
        "definition": "The filename of the digitized slide",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.fileName",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/string"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.fileFormat",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.fileFormat",
        "label": "File Format",
        "short": "Format of the image file",
        "definition": "Format of the image file: svs, tiff, etc.",
        "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
        "alias": [
          "File Extension",
          "File Type"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.fileFormat",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ref-1",
            "severity": "error",
            "human": "SHALL have a contained resource if a local reference is provided",
            "expression": "reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))",
            "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Reference"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.fileSize",
        "path": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.fileSize",
        "label": "File Size",
        "short": "File size in byte",
        "definition": "File size in byte",
        "comment": "32 bit number; for values larger than this, use decimal",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.fileSize",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "integer",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/integer"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.symbolicLink",
        "path": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.symbolicLink",
        "label": "Symbolic Link",
        "short": "Link(s) to the file storage of this WSI",
        "definition": "Link(s) to the file storage of this Whole Slide Image",
        "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
        "min": 0,
        "max": "*",
        "base": {
          "path": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.symbolicLink",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "uri",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/uri"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.ImmunoHistoChemistry",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Pathology.ImmunoHistoChemistry",
        "label": "ImmunoHistoChemistry",
        "short": "IHC bio-markers",
        "definition": "The laboratory method that uses antibodies to check for certain antigens (bio-markers) in a sample of tissue.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "HistoAI.Patient.Pathology.ImmunoHistoChemistry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.ImmunoHistoChemistry.id",
        "path": "HistoAI.Patient.Pathology.ImmunoHistoChemistry.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.ImmunoHistoChemistry.extension",
        "path": "HistoAI.Patient.Pathology.ImmunoHistoChemistry.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.ImmunoHistoChemistry.modifierExtension",
        "path": "HistoAI.Patient.Pathology.ImmunoHistoChemistry.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.ImmunoHistoChemistry.markerName",
        "path": "HistoAI.Patient.Pathology.ImmunoHistoChemistry.markerName",
        "label": "Marker Name",
        "short": "Name of the biomarker",
        "definition": "Name of the biomarker (antigens)",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Pathology.ImmunoHistoChemistry.markerName",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/code"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.ImmunoHistoChemistry.markerPercentage",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Pathology.ImmunoHistoChemistry.markerPercentage",
        "label": "Marker Percentage",
        "short": "Percentage of positive tumor cells for this marker",
        "definition": "Percentage of positive tumor cells for this marker immunohistochemistry.",
        "comment": "The Ratio datatype should only be used to express a relationship of two numbers if the relationship cannot be suitably expressed using a Quantity and a common unit.  Where the denominator value is known to be fixed to \"1\", Quantity should be used instead of Ratio.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Pathology.ImmunoHistoChemistry.markerPercentage",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Ratio",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Ratio"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "rat-1",
            "severity": "error",
            "human": "Numerator and denominator SHALL both be present, or both are absent. If both are absent, there SHALL be some extension present",
            "expression": "(numerator.empty() xor denominator.exists()) and (numerator.exists() or extension.exists())",
            "xpath": "(count(f:numerator) = count(f:denominator)) and ((count(f:numerator) > 0) or (count(f:extension) > 0))",
            "source": "http://hl7.org/fhir/StructureDefinition/Ratio"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "v2",
            "map": "N/A"
          },
          {
            "identity": "rim",
            "map": "RTO"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.tumorGrade",
        "path": "HistoAI.Patient.Pathology.tumorGrade",
        "label": "Tumor Grade",
        "short": "Grade of the tumour",
        "definition": "Grade of the tumour asassigned by the reporting tumour grading system in Palga.",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Pathology.tumorGrade",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/code"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.tumorHistologicalType",
        "path": "HistoAI.Patient.Pathology.tumorHistologicalType",
        "label": "Tumor Histological Type",
        "code": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/icd-o-3"
          }
        ],
        "short": "The code to represent the histology (morphology) of neoplasms",
        "definition": "The code to represent the histology (morphology) of neoplasms that is usually obtained from a pathology report, according to the International Classification of Diseases for Oncology, 3rdEdition(WHO ICD-O-3). RefertotheICD-O",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Pathology.tumorHistologicalType",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/code"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.PathologyReport",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Pathology.PathologyReport",
        "label": "Pathology Report",
        "short": "Pathology report in Palga",
        "definition": "Pathology report (free text) in Palga",
        "comment": "Aardmateriaal, Klinischegegevens, Immuunhistochemie, Macroscopie, Microscropie, Conclusie",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Pathology.PathologyReport",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Radiology",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Radiology",
        "label": "Radiology",
        "short": "Radiology report of this patient",
        "definition": "Radiology report of this patient, primarily from PACS (Picture archiving and communication system)",
        "min": 0,
        "max": "*",
        "base": {
          "path": "HistoAI.Patient.Radiology",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Genomics",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Genomics",
        "label": "Genomics",
        "short": "Genomics report of this patient",
        "definition": "Genomics report of this patient, primarily from MolPa (molecular pathology database) and GCF (Genomics core facility)",
        "min": 0,
        "max": "*",
        "base": {
          "path": "HistoAI.Patient.Genomics",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Tumor",
        "label": "Tumor",
        "short": "Tumor records of this patient",
        "definition": "Tumor records of this patient in Tumor Registry. Only primary tumor.",
        "comment": "Indexed with (patientId, tumorSys)",
        "alias": [
          "Tumour",
          "Cancer",
          "Disease"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "HistoAI.Patient.Tumor",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.id",
        "path": "HistoAI.Patient.Tumor.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.extension",
        "path": "HistoAI.Patient.Tumor.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.modifierExtension",
        "path": "HistoAI.Patient.Tumor.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.tumorId",
        "path": "HistoAI.Patient.Tumor.tumorId",
        "label": "Tumor ID",
        "short": "Global unique tumor identifier",
        "definition": "Uniquely generated selected primary cancer tumor number per patient at Scientific administration of the Netherlands Cancer Institute.",
        "comment": "Presented in the code book \"01.09 Tumour_ID\". Not in tumor registry. \r\nThis UUID will be generated during patient anonymisation process.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.tumorId",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "uuid",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/uuid"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.tumorSys",
        "path": "HistoAI.Patient.Tumor.tumorSys",
        "label": "Tumor sys",
        "short": "Tumorsys code in Tumor Registry",
        "definition": "System variable for linking with all tumor-related tables in tumor registry.\r\nFirst primary tumor: Tumorsys=1\r\nSecond primary tumor: Tumorsys=2",
        "comment": "Tumor_sys is part of the PrimaryKey (together with with PatientId) for all Tumor Registry tables in dataware house. TRTU_Tumorsys_code",
        "alias": [
          "TRTU_Tumorsys_code"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.tumorSys",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "integer",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/integer"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.diagnosisDate",
        "path": "HistoAI.Patient.Tumor.diagnosisDate",
        "label": "Diagnosis Date",
        "short": "Date of primary diagnosis of the tumor",
        "definition": "Date of primary diagnosis of the tumor.",
        "comment": "If patient has had multiple cancer diagnoses, should be able to select the data only for the diagnosis thought to be associated with the metastatic disease.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.diagnosisDate",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/dateTime"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.diagnosisCode",
        "path": "HistoAI.Patient.Tumor.diagnosisCode",
        "label": "DiagnosisCode",
        "code": [
          {
            "system": "http://hl7.org/fhir/sid/icd-10"
          }
        ],
        "short": "Primary cancer type code ICD-10",
        "definition": "The code to represent the cancer type using the WHO ICD-10 code classification.",
        "comment": "The code to represent the cancer type using the WHO ICD-10 code classification.\r\n(https://icd.who.int/browse10/2019/en)",
        "alias": [
          "Cancer Type",
          "Primary Type"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.diagnosisCode",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/sid/icd-10"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.diagnosisDescription",
        "path": "HistoAI.Patient.Tumor.diagnosisDescription",
        "label": "Primary Site",
        "short": "Diagnosis Description",
        "definition": "The text term used to describe the primary site of disease, as categorized by the WorldHealthOrganization's (WHO) International Classification of Diseasesfor Oncology (ICD-O). This categorization groups cases into general categories.",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.diagnosisDescription",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/code"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.ClinicalStage",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Tumor.ClinicalStage",
        "label": "Clinical Stage",
        "code": [
          {
            "system": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-clinical-stage-group"
          }
        ],
        "short": "AJCC clinical stage group",
        "definition": "AJCC clinical stage group, https://cancerstaging.org.",
        "alias": [
          "TNM clinical stage"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "HistoAI.Patient.Tumor.ClinicalStage",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "TNMClinicalStageGroup",
            "map": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-clinical-stage-group"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.ClinicalStage.id",
        "path": "HistoAI.Patient.Tumor.ClinicalStage.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.ClinicalStage.extension",
        "path": "HistoAI.Patient.Tumor.ClinicalStage.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.ClinicalStage.modifierExtension",
        "path": "HistoAI.Patient.Tumor.ClinicalStage.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.ClinicalStage.cT",
        "path": "HistoAI.Patient.Tumor.ClinicalStage.cT",
        "label": "cT",
        "code": [
          {
            "system": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-clinical-primary-tumor-category"
          }
        ],
        "short": "TNM Clinical Primary Tumor Category",
        "definition": "TNM Clinical Primary Tumor Category",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.ClinicalStage.cT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-clinical-primary-tumor-category"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.ClinicalStage.cN",
        "path": "HistoAI.Patient.Tumor.ClinicalStage.cN",
        "label": "cN",
        "code": [
          {
            "system": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-clinical-regional-nodes-category"
          }
        ],
        "short": "TNM Clinical Regional Nodes Category",
        "definition": "TNM Clinical Regional Nodes Category",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.ClinicalStage.cN",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-clinical-regional-nodes-category"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.ClinicalStage.cM",
        "path": "HistoAI.Patient.Tumor.ClinicalStage.cM",
        "label": "cM",
        "code": [
          {
            "system": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-clinical-distant-metastases-category"
          }
        ],
        "short": "TNM Clinical Distant Metastases Category",
        "definition": "TNM Clinical Distant Metastases Category",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.ClinicalStage.cM",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-clinical-distant-metastases-category"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.PathologicalStage",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Tumor.PathologicalStage",
        "label": "Pathological Stage",
        "code": [
          {
            "system": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-pathological-stage-group"
          }
        ],
        "short": "AJCC pathological stage group",
        "definition": "AJCC pathological stage group, https://cancerstaging.org.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "HistoAI.Patient.Tumor.PathologicalStage",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "TNMPathologicalStageGroup",
            "map": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-pathological-stage-group"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.PathologicalStage.id",
        "path": "HistoAI.Patient.Tumor.PathologicalStage.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.PathologicalStage.extension",
        "path": "HistoAI.Patient.Tumor.PathologicalStage.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.PathologicalStage.modifierExtension",
        "path": "HistoAI.Patient.Tumor.PathologicalStage.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.PathologicalStage.pT",
        "path": "HistoAI.Patient.Tumor.PathologicalStage.pT",
        "label": "pT",
        "code": [
          {
            "system": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-pathological-distant-metastases-category"
          }
        ],
        "short": "TNM Pathological Primary Tumor Category",
        "definition": "TNM Pathological Primary Tumor Category",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.PathologicalStage.pT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-pathological-distant-metastases-category"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.PathologicalStage.pN",
        "path": "HistoAI.Patient.Tumor.PathologicalStage.pN",
        "label": "pN",
        "code": [
          {
            "system": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-pathological-distant-metastases-category"
          }
        ],
        "short": "TNM Pathological Regional Nodes Category",
        "definition": "TNM Pathological Regional Nodes Category",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.PathologicalStage.pN",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-pathological-distant-metastases-category"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.PathologicalStage.pM",
        "path": "HistoAI.Patient.Tumor.PathologicalStage.pM",
        "label": "pM",
        "code": [
          {
            "system": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-pathological-distant-metastases-category"
          }
        ],
        "short": "TNM Pathological Distant Metastases Category",
        "definition": "TNM Pathological Distant Metastases Category",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.PathologicalStage.pM",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-pathological-distant-metastases-category"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Localization",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Tumor.Localization",
        "label": "Localization",
        "short": "Metastasis of this tumor",
        "definition": "Diagnosis of distant metastatic of this cancer of this patient.",
        "comment": "Derived from data in Tumorregistratie.",
        "alias": [
          "Localisatie",
          "Distant metastasis"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "HistoAI.Patient.Tumor.Localization",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Localization.id",
        "path": "HistoAI.Patient.Tumor.Localization.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Localization.extension",
        "path": "HistoAI.Patient.Tumor.Localization.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Localization.modifierExtension",
        "path": "HistoAI.Patient.Tumor.Localization.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Localization.localizationDate",
        "path": "HistoAI.Patient.Tumor.Localization.localizationDate",
        "label": "Localization Date",
        "short": "Date of diagnosis of this localization",
        "definition": "Date of diagnosis of this localization.",
        "alias": [
          "Date_First_metastasis",
          "Date_Local_ipsilat_recurrence",
          "Date_Contralateral",
          "Date_Regional_recurrence"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.Localization.localizationDate",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/dateTime"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Localization.metastasisSiteCode",
        "path": "HistoAI.Patient.Tumor.Localization.metastasisSiteCode",
        "label": "Metastasis Site Code",
        "code": [
          {
            "system": "http://hl7.org/fhir/sid/icd-10"
          }
        ],
        "short": "ICD10 code of location of the metastasis of this tumor",
        "definition": "ICD10 code of location/site of the metastasis of this tumor of this patient.",
        "comment": "04.09 Follow_up Date_First_metastasis\r\nnot always in [TRLK_Lokalisatie_code], should lookup TRTU to refer to primary tumor\r\nref: DLC Date_Progessive_Disease_after_treatment_metast1",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.Localization.metastasisSiteCode",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/sid/icd-10"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Localization.metastasisSiteDescription",
        "path": "HistoAI.Patient.Tumor.Localization.metastasisSiteDescription",
        "label": "Metastasis Site Description",
        "short": "Location of the metastasis of this tumor",
        "definition": "Location/site of the metastasis of this tumor of this patient.",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.Localization.metastasisSiteDescription",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/string"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Localization.regionalRecurrence",
        "path": "HistoAI.Patient.Tumor.Localization.regionalRecurrence",
        "label": "Regional Recurrence",
        "short": "Is this regional recurrence?",
        "definition": "A regional recurrence denotes tumor involving the ipsilateral regional lymph nodes, usually ipsilateral axillary or supraclavicular, and less commonly infraclavicular and/or internal mammary.",
        "alias": [
          "Eventregionalrecurrence"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.Localization.regionalRecurrence",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "boolean",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/boolean"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Localization.contralateralRecurrence",
        "path": "HistoAI.Patient.Tumor.Localization.contralateralRecurrence",
        "label": "Contralateral Recurrence",
        "short": "Is this metastasis contralateral?",
        "definition": "Is this metastasis contralateral? Event of contralateral breast cancer (as second primary)",
        "alias": [
          "Contralateral_recurrence"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.Localization.contralateralRecurrence",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "boolean",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/boolean"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Localization.localIpsilateralRecurrence",
        "path": "HistoAI.Patient.Tumor.Localization.localIpsilateralRecurrence",
        "label": "Local Ipsilateral Recurrence",
        "short": "Is this local and ipsilateral?",
        "definition": "Event of local ipsilateral recurrence; Loco-regional Recurrence is defined as a recurrence in the ipsilateral chest wall or  mastectomy scar, or ipsilateral supraclavicular, infraclavicular, axillary or internal mammary lymph nodes. LRR must occur after primary diagnosis period and before first distant metastatic diagnosis to be recorded.",
        "alias": [
          "Eventlocalipsilatrecurrence"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.Localization.localIpsilateralRecurrence",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "boolean",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/boolean"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Localization.oligoMetastasis",
        "path": "HistoAI.Patient.Tumor.Localization.oligoMetastasis",
        "label": "Oligo Metastasis",
        "short": "Is this oligo metastasis?",
        "definition": "Oligo_metastasis (max 3): A type of metastasis in which cancer cells from the original (primary) tumor travel through the body and form a small number of new tumors (metastatic tumors) in one or two other parts of the body.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.Localization.oligoMetastasis",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "boolean",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/boolean"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Tumor.Treatment",
        "label": "Therapy",
        "short": "Therapy record of this tumor",
        "definition": "Therapy record of this tumor in tumor registry, TRTH",
        "alias": [
          "Therapie",
          "Therapy"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "HistoAI.Patient.Tumor.Treatment",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.id",
        "path": "HistoAI.Patient.Tumor.Treatment.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.extension",
        "path": "HistoAI.Patient.Tumor.Treatment.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.modifierExtension",
        "path": "HistoAI.Patient.Tumor.Treatment.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.treatmentType",
        "path": "HistoAI.Patient.Tumor.Treatment.treatmentType",
        "label": "Treatment Type",
        "short": "Type of treatment",
        "definition": "Treatment code (single character):\r\n0 - no treatment\r\n1 - surgery\r\n2 - external radiotherapy\r\n3 - internal radiotherapy or radio-isotopes\r\n4 - chemotherapy\r\n5 - hormonal therapy\r\n6 - immunotherapy\r\n7 - rehabilitation therapy\r\n8 - other therapy\r\n9 - explorative surgery\r\nX - unknown (systemic) treatment",
        "comment": "Used in TR::TRTU_Behandeling_totaal_code, for example, \"1216\" means: surgery->external radiotherapy->surgery->immunotherapy.\r\nAlso used in TR::TRTH_Behandel_code.",
        "alias": [
          "Treatment code",
          "Behandel code"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.Treatment.treatmentType",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/code"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.startDate",
        "path": "HistoAI.Patient.Tumor.Treatment.startDate",
        "label": "Start Date",
        "short": "Start date of the treatment",
        "definition": "Start date of the treatment or therapy.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.Treatment.startDate",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/dateTime"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.stopDate",
        "path": "HistoAI.Patient.Tumor.Treatment.stopDate",
        "label": "Stop Date",
        "short": "Stop date of the treatment",
        "definition": "Stop date of the treatment or therapy.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.Treatment.stopDate",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/dateTime"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.treatmentIntent",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Tumor.Treatment.treatmentIntent",
        "label": "Treatment Intent",
        "short": "The purpose of this treatment",
        "definition": "The purpose of this treatment.",
        "comment": "TODO: find source in DWH",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.Treatment.treatmentIntent",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Narrative",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Narrative"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          },
          {
            "identity": "TreatmentIntent",
            "map": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-treatment-intent"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.treatmentSetting",
        "path": "HistoAI.Patient.Tumor.Treatment.treatmentSetting",
        "short": "Treatment's purpose in relation to the primary treatment",
        "definition": "Indicate the treatment setting, which describes the treatment's purpose in relation to the primary treatment. (Reference: CDISC[NCItcode:C124308])",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "min": 0,
        "max": "*",
        "base": {
          "path": "HistoAI.Patient.Tumor.Treatment.treatmentSetting",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/code"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.terminationReason",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Tumor.Treatment.terminationReason",
        "label": "Termination Reason",
        "short": "Reason of termination with this treatment",
        "definition": "Reason of termination with this treatment, as indicatior of desease progression.",
        "comment": "DWH - find out discription of reason of each treatment/therapy stopped at the end date of treatment.\r\nIn the future there will be an extra feature added to Hix in which RECIST measurements (radiological assessment of CT scans)",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.Treatment.terminationReason",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Narrative",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Narrative"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          },
          {
            "identity": "TreatmentTerminationReason",
            "map": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-treatment-termination-reason"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.treatmentInstituteIndicator",
        "path": "HistoAI.Patient.Tumor.Treatment.treatmentInstituteIndicator",
        "label": "Treatment Institute Indicator",
        "short": "Whether this treatment is primary or secondary",
        "definition": "Whether this treatment is primary (treated at AvL) or secondary (patient treated at somewhere else).",
        "comment": "DLC::09.09 Treatment Treatment_PS_ind",
        "alias": [
          "Treatment_PS_ind"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.Treatment.treatmentInstituteIndicator",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "boolean",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/boolean"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Medication",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Tumor.Treatment.Medication",
        "label": "Medication",
        "short": "Medication statement",
        "definition": "Medication statement",
        "min": 0,
        "max": "*",
        "base": {
          "path": "HistoAI.Patient.Tumor.Treatment.Medication",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Medication.id",
        "path": "HistoAI.Patient.Tumor.Treatment.Medication.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Medication.extension",
        "path": "HistoAI.Patient.Tumor.Treatment.Medication.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Medication.modifierExtension",
        "path": "HistoAI.Patient.Tumor.Treatment.Medication.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Medication.medicine",
        "path": "HistoAI.Patient.Tumor.Treatment.Medication.medicine",
        "label": "Medicine",
        "code": [
          {
            "system": "http://hl7.org/fhir/uv/ips/ValueSet/whoatc-uv-ips"
          }
        ],
        "short": "Medicine(s) used in this treatment",
        "definition": "Medicine(s) used in this treatment.\r\nWorld Health Organization Anatomical Therapeutic Chemical (ATC) classification system. \r\nNote: The currently implemented code system and the value set expansion contain only a set of example ATC codes, not the complete code system content.",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.Treatment.Medication.medicine",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/uv/ips/ValueSet/whoatc-uv-ips"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Medication.numberCourse",
        "path": "HistoAI.Patient.Tumor.Treatment.Medication.numberCourse",
        "label": "Number Course",
        "short": "Number of courses of medication given",
        "definition": "Number of courses of medication given.",
        "comment": "DWH::[TR].[TRTH_Aantal_kuren]",
        "alias": [
          "Aantal kuren"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.Treatment.Medication.numberCourse",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "integer",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/integer"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Medication.dosage",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "trial-use"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Tumor.Treatment.Medication.dosage",
        "label": "Dosage",
        "short": "General dosage instruction information",
        "definition": "General dosage instruction information, including site, route, method etc.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.Treatment.Medication.dosage",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Dosage",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Dosage"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=INT]"
          },
          {
            "identity": "Dosage",
            "map": "http://hl7.org/fhir/StructureDefinition/Dosage"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Medication.medicalOutcome",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Tumor.Treatment.Medication.medicalOutcome",
        "label": "Medical Outcome",
        "short": "Medical treatment outcome",
        "definition": "Medical treatment (chemo or immuno therapy) outcome.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.Treatment.Medication.medicalOutcome",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Narrative",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Narrative"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Surgery",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Tumor.Treatment.Surgery",
        "label": "Surgery",
        "short": "Surgical treatment",
        "definition": "Surgical treatment",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.Treatment.Surgery",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Surgery.id",
        "path": "HistoAI.Patient.Tumor.Treatment.Surgery.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Surgery.extension",
        "path": "HistoAI.Patient.Tumor.Treatment.Surgery.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Surgery.modifierExtension",
        "path": "HistoAI.Patient.Tumor.Treatment.Surgery.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Surgery.procedure",
        "path": "HistoAI.Patient.Tumor.Treatment.Surgery.procedure",
        "label": "Procedure",
        "short": "Surgical procedure code",
        "definition": "Surgical procedure code",
        "comment": "TODO: find source of procedure code\r\nTR.TRTH_Therapie_code?",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.Treatment.Surgery.procedure",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/code"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Surgery.bodySite",
        "path": "HistoAI.Patient.Tumor.Treatment.Surgery.bodySite",
        "label": "Body Site",
        "short": "Surgery body site",
        "definition": "Surgery body site ICD-10 code",
        "comment": "related to Tumor ID (patient and tumorsys), should be the same as primarySite of the tumor (local and regional) or metastasisSite (distant metastasis)",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.Treatment.Surgery.bodySite",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/sid/icd-10"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Surgery.surgeryOutcome",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Tumor.Treatment.Surgery.surgeryOutcome",
        "label": "Surgery Outcome",
        "short": "Response to surgery outcome",
        "definition": "Response to surgery outcome",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.Treatment.Surgery.surgeryOutcome",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Narrative",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Narrative"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Radiotherapy",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Tumor.Treatment.Radiotherapy",
        "label": "Radiotherapy",
        "code": [
          {
            "system": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-radiotherapy-course-summary"
          }
        ],
        "short": "Radiotherapy course summary",
        "definition": "Radiotherapy course summary",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.Treatment.Radiotherapy",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.id",
        "path": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.extension",
        "path": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.modifierExtension",
        "path": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.modality",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.modality",
        "label": "Modality",
        "code": [
          {
            "system": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-radiotherapy-modality"
          }
        ],
        "short": "A modality of external beam or brachytherapy radiation procedures",
        "definition": "A modality of external beam or brachytherapy radiation procedures. e.g. Photons, Electrons",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.modality",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-radiotherapy-modality"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.technique",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.technique",
        "label": "Technique",
        "code": [
          {
            "system": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-radiotherapy-technique"
          }
        ],
        "short": "A technique of external beam or brachytherapy radiation procedures",
        "definition": "A technique of external beam or brachytherapy radiation procedures. e.g. VMAT, 3D",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.technique",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-radiotherapy-technique"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.bodySite",
        "path": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.bodySite",
        "label": "Body Site",
        "code": [
          {
            "system": "http://hl7.org/fhir/sid/icd-10"
          }
        ],
        "short": "Anatomical site irradiated",
        "definition": "Anatomical site irradiated of radiotherapy.",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.bodySite",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/sid/icd-10"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.doseVolume",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.doseVolume",
        "label": "Dose Volume",
        "code": [
          {
            "system": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-radiotherapy-dose-delivered-to-volume"
          }
        ],
        "short": "Dose parameters for one radiotherapy volume",
        "definition": "Dose parameters for one radiotherapy volume. e.g.\r\n  Prostate, 5000cGy;\r\n  SV, 3000 cGy;",
        "min": 0,
        "max": "*",
        "base": {
          "path": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.doseVolume",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-radiotherapy-dose-delivered-to-volume"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.radiologicalOutcome",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.radiologicalOutcome",
        "label": "Radiological Outcome",
        "short": "Outcome of radiotherapy",
        "definition": "A human-readable summary of the resource conveying the essential clinical and business information for the resource.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.radiologicalOutcome",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Narrative",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Narrative"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.PerformanceStatus",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.PerformanceStatus",
        "label": "Performance Status",
        "short": "WHO performace status",
        "definition": "WHO performance status as recorded on baseline. \r\n0 = Able to carry out all normal activity without restrictions; \r\n1 = Restricted in physically strenuous activity but ambulatory and able to carry out light work; \r\n2 =  Ambulatory and capable of all self-care but unable to carry out any work; up and more than 50% of waking hours; \r\n3 = Capable of only limited self-care; confined to bed or chair more than 50% of waking hours; \r\n4 =  Completely disabled; cannot carry on any self-care; totally confined to bed or chair.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "HistoAI.Patient.PerformanceStatus",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.PerformanceStatus.id",
        "path": "HistoAI.Patient.PerformanceStatus.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.PerformanceStatus.extension",
        "path": "HistoAI.Patient.PerformanceStatus.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.PerformanceStatus.modifierExtension",
        "path": "HistoAI.Patient.PerformanceStatus.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.PerformanceStatus.observationDate",
        "path": "HistoAI.Patient.PerformanceStatus.observationDate",
        "label": "Observation Date",
        "short": "Date of the observation of performance status of this patient",
        "definition": "Date of the observation of performance status of this patient.",
        "comment": "This is not follow-up date",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.PerformanceStatus.observationDate",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/dateTime"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.PerformanceStatus.performanceScore",
        "path": "HistoAI.Patient.PerformanceStatus.performanceScore",
        "label": "Performance Score",
        "code": [
          {
            "system": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-ecog-performance-status"
          }
        ],
        "short": "Measurements and simple assertions",
        "definition": "WHO performance status as recorded on baseline. \r\n0 = Able to carry out all normal activity without restrictions; \r\n1 = Restricted in physically strenuous activity but ambulatory and able to carry out light work; \r\n2 =  Ambulatory and capable of all self-care but unable to carry out any work; up and more than 50% of waking hours; \r\n3 = Capable of only limited self-care; confined to bed or chair more than 50% of waking hours; \r\n4 =  Completely disabled; cannot carry on any self-care; totally confined to bed or chair.",
        "comment": "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc.  Other resources are used to provide context for observations such as laboratory reports, etc.",
        "alias": [
          "Vital Signs",
          "Measurement",
          "Results",
          "Tests",
          "ECOG Performance Status",
          "Zubrod score",
          "WHO score"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.PerformanceStatus.performanceScore",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-ecog-performance-status"
            ]
          }
        ],
        "constraint": [
          {
            "key": "dom-2",
            "severity": "error",
            "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression": "contained.contained.empty()",
            "xpath": "not(parent::f:contained and f:contained)",
            "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key": "dom-4",
            "severity": "error",
            "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key": "dom-3",
            "severity": "error",
            "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                "valueBoolean": true
              },
              {
                "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
              }
            ],
            "key": "dom-6",
            "severity": "warning",
            "human": "A resource should have narrative for robust management",
            "expression": "text.`div`.exists()",
            "xpath": "exists(f:text/h:div)",
            "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key": "dom-5",
            "severity": "error",
            "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression": "contained.meta.security.empty()",
            "xpath": "not(exists(f:contained/*/f:meta/f:security))",
            "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key": "obs-7",
            "severity": "error",
            "human": "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
            "expression": "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
            "xpath": "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
            "source": "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key": "obs-6",
            "severity": "error",
            "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
            "expression": "dataAbsentReason.empty() or value.empty()",
            "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
            "source": "http://hl7.org/fhir/StructureDefinition/Observation"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "Entity. Role, or Act"
          },
          {
            "identity": "workflow",
            "map": "Event"
          },
          {
            "identity": "sct-concept",
            "map": "< 363787002 |Observable entity|"
          },
          {
            "identity": "v2",
            "map": "OBX"
          },
          {
            "identity": "rim",
            "map": "Observation[classCode=OBS, moodCode=EVN]"
          },
          {
            "identity": "ECOGPerformanceStatus",
            "map": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-ecog-performance-status"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.PerformanceStatus.vitalStatus",
        "path": "HistoAI.Patient.PerformanceStatus.vitalStatus",
        "label": "Vital Status",
        "short": "Vital status at this follow-up.",
        "definition": "Indicator of vital status of follow-up:",
        "comment": "Death during follow-up can be derived from this.",
        "alias": [
          "Vital Signs",
          "Measurement",
          "Results",
          "Tests",
          "disease_status_at_followup"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.PerformanceStatus.vitalStatus",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/vitalsigns"
            ]
          }
        ],
        "constraint": [
          {
            "key": "dom-2",
            "severity": "error",
            "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression": "contained.contained.empty()",
            "xpath": "not(parent::f:contained and f:contained)",
            "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key": "dom-4",
            "severity": "error",
            "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
            "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key": "dom-3",
            "severity": "error",
            "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
            "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
            "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
            "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                "valueBoolean": true
              },
              {
                "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
              }
            ],
            "key": "dom-6",
            "severity": "warning",
            "human": "A resource should have narrative for robust management",
            "expression": "text.`div`.exists()",
            "xpath": "exists(f:text/h:div)",
            "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key": "dom-5",
            "severity": "error",
            "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression": "contained.meta.security.empty()",
            "xpath": "not(exists(f:contained/*/f:meta/f:security))",
            "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key": "obs-7",
            "severity": "error",
            "human": "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
            "expression": "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
            "xpath": "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
            "source": "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key": "obs-6",
            "severity": "error",
            "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
            "expression": "dataAbsentReason.empty() or value.empty()",
            "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
            "source": "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "key": "vs-2",
            "severity": "error",
            "human": "If there is no component or hasMember element then either a value[x] or a data absent reason must be present.",
            "expression": "(component.empty() and hasMember.empty()) implies (dataAbsentReason.exists() or value.exists())",
            "xpath": "f:component or f:memberOF or f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason",
            "source": "http://hl7.org/fhir/StructureDefinition/vitalsigns"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "Entity. Role, or Act"
          },
          {
            "identity": "workflow",
            "map": "Event"
          },
          {
            "identity": "sct-concept",
            "map": "< 363787002 |Observable entity|"
          },
          {
            "identity": "v2",
            "map": "OBX"
          },
          {
            "identity": "rim",
            "map": "Observation[classCode=OBS, moodCode=EVN]"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.ClinicalTrial",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.ClinicalTrial",
        "label": "Clinical Trial",
        "short": "Clinical trial studies this patient involved in",
        "definition": "Clinical trial studies this patient involved in. Study ID in clinical trial database Netherlands Cancer Instiute (TRION)",
        "alias": [
          "Study",
          "Trion"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "HistoAI.Patient.ClinicalTrial",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.ClinicalTrial.id",
        "path": "HistoAI.Patient.ClinicalTrial.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.ClinicalTrial.extension",
        "path": "HistoAI.Patient.ClinicalTrial.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.ClinicalTrial.modifierExtension",
        "path": "HistoAI.Patient.ClinicalTrial.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.ClinicalTrial.trionId",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI.Patient.ClinicalTrial.trionId",
        "label": "TRION ID",
        "short": "Unique identifier of clinical trial",
        "definition": "Unique identifier of clinical trial in database Netherlands Cancer Instiute (TRION), which this patient being involved.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "HistoAI.Patient.ClinicalTrial.trionId",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI._TBD",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI._TBD",
        "label": "_TBD",
        "short": "To Be Determined",
        "definition": "To be determined - data attributes from various sources need to be FHIR compliant",
        "min": 0,
        "max": "0",
        "base": {
          "path": "HistoAI._TBD",
          "min": 0,
          "max": "0"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.id",
        "path": "HistoAI._TBD.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.extension",
        "path": "HistoAI._TBD.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.modifierExtension",
        "path": "HistoAI._TBD.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.Molpa",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI._TBD.Molpa",
        "label": "MolPa",
        "short": "Molecular Pathology",
        "definition": "Molecular Pathology record of this patient",
        "min": 0,
        "max": "*",
        "base": {
          "path": "HistoAI._TBD.Molpa",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.Molpa.id",
        "path": "HistoAI._TBD.Molpa.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.Molpa.extension",
        "path": "HistoAI._TBD.Molpa.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.Molpa.modifierExtension",
        "path": "HistoAI._TBD.Molpa.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.Molpa.molpaId",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI._TBD.Molpa.molpaId",
        "label": "MOLPA ID",
        "short": "Unique identifier of MolPa record",
        "definition": "Unique identifier of MolPa record of this patient.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "HistoAI._TBD.Molpa.molpaId",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Identifier"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "v2",
            "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
          },
          {
            "identity": "rim",
            "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]"
          },
          {
            "identity": "servd",
            "map": "Identifier"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.Cfmpb",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI._TBD.Cfmpb",
        "label": "CFMPB",
        "short": "CFMPB record of this pationt",
        "definition": "Core Facility Molecular Pathology & Biobanking records of this patient.\r\n\r\nThe CFMPB registers, evaluates, coordinates, assists and facilitates all kind of research involving human biospecimens (e.g. serum, blood, ctDNA, FFPE and FF biopsies, DNA & RNA). All CFMPB activities are supported by our web application ‘the Application and Request Tool’ ART, an online tool for IRB registration & review and LIMS & database of NKI-AvL.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "HistoAI._TBD.Cfmpb",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.Cfmpb.id",
        "path": "HistoAI._TBD.Cfmpb.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.Cfmpb.extension",
        "path": "HistoAI._TBD.Cfmpb.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.Cfmpb.modifierExtension",
        "path": "HistoAI._TBD.Cfmpb.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.Cfmpb.cfmpbId",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI._TBD.Cfmpb.cfmpbId",
        "label": "CFMPB ID",
        "short": "Unique identifier of CFMPB record",
        "definition": "Unique identifier of Core Facility Molecular Pathology & Biobanking.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "HistoAI._TBD.Cfmpb.cfmpbId",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Identifier"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "v2",
            "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
          },
          {
            "identity": "rim",
            "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]"
          },
          {
            "identity": "servd",
            "map": "Identifier"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.Cfmpb.QustionAnswers",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI._TBD.Cfmpb.QustionAnswers",
        "label": "Qustion Answers",
        "short": "Base for elements defined inside a resource",
        "definition": "Base definition for all elements that are defined inside a resource - but not those in a data type.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "HistoAI._TBD.Cfmpb.QustionAnswers",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.Cfmpb.QustionAnswers.id",
        "path": "HistoAI._TBD.Cfmpb.QustionAnswers.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.Cfmpb.QustionAnswers.extension",
        "path": "HistoAI._TBD.Cfmpb.QustionAnswers.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.Cfmpb.QustionAnswers.modifierExtension",
        "path": "HistoAI._TBD.Cfmpb.QustionAnswers.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.Cfmpb.QustionAnswers.question",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI._TBD.Cfmpb.QustionAnswers.question",
        "label": "CFMPB Question",
        "short": "The question asked by pathologists",
        "definition": "The question asked by pathologists",
        "comment": "TODO: find out the source of [SQRLClin_Test].[CFDB].[ARTCBioPortal].question",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HistoAI._TBD.Cfmpb.QustionAnswers.question",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ref-1",
            "severity": "error",
            "human": "SHALL have a contained resource if a local reference is provided",
            "expression": "reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))",
            "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Reference"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.Cfmpb.QustionAnswers.answer",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI._TBD.Cfmpb.QustionAnswers.answer",
        "label": "CFMPB Answer",
        "short": "The answer to the question asked by pathologists",
        "definition": "The answer to the question asked by pathologists. One question may have multiple answers.",
        "comment": "TODO: find out the source of [SQRLClin_Test].[CFDB].[ARTCBioPortal].answer",
        "min": 0,
        "max": "*",
        "base": {
          "path": "HistoAI._TBD.Cfmpb.QustionAnswers.answer",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ref-1",
            "severity": "error",
            "human": "SHALL have a contained resource if a local reference is provided",
            "expression": "reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))",
            "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Reference"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.BloodBiobank",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI._TBD.BloodBiobank",
        "label": "Blood BioBank",
        "short": "Blood biobank record of this patient",
        "definition": "Blood biobank record of this patient",
        "min": 0,
        "max": "*",
        "base": {
          "path": "HistoAI._TBD.BloodBiobank",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.BloodBiobank.id",
        "path": "HistoAI._TBD.BloodBiobank.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.BloodBiobank.extension",
        "path": "HistoAI._TBD.BloodBiobank.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.BloodBiobank.modifierExtension",
        "path": "HistoAI._TBD.BloodBiobank.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.BloodBiobank.bloodbiobankId",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI._TBD.BloodBiobank.bloodbiobankId",
        "label": "Blood Biobank ID",
        "short": "Unique identifier of the blood biobank record",
        "definition": "Unique identifier of the blood biobank record.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "HistoAI._TBD.BloodBiobank.bloodbiobankId",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Identifier"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "v2",
            "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
          },
          {
            "identity": "rim",
            "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]"
          },
          {
            "identity": "servd",
            "map": "Identifier"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.GCF",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI._TBD.GCF",
        "label": "GCF",
        "short": "Genomics Core facility",
        "definition": "The Genomics Core Facility offers Next Generation Sequencing services using Illumina sequencing equipment (NovaSeq6000, HiSeq2500, NextSeq550 and MiSeq).",
        "min": 0,
        "max": "*",
        "base": {
          "path": "HistoAI._TBD.GCF",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.GCF.id",
        "path": "HistoAI._TBD.GCF.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.GCF.extension",
        "path": "HistoAI._TBD.GCF.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.GCF.modifierExtension",
        "path": "HistoAI._TBD.GCF.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.GCF.gcfId",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "HistoAI._TBD.GCF.gcfId",
        "label": "GCF ID",
        "short": "Unique identifier of GCF record of this patient",
        "definition": "Unique identifier of GCF record of this patient.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "HistoAI._TBD.GCF.gcfId",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Identifier"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "v2",
            "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
          },
          {
            "identity": "rim",
            "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]"
          },
          {
            "identity": "servd",
            "map": "Identifier"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "HistoAI",
        "path": "HistoAI",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Element"
          }
        ]
      },
      {
        "id": "HistoAI.Patient",
        "path": "HistoAI.Patient",
        "label": "Patient",
        "short": "Individual patient in Histo-AI study",
        "definition": "Individual patient in Histo-AI study.",
        "alias": [
          "Individual"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.subjectId",
        "path": "HistoAI.Patient.subjectId",
        "label": "Subject ID",
        "short": "Anonymized id of this patient",
        "definition": "Unique Study record number. This ID will be computer generated and randomly assigned to each subject/record.  Can if needed be linked to hospital patient number or notary number through data manager with key. Do NOT use institution specific ID.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Identifier"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.gender",
        "path": "HistoAI.Patient.gender",
        "label": "Gender",
        "short": "male | female | other | unknown",
        "definition": "Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes.",
        "comment": "The gender might not match the biological sex as determined by genetics or the individual's preferred identification.",
        "requirements": "Needed for identification of the individual, in combination with (at least) name and birth date.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/code"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.ageAtPrimaryDiagnosis",
        "path": "HistoAI.Patient.ageAtPrimaryDiagnosis",
        "label": "Age at Primary Diagnosis",
        "short": "The age at first primary diagnosis for the individual",
        "definition": "The age at first primary diagnosis for the individual.",
        "comment": "At least an estimated year should be provided as a guess if the real DOB is unknown  There is a standard extension \"patient-birthTime\" available that should be used where Time is required (such as in maternity/infant care systems).",
        "requirements": "Age of the individual drives many clinical processes.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Age",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Age"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.ageAtDeath",
        "path": "HistoAI.Patient.ageAtDeath",
        "label": "Age at Death",
        "short": "The age at death for the individual, if applicable",
        "definition": "The age at death for the individual, if applicable.",
        "alias": [
          "Death Date",
          "Date of Death",
          "Deseased Date"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Age",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Age"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.causeOfDeath",
        "path": "HistoAI.Patient.causeOfDeath",
        "label": "Cause of Death",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/string"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.hospitalName",
        "path": "HistoAI.Patient.hospitalName",
        "label": "Hospital Name",
        "definition": "Nameofhospital,cityintheNetherlands",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "string",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/string"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology",
        "path": "HistoAI.Patient.Pathology",
        "label": "Pathology",
        "short": "Pathology report of this patient",
        "definition": "Pathology report of this patient, primarily from Palga (nation wide Dutch pathology record system)",
        "comment": "Indexed with T number",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.palgaId",
        "path": "HistoAI.Patient.Pathology.palgaId",
        "label": "Palga ID",
        "short": "Palga identifier",
        "definition": "Report name in Palga;\r\nTissue number in Tumor Registry;\r\nAn_number of Analysis in Lab Management System.",
        "comment": "Startswith 'T', 'C' or 'S', then two digits as the year, then dash `-`, followed by 5 digits. regex: /[TCS]\\d{2}-\\d{5}/\r\nFor the latter 5 digits:\r\nInternal tissue number usually starts with 00;\r\nExternal tissue number usually starts with 2x.",
        "alias": [
          "T number",
          "Tissue number",
          "Onderzoeker nummer",
          "An_number",
          "rapnaam"
        ],
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Identifier"
            ]
          }
        ],
        "patternIdentifier": {
          "use": "usual",
          "type": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/StructureDefinition/regex",
                "code": "[TCS]\\d{2}-\\d{5}"
              }
            ]
          }
        },
        "example": [
          {
            "label": "Tissue number",
            "valueIdentifier": {
              "use": "usual",
              "value": "T20-00123"
            }
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.externalPalgaId",
        "path": "HistoAI.Patient.Pathology.externalPalgaId",
        "label": "External Palga ID",
        "short": "External hospital tissue number",
        "definition": "Exteral hospital - Tissue number in Nation Wide Dutch Pathology Record system",
        "comment": "currently not in the DWH. ask Wouter or Dennis",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Identifier"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.sampleAcquisitionClass",
        "path": "HistoAI.Patient.Pathology.sampleAcquisitionClass",
        "label": "Tissue sample acquisition class",
        "short": "Tissue sample acquisition class",
        "definition": "Tissue sample acquisition class: (palga code)\r\nbiopsy = hollow needle and take small part of tissue;\r\nexision = part of an organ;\r\nresection  = whole organ removal",
        "comment": "05.01 Sample_Class in Data life cycle.\r\ndata source: [LMS].[TissueAcquisiton]",
        "alias": [
          "SampleClass"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/code"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.sampleRemovalType",
        "path": "HistoAI.Patient.Pathology.sampleRemovalType",
        "label": "Sample Removal Type",
        "short": "Type of tissue sample removal",
        "definition": "Type of tissue sample removal: primary / recurrence / metastasis, directly related with tissure number",
        "comment": "combination of: \r\n05.02 Sample_registration Sample_site_Prim\r\n05.03 Sample_registration Sample_site_Met",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/code"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.sampleRemovalIndicator",
        "path": "HistoAI.Patient.Pathology.sampleRemovalIndicator",
        "label": "Sample Removal Timing",
        "short": "Indicate tissure sample removal before or after treatment",
        "definition": "Indicate tissure sample removal timing: before or after treatment.",
        "comment": "05.04 Sample_removal_ind Timeofbiopsytaken(pre-oraftertreatment) in Data life cycle",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/code"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.sampleRemovalDate",
        "path": "HistoAI.Patient.Pathology.sampleRemovalDate",
        "label": "Sample Removal Date",
        "short": "Date of the tissue sample removal",
        "definition": "Date of the tissue sample removal",
        "alias": [
          "monsterdatum",
          "DissectionDate"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/dateTime"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.ffpeCassette",
        "path": "HistoAI.Patient.Pathology.ffpeCassette",
        "label": "FFPE Cassette",
        "short": "FFPE Cassette",
        "definition": "FFPE (Formalin-Fixed Paraffin-Embedded) Cassette available for this tissue",
        "comment": "Palga record, should match with specimen containers in LMS",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/code"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container",
        "path": "HistoAI.Patient.Pathology.Container",
        "label": "Container",
        "short": "Container of tissue specimen of this pathology analysis",
        "definition": "Container of tissue specimen of this pathology analysis.",
        "alias": [
          "Block",
          "Specimen"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.blockNumber",
        "path": "HistoAI.Patient.Pathology.Container.blockNumber",
        "label": "Sample Class",
        "short": "Identifier of the container block",
        "definition": "Identifier of the container block. Combination of sending number + cassette number.",
        "comment": "[LMS].[Specimen].[Number]+[LMS].[Container].[Number]\r\nDepending on enumerateType , can be alpha+number or roman+number: A3 or IV4",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Identifier"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.SampleSlide",
        "path": "HistoAI.Patient.Pathology.Container.SampleSlide",
        "label": "Sample Slide",
        "short": "The sample slide being digitized",
        "definition": "The sample slide being digitized.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.SampleSlide.staining",
        "path": "HistoAI.Patient.Pathology.Container.SampleSlide.staining",
        "label": "Staining",
        "short": "The staining type of the sample slide",
        "definition": "The staining type of the sample slide: HE, CD3, CD8, PDL1, etc.",
        "comment": "see LMS.Staing for the code",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/code"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide",
        "path": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide",
        "label": "Scanned Slide",
        "short": "Digitized slide of the tisse",
        "definition": "Digitized slide of the tisse with certain staining. \r\nMetadata to link with the WSI in image storage.",
        "comment": "This can be in another database specifically for AI research",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.imageId",
        "path": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.imageId",
        "label": "Image ID",
        "short": "Global identifier of the WSI",
        "definition": "Global identifier of the Whole Slide Image",
        "comment": "Generated UUID for each image.",
        "alias": [
          "WSI ID"
        ],
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "uuid",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/uuid"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.scannerModel",
        "path": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.scannerModel",
        "label": "Scanner Model",
        "short": "Model of the scanner",
        "definition": "Model of the scanner: 3DHistech, Aperio, Philips, etc.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/string"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.fileLocation",
        "path": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.fileLocation",
        "label": "File Location",
        "short": "Description of the file location in Image Storage",
        "definition": "Description of the file location Image Storage. Which image storge? Where is it physically located?",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/string"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.fileName",
        "path": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.fileName",
        "label": "File Name",
        "short": "The filename of the digitized slide",
        "definition": "The filename of the digitized slide",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/string"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.fileFormat",
        "path": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.fileFormat",
        "label": "File Format",
        "short": "Format of the image file",
        "definition": "Format of the image file: svs, tiff, etc.",
        "alias": [
          "File Extension",
          "File Type"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.fileSize",
        "path": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.fileSize",
        "label": "File Size",
        "short": "File size in byte",
        "definition": "File size in byte",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "integer",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/integer"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.symbolicLink",
        "path": "HistoAI.Patient.Pathology.Container.SampleSlide.ScannedSlide.symbolicLink",
        "label": "Symbolic Link",
        "short": "Link(s) to the file storage of this WSI",
        "definition": "Link(s) to the file storage of this Whole Slide Image",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "uri",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/uri"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.ImmunoHistoChemistry",
        "path": "HistoAI.Patient.Pathology.ImmunoHistoChemistry",
        "label": "ImmunoHistoChemistry",
        "short": "IHC bio-markers",
        "definition": "The laboratory method that uses antibodies to check for certain antigens (bio-markers) in a sample of tissue.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.ImmunoHistoChemistry.markerName",
        "path": "HistoAI.Patient.Pathology.ImmunoHistoChemistry.markerName",
        "label": "Marker Name",
        "short": "Name of the biomarker",
        "definition": "Name of the biomarker (antigens)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/code"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.ImmunoHistoChemistry.markerPercentage",
        "path": "HistoAI.Patient.Pathology.ImmunoHistoChemistry.markerPercentage",
        "label": "Marker Percentage",
        "short": "Percentage of positive tumor cells for this marker",
        "definition": "Percentage of positive tumor cells for this marker immunohistochemistry.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Ratio",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Ratio"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.tumorGrade",
        "path": "HistoAI.Patient.Pathology.tumorGrade",
        "label": "Tumor Grade",
        "short": "Grade of the tumour",
        "definition": "Grade of the tumour asassigned by the reporting tumour grading system in Palga.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/code"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.tumorHistologicalType",
        "path": "HistoAI.Patient.Pathology.tumorHistologicalType",
        "label": "Tumor Histological Type",
        "code": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/icd-o-3"
          }
        ],
        "short": "The code to represent the histology (morphology) of neoplasms",
        "definition": "The code to represent the histology (morphology) of neoplasms that is usually obtained from a pathology report, according to the International Classification of Diseases for Oncology, 3rdEdition(WHO ICD-O-3). RefertotheICD-O",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/code"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Pathology.PathologyReport",
        "path": "HistoAI.Patient.Pathology.PathologyReport",
        "label": "Pathology Report",
        "short": "Pathology report in Palga",
        "definition": "Pathology report (free text) in Palga",
        "comment": "Aardmateriaal, Klinischegegevens, Immuunhistochemie, Macroscopie, Microscropie, Conclusie",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Radiology",
        "path": "HistoAI.Patient.Radiology",
        "label": "Radiology",
        "short": "Radiology report of this patient",
        "definition": "Radiology report of this patient, primarily from PACS (Picture archiving and communication system)",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Genomics",
        "path": "HistoAI.Patient.Genomics",
        "label": "Genomics",
        "short": "Genomics report of this patient",
        "definition": "Genomics report of this patient, primarily from MolPa (molecular pathology database) and GCF (Genomics core facility)",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor",
        "path": "HistoAI.Patient.Tumor",
        "label": "Tumor",
        "short": "Tumor records of this patient",
        "definition": "Tumor records of this patient in Tumor Registry. Only primary tumor.",
        "comment": "Indexed with (patientId, tumorSys)",
        "alias": [
          "Tumour",
          "Cancer",
          "Disease"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.tumorId",
        "path": "HistoAI.Patient.Tumor.tumorId",
        "label": "Tumor ID",
        "short": "Global unique tumor identifier",
        "definition": "Uniquely generated selected primary cancer tumor number per patient at Scientific administration of the Netherlands Cancer Institute.",
        "comment": "Presented in the code book \"01.09 Tumour_ID\". Not in tumor registry. \r\nThis UUID will be generated during patient anonymisation process.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "uuid",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/uuid"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.tumorSys",
        "path": "HistoAI.Patient.Tumor.tumorSys",
        "label": "Tumor sys",
        "short": "Tumorsys code in Tumor Registry",
        "definition": "System variable for linking with all tumor-related tables in tumor registry.\r\nFirst primary tumor: Tumorsys=1\r\nSecond primary tumor: Tumorsys=2",
        "comment": "Tumor_sys is part of the PrimaryKey (together with with PatientId) for all Tumor Registry tables in dataware house. TRTU_Tumorsys_code",
        "alias": [
          "TRTU_Tumorsys_code"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "integer",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/integer"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.diagnosisDate",
        "path": "HistoAI.Patient.Tumor.diagnosisDate",
        "label": "Diagnosis Date",
        "short": "Date of primary diagnosis of the tumor",
        "definition": "Date of primary diagnosis of the tumor.",
        "comment": "If patient has had multiple cancer diagnoses, should be able to select the data only for the diagnosis thought to be associated with the metastatic disease.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/dateTime"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.diagnosisCode",
        "path": "HistoAI.Patient.Tumor.diagnosisCode",
        "label": "DiagnosisCode",
        "code": [
          {
            "system": "http://hl7.org/fhir/sid/icd-10"
          }
        ],
        "short": "Primary cancer type code ICD-10",
        "definition": "The code to represent the cancer type using the WHO ICD-10 code classification.",
        "comment": "The code to represent the cancer type using the WHO ICD-10 code classification.\r\n(https://icd.who.int/browse10/2019/en)",
        "alias": [
          "Cancer Type",
          "Primary Type"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/sid/icd-10"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.diagnosisDescription",
        "path": "HistoAI.Patient.Tumor.diagnosisDescription",
        "label": "Primary Site",
        "short": "Diagnosis Description",
        "definition": "The text term used to describe the primary site of disease, as categorized by the WorldHealthOrganization's (WHO) International Classification of Diseasesfor Oncology (ICD-O). This categorization groups cases into general categories.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/code"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.ClinicalStage",
        "path": "HistoAI.Patient.Tumor.ClinicalStage",
        "label": "Clinical Stage",
        "code": [
          {
            "system": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-clinical-stage-group"
          }
        ],
        "short": "AJCC clinical stage group",
        "definition": "AJCC clinical stage group, https://cancerstaging.org.",
        "alias": [
          "TNM clinical stage"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "TNMClinicalStageGroup",
            "map": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-clinical-stage-group"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.ClinicalStage.cT",
        "path": "HistoAI.Patient.Tumor.ClinicalStage.cT",
        "label": "cT",
        "code": [
          {
            "system": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-clinical-primary-tumor-category"
          }
        ],
        "short": "TNM Clinical Primary Tumor Category",
        "definition": "TNM Clinical Primary Tumor Category",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-clinical-primary-tumor-category"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.ClinicalStage.cN",
        "path": "HistoAI.Patient.Tumor.ClinicalStage.cN",
        "label": "cN",
        "code": [
          {
            "system": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-clinical-regional-nodes-category"
          }
        ],
        "short": "TNM Clinical Regional Nodes Category",
        "definition": "TNM Clinical Regional Nodes Category",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-clinical-regional-nodes-category"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.ClinicalStage.cM",
        "path": "HistoAI.Patient.Tumor.ClinicalStage.cM",
        "label": "cM",
        "code": [
          {
            "system": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-clinical-distant-metastases-category"
          }
        ],
        "short": "TNM Clinical Distant Metastases Category",
        "definition": "TNM Clinical Distant Metastases Category",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-clinical-distant-metastases-category"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.PathologicalStage",
        "path": "HistoAI.Patient.Tumor.PathologicalStage",
        "label": "Pathological Stage",
        "code": [
          {
            "system": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-pathological-stage-group"
          }
        ],
        "short": "AJCC pathological stage group",
        "definition": "AJCC pathological stage group, https://cancerstaging.org.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "TNMPathologicalStageGroup",
            "map": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-pathological-stage-group"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.PathologicalStage.pT",
        "path": "HistoAI.Patient.Tumor.PathologicalStage.pT",
        "label": "pT",
        "code": [
          {
            "system": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-pathological-distant-metastases-category"
          }
        ],
        "short": "TNM Pathological Primary Tumor Category",
        "definition": "TNM Pathological Primary Tumor Category",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-pathological-distant-metastases-category"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.PathologicalStage.pN",
        "path": "HistoAI.Patient.Tumor.PathologicalStage.pN",
        "label": "pN",
        "code": [
          {
            "system": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-pathological-distant-metastases-category"
          }
        ],
        "short": "TNM Pathological Regional Nodes Category",
        "definition": "TNM Pathological Regional Nodes Category",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-pathological-distant-metastases-category"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.PathologicalStage.pM",
        "path": "HistoAI.Patient.Tumor.PathologicalStage.pM",
        "label": "pM",
        "code": [
          {
            "system": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-pathological-distant-metastases-category"
          }
        ],
        "short": "TNM Pathological Distant Metastases Category",
        "definition": "TNM Pathological Distant Metastases Category",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-tnm-pathological-distant-metastases-category"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Localization",
        "path": "HistoAI.Patient.Tumor.Localization",
        "label": "Localization",
        "short": "Metastasis of this tumor",
        "definition": "Diagnosis of distant metastatic of this cancer of this patient.",
        "comment": "Derived from data in Tumorregistratie.",
        "alias": [
          "Localisatie",
          "Distant metastasis"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Localization.localizationDate",
        "path": "HistoAI.Patient.Tumor.Localization.localizationDate",
        "label": "Localization Date",
        "short": "Date of diagnosis of this localization",
        "definition": "Date of diagnosis of this localization.",
        "alias": [
          "Date_First_metastasis",
          "Date_Local_ipsilat_recurrence",
          "Date_Contralateral",
          "Date_Regional_recurrence"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/dateTime"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Localization.metastasisSiteCode",
        "path": "HistoAI.Patient.Tumor.Localization.metastasisSiteCode",
        "label": "Metastasis Site Code",
        "code": [
          {
            "system": "http://hl7.org/fhir/sid/icd-10"
          }
        ],
        "short": "ICD10 code of location of the metastasis of this tumor",
        "definition": "ICD10 code of location/site of the metastasis of this tumor of this patient.",
        "comment": "04.09 Follow_up Date_First_metastasis\r\nnot always in [TRLK_Lokalisatie_code], should lookup TRTU to refer to primary tumor\r\nref: DLC Date_Progessive_Disease_after_treatment_metast1",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/sid/icd-10"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Localization.metastasisSiteDescription",
        "path": "HistoAI.Patient.Tumor.Localization.metastasisSiteDescription",
        "label": "Metastasis Site Description",
        "short": "Location of the metastasis of this tumor",
        "definition": "Location/site of the metastasis of this tumor of this patient.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/string"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Localization.regionalRecurrence",
        "path": "HistoAI.Patient.Tumor.Localization.regionalRecurrence",
        "label": "Regional Recurrence",
        "short": "Is this regional recurrence?",
        "definition": "A regional recurrence denotes tumor involving the ipsilateral regional lymph nodes, usually ipsilateral axillary or supraclavicular, and less commonly infraclavicular and/or internal mammary.",
        "alias": [
          "Eventregionalrecurrence"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/boolean"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Localization.contralateralRecurrence",
        "path": "HistoAI.Patient.Tumor.Localization.contralateralRecurrence",
        "label": "Contralateral Recurrence",
        "short": "Is this metastasis contralateral?",
        "definition": "Is this metastasis contralateral? Event of contralateral breast cancer (as second primary)",
        "alias": [
          "Contralateral_recurrence"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/boolean"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Localization.localIpsilateralRecurrence",
        "path": "HistoAI.Patient.Tumor.Localization.localIpsilateralRecurrence",
        "label": "Local Ipsilateral Recurrence",
        "short": "Is this local and ipsilateral?",
        "definition": "Event of local ipsilateral recurrence; Loco-regional Recurrence is defined as a recurrence in the ipsilateral chest wall or  mastectomy scar, or ipsilateral supraclavicular, infraclavicular, axillary or internal mammary lymph nodes. LRR must occur after primary diagnosis period and before first distant metastatic diagnosis to be recorded.",
        "alias": [
          "Eventlocalipsilatrecurrence"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/boolean"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Localization.oligoMetastasis",
        "path": "HistoAI.Patient.Tumor.Localization.oligoMetastasis",
        "label": "Oligo Metastasis",
        "short": "Is this oligo metastasis?",
        "definition": "Oligo_metastasis (max 3): A type of metastasis in which cancer cells from the original (primary) tumor travel through the body and form a small number of new tumors (metastatic tumors) in one or two other parts of the body.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/boolean"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment",
        "path": "HistoAI.Patient.Tumor.Treatment",
        "label": "Therapy",
        "short": "Therapy record of this tumor",
        "definition": "Therapy record of this tumor in tumor registry, TRTH",
        "alias": [
          "Therapie",
          "Therapy"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.treatmentType",
        "path": "HistoAI.Patient.Tumor.Treatment.treatmentType",
        "label": "Treatment Type",
        "short": "Type of treatment",
        "definition": "Treatment code (single character):\r\n0 - no treatment\r\n1 - surgery\r\n2 - external radiotherapy\r\n3 - internal radiotherapy or radio-isotopes\r\n4 - chemotherapy\r\n5 - hormonal therapy\r\n6 - immunotherapy\r\n7 - rehabilitation therapy\r\n8 - other therapy\r\n9 - explorative surgery\r\nX - unknown (systemic) treatment",
        "comment": "Used in TR::TRTU_Behandeling_totaal_code, for example, \"1216\" means: surgery->external radiotherapy->surgery->immunotherapy.\r\nAlso used in TR::TRTH_Behandel_code.",
        "alias": [
          "Treatment code",
          "Behandel code"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/code"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.startDate",
        "path": "HistoAI.Patient.Tumor.Treatment.startDate",
        "label": "Start Date",
        "short": "Start date of the treatment",
        "definition": "Start date of the treatment or therapy.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/dateTime"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.stopDate",
        "path": "HistoAI.Patient.Tumor.Treatment.stopDate",
        "label": "Stop Date",
        "short": "Stop date of the treatment",
        "definition": "Stop date of the treatment or therapy.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/dateTime"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.treatmentIntent",
        "path": "HistoAI.Patient.Tumor.Treatment.treatmentIntent",
        "label": "Treatment Intent",
        "short": "The purpose of this treatment",
        "definition": "The purpose of this treatment.",
        "comment": "TODO: find source in DWH",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Narrative",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Narrative"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "TreatmentIntent",
            "map": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-treatment-intent"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.treatmentSetting",
        "path": "HistoAI.Patient.Tumor.Treatment.treatmentSetting",
        "short": "Treatment's purpose in relation to the primary treatment",
        "definition": "Indicate the treatment setting, which describes the treatment's purpose in relation to the primary treatment. (Reference: CDISC[NCItcode:C124308])",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/code"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.terminationReason",
        "path": "HistoAI.Patient.Tumor.Treatment.terminationReason",
        "label": "Termination Reason",
        "short": "Reason of termination with this treatment",
        "definition": "Reason of termination with this treatment, as indicatior of desease progression.",
        "comment": "DWH - find out discription of reason of each treatment/therapy stopped at the end date of treatment.\r\nIn the future there will be an extra feature added to Hix in which RECIST measurements (radiological assessment of CT scans)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Narrative",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Narrative"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "TreatmentTerminationReason",
            "map": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-treatment-termination-reason"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.treatmentInstituteIndicator",
        "path": "HistoAI.Patient.Tumor.Treatment.treatmentInstituteIndicator",
        "label": "Treatment Institute Indicator",
        "short": "Whether this treatment is primary or secondary",
        "definition": "Whether this treatment is primary (treated at AvL) or secondary (patient treated at somewhere else).",
        "comment": "DLC::09.09 Treatment Treatment_PS_ind",
        "alias": [
          "Treatment_PS_ind"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/boolean"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Medication",
        "path": "HistoAI.Patient.Tumor.Treatment.Medication",
        "label": "Medication",
        "short": "Medication statement",
        "definition": "Medication statement",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Medication.medicine",
        "path": "HistoAI.Patient.Tumor.Treatment.Medication.medicine",
        "label": "Medicine",
        "code": [
          {
            "system": "http://hl7.org/fhir/uv/ips/ValueSet/whoatc-uv-ips"
          }
        ],
        "short": "Medicine(s) used in this treatment",
        "definition": "Medicine(s) used in this treatment.\r\nWorld Health Organization Anatomical Therapeutic Chemical (ATC) classification system. \r\nNote: The currently implemented code system and the value set expansion contain only a set of example ATC codes, not the complete code system content.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/uv/ips/ValueSet/whoatc-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Medication.numberCourse",
        "path": "HistoAI.Patient.Tumor.Treatment.Medication.numberCourse",
        "label": "Number Course",
        "short": "Number of courses of medication given",
        "definition": "Number of courses of medication given.",
        "comment": "DWH::[TR].[TRTH_Aantal_kuren]",
        "alias": [
          "Aantal kuren"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "integer",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/integer"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Medication.dosage",
        "path": "HistoAI.Patient.Tumor.Treatment.Medication.dosage",
        "label": "Dosage",
        "short": "General dosage instruction information",
        "definition": "General dosage instruction information, including site, route, method etc.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Dosage",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Dosage"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "Dosage",
            "map": "http://hl7.org/fhir/StructureDefinition/Dosage"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Medication.medicalOutcome",
        "path": "HistoAI.Patient.Tumor.Treatment.Medication.medicalOutcome",
        "label": "Medical Outcome",
        "short": "Medical treatment outcome",
        "definition": "Medical treatment (chemo or immuno therapy) outcome.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Narrative",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Narrative"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Surgery",
        "path": "HistoAI.Patient.Tumor.Treatment.Surgery",
        "label": "Surgery",
        "short": "Surgical treatment",
        "definition": "Surgical treatment",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Surgery.procedure",
        "path": "HistoAI.Patient.Tumor.Treatment.Surgery.procedure",
        "label": "Procedure",
        "short": "Surgical procedure code",
        "definition": "Surgical procedure code",
        "comment": "TODO: find source of procedure code\r\nTR.TRTH_Therapie_code?",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/code"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Surgery.bodySite",
        "path": "HistoAI.Patient.Tumor.Treatment.Surgery.bodySite",
        "label": "Body Site",
        "short": "Surgery body site",
        "definition": "Surgery body site ICD-10 code",
        "comment": "related to Tumor ID (patient and tumorsys), should be the same as primarySite of the tumor (local and regional) or metastasisSite (distant metastasis)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/sid/icd-10"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Surgery.surgeryOutcome",
        "path": "HistoAI.Patient.Tumor.Treatment.Surgery.surgeryOutcome",
        "label": "Surgery Outcome",
        "short": "Response to surgery outcome",
        "definition": "Response to surgery outcome",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Narrative",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Narrative"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Radiotherapy",
        "path": "HistoAI.Patient.Tumor.Treatment.Radiotherapy",
        "label": "Radiotherapy",
        "code": [
          {
            "system": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-radiotherapy-course-summary"
          }
        ],
        "short": "Radiotherapy course summary",
        "definition": "Radiotherapy course summary",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.modality",
        "path": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.modality",
        "label": "Modality",
        "code": [
          {
            "system": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-radiotherapy-modality"
          }
        ],
        "short": "A modality of external beam or brachytherapy radiation procedures",
        "definition": "A modality of external beam or brachytherapy radiation procedures. e.g. Photons, Electrons",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-radiotherapy-modality"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.technique",
        "path": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.technique",
        "label": "Technique",
        "code": [
          {
            "system": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-radiotherapy-technique"
          }
        ],
        "short": "A technique of external beam or brachytherapy radiation procedures",
        "definition": "A technique of external beam or brachytherapy radiation procedures. e.g. VMAT, 3D",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-radiotherapy-technique"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.bodySite",
        "path": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.bodySite",
        "label": "Body Site",
        "code": [
          {
            "system": "http://hl7.org/fhir/sid/icd-10"
          }
        ],
        "short": "Anatomical site irradiated",
        "definition": "Anatomical site irradiated of radiotherapy.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/sid/icd-10"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.doseVolume",
        "path": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.doseVolume",
        "label": "Dose Volume",
        "code": [
          {
            "system": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-radiotherapy-dose-delivered-to-volume"
          }
        ],
        "short": "Dose parameters for one radiotherapy volume",
        "definition": "Dose parameters for one radiotherapy volume. e.g.\r\n  Prostate, 5000cGy;\r\n  SV, 3000 cGy;",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-radiotherapy-dose-delivered-to-volume"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.radiologicalOutcome",
        "path": "HistoAI.Patient.Tumor.Treatment.Radiotherapy.radiologicalOutcome",
        "label": "Radiological Outcome",
        "short": "Outcome of radiotherapy",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Narrative",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Narrative"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.PerformanceStatus",
        "path": "HistoAI.Patient.PerformanceStatus",
        "label": "Performance Status",
        "short": "WHO performace status",
        "definition": "WHO performance status as recorded on baseline. \r\n0 = Able to carry out all normal activity without restrictions; \r\n1 = Restricted in physically strenuous activity but ambulatory and able to carry out light work; \r\n2 =  Ambulatory and capable of all self-care but unable to carry out any work; up and more than 50% of waking hours; \r\n3 = Capable of only limited self-care; confined to bed or chair more than 50% of waking hours; \r\n4 =  Completely disabled; cannot carry on any self-care; totally confined to bed or chair.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.PerformanceStatus.observationDate",
        "path": "HistoAI.Patient.PerformanceStatus.observationDate",
        "label": "Observation Date",
        "short": "Date of the observation of performance status of this patient",
        "definition": "Date of the observation of performance status of this patient.",
        "comment": "This is not follow-up date",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/dateTime"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.PerformanceStatus.performanceScore",
        "path": "HistoAI.Patient.PerformanceStatus.performanceScore",
        "label": "Performance Score",
        "code": [
          {
            "system": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-ecog-performance-status"
          }
        ],
        "definition": "WHO performance status as recorded on baseline. \r\n0 = Able to carry out all normal activity without restrictions; \r\n1 = Restricted in physically strenuous activity but ambulatory and able to carry out light work; \r\n2 =  Ambulatory and capable of all self-care but unable to carry out any work; up and more than 50% of waking hours; \r\n3 = Capable of only limited self-care; confined to bed or chair more than 50% of waking hours; \r\n4 =  Completely disabled; cannot carry on any self-care; totally confined to bed or chair.",
        "alias": [
          "ECOG Performance Status",
          "Zubrod score",
          "WHO score"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-ecog-performance-status"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "ECOGPerformanceStatus",
            "map": "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-ecog-performance-status"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.PerformanceStatus.vitalStatus",
        "path": "HistoAI.Patient.PerformanceStatus.vitalStatus",
        "label": "Vital Status",
        "short": "Vital status at this follow-up.",
        "definition": "Indicator of vital status of follow-up:",
        "comment": "Death during follow-up can be derived from this.",
        "alias": [
          "disease_status_at_followup"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/vitalsigns"
            ]
          }
        ]
      },
      {
        "id": "HistoAI.Patient.ClinicalTrial",
        "path": "HistoAI.Patient.ClinicalTrial",
        "label": "Clinical Trial",
        "short": "Clinical trial studies this patient involved in",
        "definition": "Clinical trial studies this patient involved in. Study ID in clinical trial database Netherlands Cancer Instiute (TRION)",
        "alias": [
          "Study",
          "Trion"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "HistoAI.Patient.ClinicalTrial.trionId",
        "path": "HistoAI.Patient.ClinicalTrial.trionId",
        "label": "TRION ID",
        "short": "Unique identifier of clinical trial",
        "definition": "Unique identifier of clinical trial in database Netherlands Cancer Instiute (TRION), which this patient being involved.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "HistoAI._TBD",
        "path": "HistoAI._TBD",
        "label": "_TBD",
        "short": "To Be Determined",
        "definition": "To be determined - data attributes from various sources need to be FHIR compliant",
        "min": 0,
        "max": "0",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.Molpa",
        "path": "HistoAI._TBD.Molpa",
        "label": "MolPa",
        "short": "Molecular Pathology",
        "definition": "Molecular Pathology record of this patient",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.Molpa.molpaId",
        "path": "HistoAI._TBD.Molpa.molpaId",
        "label": "MOLPA ID",
        "short": "Unique identifier of MolPa record",
        "definition": "Unique identifier of MolPa record of this patient.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Identifier"
            ]
          }
        ]
      },
      {
        "id": "HistoAI._TBD.Cfmpb",
        "path": "HistoAI._TBD.Cfmpb",
        "label": "CFMPB",
        "short": "CFMPB record of this pationt",
        "definition": "Core Facility Molecular Pathology & Biobanking records of this patient.\r\n\r\nThe CFMPB registers, evaluates, coordinates, assists and facilitates all kind of research involving human biospecimens (e.g. serum, blood, ctDNA, FFPE and FF biopsies, DNA & RNA). All CFMPB activities are supported by our web application ‘the Application and Request Tool’ ART, an online tool for IRB registration & review and LIMS & database of NKI-AvL.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.Cfmpb.cfmpbId",
        "path": "HistoAI._TBD.Cfmpb.cfmpbId",
        "label": "CFMPB ID",
        "short": "Unique identifier of CFMPB record",
        "definition": "Unique identifier of Core Facility Molecular Pathology & Biobanking.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Identifier"
            ]
          }
        ]
      },
      {
        "id": "HistoAI._TBD.Cfmpb.QustionAnswers",
        "path": "HistoAI._TBD.Cfmpb.QustionAnswers",
        "label": "Qustion Answers",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.Cfmpb.QustionAnswers.question",
        "path": "HistoAI._TBD.Cfmpb.QustionAnswers.question",
        "label": "CFMPB Question",
        "short": "The question asked by pathologists",
        "definition": "The question asked by pathologists",
        "comment": "TODO: find out the source of [SQRLClin_Test].[CFDB].[ARTCBioPortal].question",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.Cfmpb.QustionAnswers.answer",
        "path": "HistoAI._TBD.Cfmpb.QustionAnswers.answer",
        "label": "CFMPB Answer",
        "short": "The answer to the question asked by pathologists",
        "definition": "The answer to the question asked by pathologists. One question may have multiple answers.",
        "comment": "TODO: find out the source of [SQRLClin_Test].[CFDB].[ARTCBioPortal].answer",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.BloodBiobank",
        "path": "HistoAI._TBD.BloodBiobank",
        "label": "Blood BioBank",
        "short": "Blood biobank record of this patient",
        "definition": "Blood biobank record of this patient",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.BloodBiobank.bloodbiobankId",
        "path": "HistoAI._TBD.BloodBiobank.bloodbiobankId",
        "label": "Blood Biobank ID",
        "short": "Unique identifier of the blood biobank record",
        "definition": "Unique identifier of the blood biobank record.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Identifier"
            ]
          }
        ]
      },
      {
        "id": "HistoAI._TBD.GCF",
        "path": "HistoAI._TBD.GCF",
        "label": "GCF",
        "short": "Genomics Core facility",
        "definition": "The Genomics Core Facility offers Next Generation Sequencing services using Illumina sequencing equipment (NovaSeq6000, HiSeq2500, NextSeq550 and MiSeq).",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "HistoAI._TBD.GCF.gcfId",
        "path": "HistoAI._TBD.GCF.gcfId",
        "label": "GCF ID",
        "short": "Unique identifier of GCF record of this patient",
        "definition": "Unique identifier of GCF record of this patient.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Identifier"
            ]
          }
        ]
      }
    ]
  }
}