{
  "resourceType": "StructureDefinition",
  "id": "ObservationDepression-adultcheck",
  "url": "https://tstifhir.azurehealthcareapis.com/StructureDefinition/ObservationDepression-adultcheck",
  "version": "0.1.0",
  "name": "ObservationDepressionAdultCheck",
  "title": "Observation Depression - AdultCheck",
  "status": "active",
  "date": "2023-07-24T14:42:36+00:00",
  "description": "此Observation Depression AdultCheck Profile說明成人預防保健憂鬱檢測資料",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "sct-concept",
      "uri": "http://snomed.info/conceptdomain",
      "name": "SNOMED CT Concept Domain Binding"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "sct-attr",
      "uri": "http://snomed.org/attributebinding",
      "name": "SNOMED CT Attribute Binding"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.identifier",
        "path": "Observation.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type.coding.code"
            },
            {
              "type": "value",
              "path": "type.coding.system"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.identifier:medicalrecordNumber",
        "path": "Observation.identifier",
        "sliceName": "medicalrecordNumber",
        "short": "適用該就醫紀錄之就診序號",
        "definition": "適用於該就醫紀錄之就診序號",
        "requirements": "病人幾乎總是被指定一個特定的數值型的唯一識別碼（identifier）",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.identifier:medicalrecordNumber.id",
        "path": "Observation.identifier.id",
        "short": "唯一可識別ID，以供資料項目間相互參照。",
        "definition": "resource中資料項目的唯一ID（用於內部參照）。這可以是任何不含空格的字串。"
      },
      {
        "id": "Observation.identifier:medicalrecordNumber.extension",
        "path": "Observation.identifier.extension",
        "short": "擴充的資料項目",
        "definition": "擴充的資料項目"
      },
      {
        "id": "Observation.identifier:medicalrecordNumber.use",
        "path": "Observation.identifier.use",
        "short": "usual ｜ official ｜ temp ｜ secondary ｜ old （如果知道）",
        "definition": "這個唯一識別碼（identifier）的用途",
        "comment": "應用程式可以假定一個識別碼是永久的，除非它明確說它是暫時的。",
        "requirements": "允許從一組識別碼中為特定的使用情境選擇適當的識別碼",
        "patternCode": "official",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1",
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "IdentifierUse"
            }
          ],
          "description": "如果知道，請說明此識別碼的目的；應填入[IdentifierUse](http://hl7.org/fhir/R4/valueset-identifier-use.html)代碼表中的其中一個代碼。"
        }
      },
      {
        "id": "Observation.identifier:medicalrecordNumber.type",
        "path": "Observation.identifier.type",
        "short": "身份識別碼（identifier）的型別說明",
        "definition": "識別碼的代碼型別，用於決定特定目適用的識別碼。",
        "comment": "這個資料項目只涉及識別碼的一般類別。它 **必須沒有（SHALL NOT）** 被用於與Identifier.system 1..1對應的代碼。一些識別碼可能由於常見的用法而屬於多個類別。在系統是已知的情況下，型別是不必要的，因為型別總是系統定義的一部分。然而，系統經常需要處理系統不為人知的識別碼。型別和系統之間不是1:1的關係，因為許多不同的系統有相同的型別。",
        "requirements": "允許使用者在不知道識別碼系統的情況下利用識別碼",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"
            ]
          }
        ],
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "https://twcore.mohw.gov.tw/ig/twcore/ValueSet/identifier-type-tw",
          "description": "識別碼的型別，用於決定特定目的所適用的識別碼；應填入[臺灣識別碼類型值集](https://twcore.mohw.gov.tw/ig/twcore/ValueSet-identifier-type-tw.html)代碼表中適合的代碼，確定無適合的代碼才可以使用其他代碼中的代碼來表示。"
        }
      },
      {
        "id": "Observation.identifier:medicalrecordNumber.type.id",
        "path": "Observation.identifier.type.id",
        "definition": "resource中資料項目的唯一ID（用於內部參照），這可以是任何不含空格的字串。"
      },
      {
        "id": "Observation.identifier:medicalrecordNumber.type.coding.system",
        "path": "Observation.identifier.type.coding.system",
        "min": 1,
        "patternUri": "http://terminology.hl7.org/CodeSystem/v2-0203"
      },
      {
        "id": "Observation.identifier:medicalrecordNumber.type.coding.code",
        "path": "Observation.identifier.type.coding.code",
        "min": 1,
        "patternCode": "MRT"
      },
      {
        "id": "Observation.identifier:medicalrecordNumber.system",
        "path": "Observation.identifier.system",
        "short": "就診序號發號者/機構/單位",
        "definition": "建立值的命名空間－即一個描述一組值的唯一URL",
        "comment": "Identifier.system總是區分大小寫",
        "requirements": "有許多識別碼的集合。為了進行兩個識別碼的對應，我們需要知道我們處理的是哪一組。系統指明了一個特定的唯一識別碼集。",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.identifier:medicalrecordNumber.value",
        "path": "Observation.identifier.value",
        "short": "唯一值。\r\n例如：就診序號為0123456789",
        "definition": "識別碼中通常與使用者有關的部分，在系統情境內是唯一的。",
        "comment": "如果此值是一個完整的URI，那麼此系統 **必須（SHALL）** 是urn:ietf:rfc:3986。此值的主要目的是為了可運算的對應。因此，為了比較的目的，它可能會被正規化（例如：去除不重要的空白、破折號等）。一個為人顯示的格式化的值可以使用[Rendered Value](http://hl7.org/fhir/R4/extension-rendered-value.html)擴充來傳達。除非對Identifier.system的了解使處理者確信不區分大小寫的處理是安全的，否則Identifier.value應被視為區分大小寫。",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.identifier:medicalrecordNumber.period",
        "path": "Observation.identifier.period",
        "short": "此身份識別碼（identifier）的使用效期",
        "definition": "識別碼有效／曾經有效使用的時段或期間"
      },
      {
        "id": "Observation.identifier:medicalrecordNumber.assigner",
        "path": "Observation.identifier.assigner",
        "short": "簽發identifier的機構（可以只是文字表述）",
        "definition": "簽發／管理識別碼的機構",
        "comment": "Identifier.assigner可以省略.reference資料項目，只包含一個.display資料項目，反映指定機構的名稱或其他文字表述資訊。",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-hosp-twcore"
            ]
          }
        ]
      },
      {
        "id": "Observation.status",
        "path": "Observation.status",
        "patternCode": "preliminary"
      },
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ObservationCategory"
            }
          ],
          "strength": "preferred",
          "description": "高層次的檢驗檢查分類；鼓勵使用[ObservationCategoryCodes](http://hl7.org/fhir/R4/valueset-observation-category.html)代碼表中的代碼， 但不強制一定要使用此代碼表，你也可使用其他代碼表的代碼或單純以文字表示。",
          "valueSet": "http://hl7.org/fhir/ValueSet/observation-category"
        }
      },
      {
        "id": "Observation.category.coding",
        "path": "Observation.category.coding",
        "short": "由專門術語系統（terminology system）定義的代碼",
        "definition": "由專門術語系統（terminology system）所定義之代碼的參照。",
        "comment": "代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles ）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。",
        "requirements": "允許使用者在不知道識別碼系統的情況下利用識別碼"
      },
      {
        "id": "Observation.category.coding.system",
        "path": "Observation.category.coding.system",
        "patternUri": "http://terminology.hl7.org/CodeSystem/observation-category"
      },
      {
        "id": "Observation.category.coding.code",
        "path": "Observation.category.coding.code",
        "patternCode": "exam"
      },
      {
        "id": "Observation.category.coding.display",
        "path": "Observation.category.coding.display",
        "patternString": "Exam"
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "short": "憂鬱檢測",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "89210-9",
              "system": "http://loinc.org",
              "display": "Beck Depression Inventory II [BDI]"
            }
          ]
        }
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://tstifhir.azurehealthcareapis.com/StructureDefinition/Patient-adultcheck"
            ]
          }
        ]
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Observation.effective[x]:effectiveDateTime",
        "path": "Observation.effective[x]",
        "sliceName": "effectiveDateTime",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "short": "委託代檢之醫事機構",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-hosp-twcore"
            ]
          }
        ]
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "code"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 2
      },
      {
        "id": "Observation.component:Depression",
        "path": "Observation.component",
        "sliceName": "Depression",
        "short": "憂鬱檢測第一題:感覺情緒低落沮喪",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:Depression.code",
        "path": "Observation.component.code",
        "short": "情緒低落沮喪代碼",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "66446005",
              "system": "http://snomed.info/sct",
              "display": "Depressed mood"
            }
          ]
        }
      },
      {
        "id": "Observation.component:Depression.value[x]",
        "path": "Observation.component.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Observation.component:Depression.value[x]:valueString",
        "path": "Observation.component.value[x]",
        "sliceName": "valueString",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.component:LossInterest",
        "path": "Observation.component",
        "sliceName": "LossInterest",
        "short": "憂鬱檢測第二題: 做事情失去興趣",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:LossInterest.code",
        "path": "Observation.component.code",
        "short": "失去興趣代碼",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "713566001",
              "system": "http://snomed.info/sct",
              "display": "Lack of interest"
            }
          ]
        }
      },
      {
        "id": "Observation.component:LossInterest.value[x]",
        "path": "Observation.component.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Observation.component:LossInterest.value[x]:valueString",
        "path": "Observation.component.value[x]",
        "sliceName": "valueString",
        "short": "憂鬱檢測第二題選項",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": true
      }
    ]
  }
}