FHIR © HL7.org  |  Server Home  |  XIG Home  |  XIG Stats  |  Server Source  |  FHIR  

FHIR IG Statistics: StructureDefinition/TWEncounter

Packagetw.gov.mohw.twcore
Resource TypeStructureDefinition
IdTWEncounter
FHIR VersionR4
Sourcehttps://twcore.mohw.gov.tw/ig/twcore/https://build.fhir.org/ig/MOHW-TWCoreIG/cctwFHIRterm/StructureDefinition-TWEncounter.html
URLhttps://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/TWEncounter
Version0.3.3
Statusactive
Date2025-05-16T05:59:52+00:00
NameTWEncounterModel
Title臺灣核心-就醫事件(TW Core Encounter) 之資料模型
Realmtw
Authoritynational
Description臺灣核心-就醫事件(TW Core Encounter) 之資料模型
Typehttps://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/TWEncounter
Kindlogical

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: StructureDefinition TWEncounter

NameFlagsCard.TypeDescription & Constraintsdoco
.. TWEncounter 0..*Base臺灣核心-就醫事件(TW Core Encounter) 之資料模型
... identifier 0..*Identifier就醫事件的識別碼。
... status 1..1code就醫現況。
... class 1..1Coding就醫的分類。
... serviceType 0..1CodeableConcept服務的特定型別。
... subject 0..1BackboneElement就醫的病人或實體集合(Group)。
.... patient 0..1Patient就醫的病人。
.... group 0..1Group就醫的實體集合。
... participant 0..*BackboneElement參與就醫的健康照護服務提供者。
... period 0..1Period就醫的開始和結束時間。
... reasonCode 0..*CodeableConcept發生此就醫事件的原因。
... dischargeDisposition 0..1CodeableConcept出院後的地點類別或種類。
... location 0..*BackboneElement病人曾去過的一個或多個地點。

doco Documentation for this format

Source

{
  "resourceType": "StructureDefinition",
  "id": "TWEncounter",
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "url": "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/TWEncounter",
  "version": "0.3.3",
  "name": "TWEncounterModel",
  "title": "臺灣核心-就醫事件(TW Core Encounter) 之資料模型",
  "status": "active",
  "date": "2025-05-16T05:59:52+00:00",
  "contact": [
    {
      "name": "衛生福利部",
      "telecom": [
        {
          "system": "url",
          "value": "https://www.mohw.gov.tw/"
        },
        {
          "system": "email",
          "value": "CCYU@mohw.gov.tw"
        }
      ]
    }
  ],
  "description": "臺灣核心-就醫事件(TW Core Encounter) 之資料模型",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "TWEncounter",
      "uri": "https://twcore.mohw.gov.tw/ig/twcore",
      "name": "TW Core IG"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/TWEncounter",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
  "derivation": "specialization",
  "snapshot": {
    "extension": [
      {
        "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
        "valueString": "4.0.1"
      }
    ],
    "element": [
      {
        "id": "TWEncounter",
        "path": "TWEncounter",
        "short": "臺灣核心-就醫事件(TW Core Encounter) 之資料模型",
        "definition": "臺灣核心-就醫事件(TW Core Encounter) 之資料模型",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Base",
          "min": 0,
          "max": "*"
        },
        "isModifier": false,
        "mapping": [
          {
            "identity": "TWEncounter",
            "map": "TWCoreEncounter"
          }
        ]
      },
      {
        "id": "TWEncounter.identifier",
        "path": "TWEncounter.identifier",
        "short": "就醫事件的識別碼。",
        "definition": "就醫事件的識別碼。",
        "min": 0,
        "max": "*",
        "base": {
          "path": "TWEncounter.identifier",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mapping": [
          {
            "identity": "TWEncounter",
            "map": "TWCoreEncounter.identifier"
          }
        ]
      },
      {
        "id": "TWEncounter.status",
        "path": "TWEncounter.status",
        "short": "就醫現況。",
        "definition": "就醫現況。",
        "min": 1,
        "max": "1",
        "base": {
          "path": "TWEncounter.status",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "mapping": [
          {
            "identity": "TWEncounter",
            "map": "TWCoreEncounter.status"
          }
        ]
      },
      {
        "id": "TWEncounter.class",
        "path": "TWEncounter.class",
        "short": "就醫的分類。",
        "definition": "就醫的分類。",
        "min": 1,
        "max": "1",
        "base": {
          "path": "TWEncounter.class",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Coding"
          }
        ],
        "mapping": [
          {
            "identity": "TWEncounter",
            "map": "TWCoreEncounter.class"
          }
        ]
      },
      {
        "id": "TWEncounter.serviceType",
        "path": "TWEncounter.serviceType",
        "short": "服務的特定型別。",
        "definition": "服務的特定型別。",
        "min": 0,
        "max": "1",
        "base": {
          "path": "TWEncounter.serviceType",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mapping": [
          {
            "identity": "TWEncounter",
            "map": "TWCoreEncounter.serviceType"
          }
        ]
      },
      {
        "id": "TWEncounter.subject",
        "path": "TWEncounter.subject",
        "short": "就醫的病人或實體集合(Group)。",
        "definition": "就醫的病人或實體集合(Group)。",
        "min": 0,
        "max": "1",
        "base": {
          "path": "TWEncounter.subject",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "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"
          }
        ]
      },
      {
        "id": "TWEncounter.subject.id",
        "path": "TWEncounter.subject.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"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "TWEncounter.subject.extension",
        "path": "TWEncounter.subject.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"
          }
        ],
        "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": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "TWEncounter.subject.modifierExtension",
        "path": "TWEncounter.subject.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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "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"
          }
        ]
      },
      {
        "id": "TWEncounter.subject.patient",
        "path": "TWEncounter.subject.patient",
        "short": "就醫的病人。",
        "definition": "就醫的病人。",
        "min": 0,
        "max": "1",
        "base": {
          "path": "TWEncounter.subject.patient",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Patient"
          }
        ],
        "mapping": [
          {
            "identity": "TWEncounter",
            "map": "TWCoreEncounter.subject.Reference(TW Core Patient)"
          }
        ]
      },
      {
        "id": "TWEncounter.subject.group",
        "path": "TWEncounter.subject.group",
        "short": "就醫的實體集合。",
        "definition": "就醫的實體集合。",
        "min": 0,
        "max": "1",
        "base": {
          "path": "TWEncounter.subject.group",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Group"
          }
        ],
        "mapping": [
          {
            "identity": "TWEncounter",
            "map": "TWCoreEncounter.subject.Reference(Group)"
          }
        ]
      },
      {
        "id": "TWEncounter.participant",
        "path": "TWEncounter.participant",
        "short": "參與就醫的健康照護服務提供者。",
        "definition": "參與就醫的健康照護服務提供者。",
        "min": 0,
        "max": "*",
        "base": {
          "path": "TWEncounter.participant",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "TWEncounter",
            "map": "TWCoreEncounter.participant"
          }
        ]
      },
      {
        "id": "TWEncounter.period",
        "path": "TWEncounter.period",
        "short": "就醫的開始和結束時間。",
        "definition": "就醫的開始和結束時間。",
        "min": 0,
        "max": "1",
        "base": {
          "path": "TWEncounter.period",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Period"
          }
        ],
        "mapping": [
          {
            "identity": "TWEncounter",
            "map": "TWCoreEncounter.period"
          }
        ]
      },
      {
        "id": "TWEncounter.reasonCode",
        "path": "TWEncounter.reasonCode",
        "short": "發生此就醫事件的原因。",
        "definition": "發生此就醫事件的原因。",
        "min": 0,
        "max": "*",
        "base": {
          "path": "TWEncounter.reasonCode",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mapping": [
          {
            "identity": "TWEncounter",
            "map": "TWCoreEncounter.reasonCode"
          }
        ]
      },
      {
        "id": "TWEncounter.dischargeDisposition",
        "path": "TWEncounter.dischargeDisposition",
        "short": "出院後的地點類別或種類。",
        "definition": "出院後的地點類別或種類。",
        "min": 0,
        "max": "1",
        "base": {
          "path": "TWEncounter.dischargeDisposition",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mapping": [
          {
            "identity": "TWEncounter",
            "map": "TWCoreEncounter.hospitalization.dischargeDisposition"
          }
        ]
      },
      {
        "id": "TWEncounter.location",
        "path": "TWEncounter.location",
        "short": "病人曾去過的一個或多個地點。",
        "definition": "病人曾去過的一個或多個地點。",
        "min": 0,
        "max": "*",
        "base": {
          "path": "TWEncounter.location",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "TWEncounter",
            "map": "TWCoreEncounter.location"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "TWEncounter",
        "path": "TWEncounter",
        "short": "臺灣核心-就醫事件(TW Core Encounter) 之資料模型",
        "definition": "臺灣核心-就醫事件(TW Core Encounter) 之資料模型",
        "mapping": [
          {
            "identity": "TWEncounter",
            "map": "TWCoreEncounter"
          }
        ]
      },
      {
        "id": "TWEncounter.identifier",
        "path": "TWEncounter.identifier",
        "short": "就醫事件的識別碼。",
        "definition": "就醫事件的識別碼。",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mapping": [
          {
            "identity": "TWEncounter",
            "map": "TWCoreEncounter.identifier"
          }
        ]
      },
      {
        "id": "TWEncounter.status",
        "path": "TWEncounter.status",
        "short": "就醫現況。",
        "definition": "就醫現況。",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "mapping": [
          {
            "identity": "TWEncounter",
            "map": "TWCoreEncounter.status"
          }
        ]
      },
      {
        "id": "TWEncounter.class",
        "path": "TWEncounter.class",
        "short": "就醫的分類。",
        "definition": "就醫的分類。",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "mapping": [
          {
            "identity": "TWEncounter",
            "map": "TWCoreEncounter.class"
          }
        ]
      },
      {
        "id": "TWEncounter.serviceType",
        "path": "TWEncounter.serviceType",
        "short": "服務的特定型別。",
        "definition": "服務的特定型別。",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mapping": [
          {
            "identity": "TWEncounter",
            "map": "TWCoreEncounter.serviceType"
          }
        ]
      },
      {
        "id": "TWEncounter.subject",
        "path": "TWEncounter.subject",
        "short": "就醫的病人或實體集合(Group)。",
        "definition": "就醫的病人或實體集合(Group)。",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "TWEncounter.subject.patient",
        "path": "TWEncounter.subject.patient",
        "short": "就醫的病人。",
        "definition": "就醫的病人。",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Patient"
          }
        ],
        "mapping": [
          {
            "identity": "TWEncounter",
            "map": "TWCoreEncounter.subject.Reference(TW Core Patient)"
          }
        ]
      },
      {
        "id": "TWEncounter.subject.group",
        "path": "TWEncounter.subject.group",
        "short": "就醫的實體集合。",
        "definition": "就醫的實體集合。",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Group"
          }
        ],
        "mapping": [
          {
            "identity": "TWEncounter",
            "map": "TWCoreEncounter.subject.Reference(Group)"
          }
        ]
      },
      {
        "id": "TWEncounter.participant",
        "path": "TWEncounter.participant",
        "short": "參與就醫的健康照護服務提供者。",
        "definition": "參與就醫的健康照護服務提供者。",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "TWEncounter",
            "map": "TWCoreEncounter.participant"
          }
        ]
      },
      {
        "id": "TWEncounter.period",
        "path": "TWEncounter.period",
        "short": "就醫的開始和結束時間。",
        "definition": "就醫的開始和結束時間。",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ],
        "mapping": [
          {
            "identity": "TWEncounter",
            "map": "TWCoreEncounter.period"
          }
        ]
      },
      {
        "id": "TWEncounter.reasonCode",
        "path": "TWEncounter.reasonCode",
        "short": "發生此就醫事件的原因。",
        "definition": "發生此就醫事件的原因。",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mapping": [
          {
            "identity": "TWEncounter",
            "map": "TWCoreEncounter.reasonCode"
          }
        ]
      },
      {
        "id": "TWEncounter.dischargeDisposition",
        "path": "TWEncounter.dischargeDisposition",
        "short": "出院後的地點類別或種類。",
        "definition": "出院後的地點類別或種類。",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mapping": [
          {
            "identity": "TWEncounter",
            "map": "TWCoreEncounter.hospitalization.dischargeDisposition"
          }
        ]
      },
      {
        "id": "TWEncounter.location",
        "path": "TWEncounter.location",
        "short": "病人曾去過的一個或多個地點。",
        "definition": "病人曾去過的一個或多個地點。",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "TWEncounter",
            "map": "TWCoreEncounter.location"
          }
        ]
      }
    ]
  }
}