PackagesCanonicalsLogsProblems
    Packages
    tw.gov.mohw.emr@0.1.0
    https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/DMS-Model
{
  "description": "用於描述出院病摘邏輯模型",
  "_filename": "StructureDefinition-DMS-Model.json",
  "package_name": "tw.gov.mohw.emr",
  "date": "2024-05-06T17:38:33+08:00",
  "derivation": "specialization",
  "publisher": "衛生福利部",
  "fhirVersion": "4.0.1",
  "name": "DMSModel",
  "mapping": [ {
    "uri": "hl7.org/fhir/r4",
    "name": "DMS",
    "identity": "DMS"
  }, {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  } ],
  "abstract": false,
  "type": "https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/DMSModel",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": "出院病摘-邏輯模型",
  "package_version": "0.1.0",
  "snapshot": {
    "element": [ {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "DMSModel",
      "min": 0,
      "definition": "Base definition for all elements in a resource.",
      "isModifier": false,
      "short": "Base for all elements",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Element"
      } ],
      "max": "*",
      "id": "DMSModel",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element"
      }
    }, {
      "path": "DMSModel.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "DMSModel.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "DMSModel.extension",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "DMSModel.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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "DMSModel.hospital",
      "min": 1,
      "definition": "醫事機構基本資料",
      "short": "醫事機構基本資料",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "1",
      "id": "DMSModel.hospital",
      "base": {
        "max": "1",
        "min": 1,
        "path": "DMSModel.hospital"
      }
    }, {
      "path": "DMSModel.hospital.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "DMSModel.hospital.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "DMSModel.hospital.extension",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "DMSModel.hospital.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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "DMSModel.hospital.modifierExtension",
      "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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "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).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "DMSModel.hospital.modifierExtension",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "path": "DMSModel.hospital.hospitalId",
      "min": 1,
      "definition": "醫事機構代碼",
      "short": "醫事機構代碼",
      "mapping": [ {
        "map": "醫事機構代碼:Organization.identifier.value 使用 Organization.identifier.type 識別類型",
        "identity": "DMS"
      } ],
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "max": "*",
      "id": "DMSModel.hospital.hospitalId",
      "base": {
        "max": "*",
        "min": 1,
        "path": "DMSModel.hospital.hospitalId"
      }
    }, {
      "path": "DMSModel.hospital.hospitalName",
      "min": 1,
      "definition": "醫事機構名稱",
      "short": "醫事機構名稱",
      "mapping": [ {
        "map": "醫事機構名稱:Organization.name",
        "identity": "DMS"
      } ],
      "type": [ {
        "code": "string",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/string" ]
      } ],
      "max": "1",
      "id": "DMSModel.hospital.hospitalName",
      "base": {
        "max": "1",
        "min": 1,
        "path": "DMSModel.hospital.hospitalName"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "DMSModel.patientInformation",
      "min": 1,
      "definition": "病人基本資料",
      "short": "病人基本資料",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "1",
      "id": "DMSModel.patientInformation",
      "base": {
        "max": "1",
        "min": 1,
        "path": "DMSModel.patientInformation"
      }
    }, {
      "path": "DMSModel.patientInformation.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "DMSModel.patientInformation.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "DMSModel.patientInformation.extension",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "DMSModel.patientInformation.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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "DMSModel.patientInformation.modifierExtension",
      "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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "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).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "DMSModel.patientInformation.modifierExtension",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "path": "DMSModel.patientInformation.idNumber",
      "min": 1,
      "definition": "身分證號",
      "short": "身分證號",
      "mapping": [ {
        "map": "身分證號:Patient.identifier.value 使用 Patient.identifier.type 識別類型",
        "identity": "DMS"
      } ],
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "max": "1",
      "id": "DMSModel.patientInformation.idNumber",
      "base": {
        "max": "1",
        "min": 1,
        "path": "DMSModel.patientInformation.idNumber"
      }
    }, {
      "path": "DMSModel.patientInformation.chartNo",
      "min": 1,
      "definition": "病歷號碼",
      "short": "病歷號碼",
      "mapping": [ {
        "map": "病歷號碼:Patient.identifier.value 使用 Patient.identifier.type 識別類型",
        "identity": "DMS"
      } ],
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "max": "1",
      "id": "DMSModel.patientInformation.chartNo",
      "base": {
        "max": "1",
        "min": 1,
        "path": "DMSModel.patientInformation.chartNo"
      }
    }, {
      "path": "DMSModel.patientInformation.name",
      "min": 1,
      "definition": "病人姓名",
      "short": "姓名",
      "mapping": [ {
        "map": "病人性名:Patient.name",
        "identity": "DMS"
      } ],
      "type": [ {
        "code": "HumanName",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/HumanName" ]
      } ],
      "max": "1",
      "id": "DMSModel.patientInformation.name",
      "base": {
        "max": "1",
        "min": 1,
        "path": "DMSModel.patientInformation.name"
      }
    }, {
      "path": "DMSModel.patientInformation.gender",
      "min": 1,
      "definition": "病人性別",
      "short": "性別",
      "mapping": [ {
        "map": "病人性別:Patient.gender",
        "identity": "DMS"
      } ],
      "type": [ {
        "code": "code",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/code" ]
      } ],
      "max": "1",
      "id": "DMSModel.patientInformation.gender",
      "base": {
        "max": "1",
        "min": 1,
        "path": "DMSModel.patientInformation.gender"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "DMSModel.hospitalizedInformation",
      "min": 1,
      "definition": "住院基本資料",
      "short": "住院基本資料",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "1",
      "id": "DMSModel.hospitalizedInformation",
      "base": {
        "max": "1",
        "min": 1,
        "path": "DMSModel.hospitalizedInformation"
      }
    }, {
      "path": "DMSModel.hospitalizedInformation.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "DMSModel.hospitalizedInformation.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "DMSModel.hospitalizedInformation.extension",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "DMSModel.hospitalizedInformation.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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "DMSModel.hospitalizedInformation.modifierExtension",
      "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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "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).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "DMSModel.hospitalizedInformation.modifierExtension",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "path": "DMSModel.hospitalizedInformation.department",
      "min": 1,
      "definition": "出院科別",
      "short": "出院科別",
      "mapping": [ {
        "map": "出院科別:Encounter.serviceType",
        "identity": "DMS"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/CodeableConcept" ]
      } ],
      "max": "1",
      "id": "DMSModel.hospitalizedInformation.department",
      "base": {
        "max": "1",
        "min": 1,
        "path": "DMSModel.hospitalizedInformation.department"
      }
    }, {
      "path": "DMSModel.hospitalizedInformation.bedNo",
      "min": 1,
      "definition": "出院床號",
      "short": "出院床號",
      "mapping": [ {
        "map": "出院床號:Location.identifier",
        "identity": "DMS"
      } ],
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "max": "1",
      "id": "DMSModel.hospitalizedInformation.bedNo",
      "base": {
        "max": "1",
        "min": 1,
        "path": "DMSModel.hospitalizedInformation.bedNo"
      }
    }, {
      "path": "DMSModel.hospitalizedInformation.dateofHospitalization",
      "min": 1,
      "definition": "住院日期",
      "short": "住院日期",
      "mapping": [ {
        "map": "住院日期:Encounter.period.star",
        "identity": "DMS"
      } ],
      "type": [ {
        "code": "dateTime",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/dateTime" ]
      } ],
      "max": "1",
      "id": "DMSModel.hospitalizedInformation.dateofHospitalization",
      "base": {
        "max": "1",
        "min": 1,
        "path": "DMSModel.hospitalizedInformation.dateofHospitalization"
      }
    }, {
      "path": "DMSModel.hospitalizedInformation.dischargeDate",
      "min": 1,
      "definition": "出院日期",
      "short": "出院日期",
      "mapping": [ {
        "map": "出院日期:Encounter.period.end",
        "identity": "DMS"
      } ],
      "type": [ {
        "code": "dateTime",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/dateTime" ]
      } ],
      "max": "1",
      "id": "DMSModel.hospitalizedInformation.dischargeDate",
      "base": {
        "max": "1",
        "min": 1,
        "path": "DMSModel.hospitalizedInformation.dischargeDate"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "DMSModel.referringHospital",
      "min": 0,
      "definition": "轉入醫事基本資料",
      "short": "轉入醫事基本資料",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "1",
      "id": "DMSModel.referringHospital",
      "base": {
        "max": "1",
        "min": 0,
        "path": "DMSModel.referringHospital"
      }
    }, {
      "path": "DMSModel.referringHospital.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "DMSModel.referringHospital.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "DMSModel.referringHospital.extension",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "DMSModel.referringHospital.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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "DMSModel.referringHospital.modifierExtension",
      "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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "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).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "DMSModel.referringHospital.modifierExtension",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "id": "DMSModel.referringHospital.referringHospitalId",
      "max": "1",
      "min": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "DMSModel.referringHospital.referringHospitalId"
      },
      "path": "DMSModel.referringHospital.referringHospitalId",
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "short": "轉入醫事機構代碼",
      "definition": "轉入醫事機構代碼"
    }, {
      "id": "DMSModel.referringHospital.referringHospitalName",
      "max": "1",
      "min": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "DMSModel.referringHospital.referringHospitalName"
      },
      "path": "DMSModel.referringHospital.referringHospitalName",
      "type": [ {
        "code": "string",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/string" ]
      } ],
      "short": "轉入醫事機構名稱",
      "definition": "轉入醫事機構名稱"
    }, {
      "id": "DMSModel.impression",
      "max": "*",
      "min": 1,
      "base": {
        "max": "*",
        "min": 1,
        "path": "DMSModel.impression"
      },
      "path": "DMSModel.impression",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "住院臆斷",
      "definition": "住院臆斷"
    }, {
      "id": "DMSModel.dischargeDiagnosis",
      "max": "*",
      "min": 1,
      "base": {
        "max": "*",
        "min": 1,
        "path": "DMSModel.dischargeDiagnosis"
      },
      "path": "DMSModel.dischargeDiagnosis",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "出院診斷",
      "definition": "出院診斷"
    }, {
      "id": "DMSModel.cancerStaging",
      "max": "1",
      "min": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "DMSModel.cancerStaging"
      },
      "path": "DMSModel.cancerStaging",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "癌症期別",
      "definition": "癌症期別"
    }, {
      "id": "DMSModel.chiefComplaint",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "DMSModel.chiefComplaint"
      },
      "path": "DMSModel.chiefComplaint",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "主訴",
      "definition": "主訴"
    }, {
      "id": "DMSModel.presentIllness",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "DMSModel.presentIllness"
      },
      "path": "DMSModel.presentIllness",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "病史",
      "definition": "病史"
    }, {
      "id": "DMSModel.familyTree",
      "max": "*",
      "min": 0,
      "base": {
        "max": "*",
        "min": 0,
        "path": "DMSModel.familyTree"
      },
      "path": "DMSModel.familyTree",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "家族圖譜",
      "definition": "家族圖譜"
    }, {
      "id": "DMSModel.physicalExamination",
      "max": "*",
      "min": 0,
      "base": {
        "max": "*",
        "min": 0,
        "path": "DMSModel.physicalExamination"
      },
      "path": "DMSModel.physicalExamination",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "理學檢查發現",
      "definition": "理學檢查發現"
    }, {
      "id": "DMSModel.laboratoryData",
      "max": "*",
      "min": 0,
      "base": {
        "max": "*",
        "min": 0,
        "path": "DMSModel.laboratoryData"
      },
      "path": "DMSModel.laboratoryData",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "檢驗",
      "definition": "檢驗"
    }, {
      "id": "DMSModel.specificExamination",
      "max": "*",
      "min": 0,
      "base": {
        "max": "*",
        "min": 0,
        "path": "DMSModel.specificExamination"
      },
      "path": "DMSModel.specificExamination",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "特殊檢查",
      "definition": "特殊檢查"
    }, {
      "id": "DMSModel.imagingStudy",
      "max": "*",
      "min": 0,
      "base": {
        "max": "*",
        "min": 0,
        "path": "DMSModel.imagingStudy"
      },
      "path": "DMSModel.imagingStudy",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "醫療影像檢查",
      "definition": "醫療影像檢查"
    }, {
      "id": "DMSModel.pathologyReport",
      "max": "*",
      "min": 0,
      "base": {
        "max": "*",
        "min": 0,
        "path": "DMSModel.pathologyReport"
      },
      "path": "DMSModel.pathologyReport",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "病理報告",
      "definition": "病理報告"
    }, {
      "id": "DMSModel.surgicalMethodAndFinding",
      "max": "*",
      "min": 0,
      "base": {
        "max": "*",
        "min": 0,
        "path": "DMSModel.surgicalMethodAndFinding"
      },
      "path": "DMSModel.surgicalMethodAndFinding",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "手術日期及方法",
      "definition": "手術日期及方法"
    }, {
      "id": "DMSModel.hospitalCourse",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "DMSModel.hospitalCourse"
      },
      "path": "DMSModel.hospitalCourse",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "住院治療經過",
      "definition": "住院治療經過"
    }, {
      "id": "DMSModel.comorbiditesAndOrComlications",
      "max": "*",
      "min": 0,
      "base": {
        "max": "*",
        "min": 0,
        "path": "DMSModel.comorbiditesAndOrComlications"
      },
      "path": "DMSModel.comorbiditesAndOrComlications",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "合併症與併發症",
      "definition": "合併症與併發症"
    }, {
      "id": "DMSModel.instructionsOnDischarge",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "DMSModel.instructionsOnDischarge"
      },
      "path": "DMSModel.instructionsOnDischarge",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "出院指示",
      "definition": "出院指示"
    }, {
      "id": "DMSModel.cischargeStatus",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "DMSModel.cischargeStatus"
      },
      "path": "DMSModel.cischargeStatus",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "出院狀況",
      "definition": "出院狀況"
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "DMSModel.receivingHospital",
      "min": 0,
      "definition": "轉出醫事機構基本資料",
      "short": "轉出醫事機構基本資料",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "1",
      "id": "DMSModel.receivingHospital",
      "base": {
        "max": "1",
        "min": 0,
        "path": "DMSModel.receivingHospital"
      }
    }, {
      "path": "DMSModel.receivingHospital.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "DMSModel.receivingHospital.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "DMSModel.receivingHospital.extension",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "DMSModel.receivingHospital.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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "DMSModel.receivingHospital.modifierExtension",
      "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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "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).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "DMSModel.receivingHospital.modifierExtension",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "id": "DMSModel.receivingHospital.receivingHospitalId",
      "max": "1",
      "min": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "DMSModel.receivingHospital.receivingHospitalId"
      },
      "path": "DMSModel.receivingHospital.receivingHospitalId",
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "short": "轉出醫事機構代碼",
      "definition": "轉出醫事機構代碼"
    }, {
      "id": "DMSModel.receivingHospital.receivingHospitalName",
      "max": "1",
      "min": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "DMSModel.receivingHospital.receivingHospitalName"
      },
      "path": "DMSModel.receivingHospital.receivingHospitalName",
      "type": [ {
        "code": "string",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/string" ]
      } ],
      "short": "轉出醫事機構名稱",
      "definition": "轉出醫事機構名稱"
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "DMSModel.physician",
      "min": 1,
      "definition": "醫師基本資料",
      "short": "醫師基本資料",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "*",
      "id": "DMSModel.physician",
      "base": {
        "max": "*",
        "min": 1,
        "path": "DMSModel.physician"
      }
    }, {
      "path": "DMSModel.physician.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "DMSModel.physician.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "DMSModel.physician.extension",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "DMSModel.physician.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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "DMSModel.physician.modifierExtension",
      "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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "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).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "DMSModel.physician.modifierExtension",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "id": "DMSModel.physician.physicianName",
      "max": "*",
      "min": 1,
      "base": {
        "max": "*",
        "min": 1,
        "path": "DMSModel.physician.physicianName"
      },
      "path": "DMSModel.physician.physicianName",
      "type": [ {
        "code": "HumanName",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/HumanName" ]
      } ],
      "short": "主治醫師姓名",
      "definition": "主治醫師姓名"
    } ]
  },
  "status": "draft",
  "id": "469cd44e-131b-474b-9e5b-299fa36fe6c8",
  "kind": "logical",
  "url": "https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/DMS-Model",
  "version": "0.1.0",
  "differential": {
    "element": [ {
      "id": "DMSModel",
      "max": "*",
      "min": 0,
      "path": "DMSModel",
      "type": [ {
        "code": "Element"
      } ]
    }, {
      "id": "DMSModel.hospital",
      "max": "1",
      "min": 1,
      "path": "DMSModel.hospital",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "醫事機構基本資料",
      "definition": "醫事機構基本資料"
    }, {
      "id": "DMSModel.hospital.hospitalId",
      "max": "*",
      "min": 1,
      "path": "DMSModel.hospital.hospitalId",
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "short": "醫事機構代碼",
      "mapping": [ {
        "map": "醫事機構代碼:Organization.identifier.value 使用 Organization.identifier.type 識別類型",
        "identity": "DMS"
      } ],
      "definition": "醫事機構代碼"
    }, {
      "id": "DMSModel.hospital.hospitalName",
      "max": "1",
      "min": 1,
      "path": "DMSModel.hospital.hospitalName",
      "type": [ {
        "code": "string",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/string" ]
      } ],
      "short": "醫事機構名稱",
      "mapping": [ {
        "map": "醫事機構名稱:Organization.name",
        "identity": "DMS"
      } ],
      "definition": "醫事機構名稱"
    }, {
      "id": "DMSModel.patientInformation",
      "max": "1",
      "min": 1,
      "path": "DMSModel.patientInformation",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "病人基本資料",
      "definition": "病人基本資料"
    }, {
      "id": "DMSModel.patientInformation.idNumber",
      "max": "1",
      "min": 1,
      "path": "DMSModel.patientInformation.idNumber",
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "short": "身分證號",
      "mapping": [ {
        "map": "身分證號:Patient.identifier.value 使用 Patient.identifier.type 識別類型",
        "identity": "DMS"
      } ],
      "definition": "身分證號"
    }, {
      "id": "DMSModel.patientInformation.chartNo",
      "max": "1",
      "min": 1,
      "path": "DMSModel.patientInformation.chartNo",
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "short": "病歷號碼",
      "mapping": [ {
        "map": "病歷號碼:Patient.identifier.value 使用 Patient.identifier.type 識別類型",
        "identity": "DMS"
      } ],
      "definition": "病歷號碼"
    }, {
      "id": "DMSModel.patientInformation.name",
      "max": "1",
      "min": 1,
      "path": "DMSModel.patientInformation.name",
      "type": [ {
        "code": "HumanName",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/HumanName" ]
      } ],
      "short": "姓名",
      "mapping": [ {
        "map": "病人性名:Patient.name",
        "identity": "DMS"
      } ],
      "definition": "病人姓名"
    }, {
      "id": "DMSModel.patientInformation.gender",
      "max": "1",
      "min": 1,
      "path": "DMSModel.patientInformation.gender",
      "type": [ {
        "code": "code",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/code" ]
      } ],
      "short": "性別",
      "mapping": [ {
        "map": "病人性別:Patient.gender",
        "identity": "DMS"
      } ],
      "definition": "病人性別"
    }, {
      "id": "DMSModel.hospitalizedInformation",
      "max": "1",
      "min": 1,
      "path": "DMSModel.hospitalizedInformation",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "住院基本資料",
      "definition": "住院基本資料"
    }, {
      "id": "DMSModel.hospitalizedInformation.department",
      "max": "1",
      "min": 1,
      "path": "DMSModel.hospitalizedInformation.department",
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/CodeableConcept" ]
      } ],
      "short": "出院科別",
      "mapping": [ {
        "map": "出院科別:Encounter.serviceType",
        "identity": "DMS"
      } ],
      "definition": "出院科別"
    }, {
      "id": "DMSModel.hospitalizedInformation.bedNo",
      "max": "1",
      "min": 1,
      "path": "DMSModel.hospitalizedInformation.bedNo",
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "short": "出院床號",
      "mapping": [ {
        "map": "出院床號:Location.identifier",
        "identity": "DMS"
      } ],
      "definition": "出院床號"
    }, {
      "id": "DMSModel.hospitalizedInformation.dateofHospitalization",
      "max": "1",
      "min": 1,
      "path": "DMSModel.hospitalizedInformation.dateofHospitalization",
      "type": [ {
        "code": "dateTime",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/dateTime" ]
      } ],
      "short": "住院日期",
      "mapping": [ {
        "map": "住院日期:Encounter.period.star",
        "identity": "DMS"
      } ],
      "definition": "住院日期"
    }, {
      "id": "DMSModel.hospitalizedInformation.dischargeDate",
      "max": "1",
      "min": 1,
      "path": "DMSModel.hospitalizedInformation.dischargeDate",
      "type": [ {
        "code": "dateTime",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/dateTime" ]
      } ],
      "short": "出院日期",
      "mapping": [ {
        "map": "出院日期:Encounter.period.end",
        "identity": "DMS"
      } ],
      "definition": "出院日期"
    }, {
      "id": "DMSModel.referringHospital",
      "max": "1",
      "min": 0,
      "path": "DMSModel.referringHospital",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "轉入醫事基本資料",
      "definition": "轉入醫事基本資料"
    }, {
      "id": "DMSModel.referringHospital.referringHospitalId",
      "max": "1",
      "min": 0,
      "path": "DMSModel.referringHospital.referringHospitalId",
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "short": "轉入醫事機構代碼",
      "definition": "轉入醫事機構代碼"
    }, {
      "id": "DMSModel.referringHospital.referringHospitalName",
      "max": "1",
      "min": 0,
      "path": "DMSModel.referringHospital.referringHospitalName",
      "type": [ {
        "code": "string",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/string" ]
      } ],
      "short": "轉入醫事機構名稱",
      "definition": "轉入醫事機構名稱"
    }, {
      "id": "DMSModel.impression",
      "max": "*",
      "min": 1,
      "path": "DMSModel.impression",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "住院臆斷",
      "definition": "住院臆斷"
    }, {
      "id": "DMSModel.dischargeDiagnosis",
      "max": "*",
      "min": 1,
      "path": "DMSModel.dischargeDiagnosis",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "出院診斷",
      "definition": "出院診斷"
    }, {
      "id": "DMSModel.cancerStaging",
      "max": "1",
      "min": 0,
      "path": "DMSModel.cancerStaging",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "癌症期別",
      "definition": "癌症期別"
    }, {
      "id": "DMSModel.chiefComplaint",
      "max": "1",
      "min": 1,
      "path": "DMSModel.chiefComplaint",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "主訴",
      "definition": "主訴"
    }, {
      "id": "DMSModel.presentIllness",
      "max": "1",
      "min": 1,
      "path": "DMSModel.presentIllness",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "病史",
      "definition": "病史"
    }, {
      "id": "DMSModel.familyTree",
      "max": "*",
      "min": 0,
      "path": "DMSModel.familyTree",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "家族圖譜",
      "definition": "家族圖譜"
    }, {
      "id": "DMSModel.physicalExamination",
      "max": "*",
      "min": 0,
      "path": "DMSModel.physicalExamination",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "理學檢查發現",
      "definition": "理學檢查發現"
    }, {
      "id": "DMSModel.laboratoryData",
      "max": "*",
      "min": 0,
      "path": "DMSModel.laboratoryData",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "檢驗",
      "definition": "檢驗"
    }, {
      "id": "DMSModel.specificExamination",
      "max": "*",
      "min": 0,
      "path": "DMSModel.specificExamination",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "特殊檢查",
      "definition": "特殊檢查"
    }, {
      "id": "DMSModel.imagingStudy",
      "max": "*",
      "min": 0,
      "path": "DMSModel.imagingStudy",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "醫療影像檢查",
      "definition": "醫療影像檢查"
    }, {
      "id": "DMSModel.pathologyReport",
      "max": "*",
      "min": 0,
      "path": "DMSModel.pathologyReport",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "病理報告",
      "definition": "病理報告"
    }, {
      "id": "DMSModel.surgicalMethodAndFinding",
      "max": "*",
      "min": 0,
      "path": "DMSModel.surgicalMethodAndFinding",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "手術日期及方法",
      "definition": "手術日期及方法"
    }, {
      "id": "DMSModel.hospitalCourse",
      "max": "1",
      "min": 1,
      "path": "DMSModel.hospitalCourse",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "住院治療經過",
      "definition": "住院治療經過"
    }, {
      "id": "DMSModel.comorbiditesAndOrComlications",
      "max": "*",
      "min": 0,
      "path": "DMSModel.comorbiditesAndOrComlications",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "合併症與併發症",
      "definition": "合併症與併發症"
    }, {
      "id": "DMSModel.instructionsOnDischarge",
      "max": "1",
      "min": 1,
      "path": "DMSModel.instructionsOnDischarge",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "出院指示",
      "definition": "出院指示"
    }, {
      "id": "DMSModel.cischargeStatus",
      "max": "1",
      "min": 1,
      "path": "DMSModel.cischargeStatus",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "出院狀況",
      "definition": "出院狀況"
    }, {
      "id": "DMSModel.receivingHospital",
      "max": "1",
      "min": 0,
      "path": "DMSModel.receivingHospital",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "轉出醫事機構基本資料",
      "definition": "轉出醫事機構基本資料"
    }, {
      "id": "DMSModel.receivingHospital.receivingHospitalId",
      "max": "1",
      "min": 0,
      "path": "DMSModel.receivingHospital.receivingHospitalId",
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/Identifier" ]
      } ],
      "short": "轉出醫事機構代碼",
      "definition": "轉出醫事機構代碼"
    }, {
      "id": "DMSModel.receivingHospital.receivingHospitalName",
      "max": "1",
      "min": 0,
      "path": "DMSModel.receivingHospital.receivingHospitalName",
      "type": [ {
        "code": "string",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/string" ]
      } ],
      "short": "轉出醫事機構名稱",
      "definition": "轉出醫事機構名稱"
    }, {
      "id": "DMSModel.physician",
      "max": "*",
      "min": 1,
      "path": "DMSModel.physician",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "醫師基本資料",
      "definition": "醫師基本資料"
    }, {
      "id": "DMSModel.physician.physicianName",
      "max": "*",
      "min": 1,
      "path": "DMSModel.physician.physicianName",
      "type": [ {
        "code": "HumanName",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/HumanName" ]
      } ],
      "short": "主治醫師姓名",
      "definition": "主治醫師姓名"
    } ]
  },
  "contact": [ {
    "telecom": [ {
      "value": "https://www.mohw.gov.tw/mp-1.html",
      "system": "url"
    } ]
  } ],
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Element"
}