{
  "resourceType": "StructureDefinition",
  "id": "5c74b931-006c-4aa2-92d0-bd1d1dc2953e",
  "meta": {
    "lastUpdated": "2024-03-01T07:25:41.7340577+00:00"
  },
  "url": "https://simplifier.net/winningtest/diagnosis-profile",
  "name": "Diagnosis",
  "title": "诊断",
  "status": "draft",
  "date": "2024-03-01T07:25:54.360965+00:00",
  "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": "Condition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Condition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Condition.extension:attribute",
        "path": "Condition.extension",
        "sliceName": "attribute",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-diagnosis-attribute"
            ]
          }
        ]
      },
      {
        "id": "Condition.extension:rareDiseaseFlag",
        "path": "Condition.extension",
        "sliceName": "rareDiseaseFlag",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-rare-disease-flag"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Condition.identifier",
        "path": "Condition.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Condition.identifier:primaryDiagnosisIdentifier",
        "path": "Condition.identifier",
        "sliceName": "primaryDiagnosisIdentifier",
        "short": "主诊断标识",
        "definition": "若无此字段，则为主诊断",
        "max": "1"
      },
      {
        "id": "Condition.clinicalStatus",
        "path": "Condition.clinicalStatus",
        "short": "诊断状态",
        "binding": {
          "strength": "required",
          "description": "诊断状态代码",
          "valueSet": "urn:oid:1.2.156.112604.1.2.120"
        }
      },
      {
        "id": "Condition.category",
        "path": "Condition.category",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "coding.system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Condition.category:diagnosisCategory",
        "path": "Condition.category",
        "sliceName": "diagnosisCategory",
        "short": "诊断类别",
        "max": "1",
        "binding": {
          "strength": "required",
          "description": "诊断类别代码",
          "valueSet": "urn:oid:1.2.156.112604.1.2.763"
        }
      },
      {
        "id": "Condition.category:diagnosisClass",
        "path": "Condition.category",
        "sliceName": "diagnosisClass",
        "short": "疾病诊断类别",
        "max": "1",
        "binding": {
          "strength": "required",
          "description": "疾病诊断类别代码",
          "valueSet": "urn:oid:1.2.156.112604.1.2.1329"
        }
      },
      {
        "id": "Condition.category:diagnosisType",
        "path": "Condition.category",
        "sliceName": "diagnosisType",
        "short": "诊断类型",
        "max": "1",
        "binding": {
          "strength": "required",
          "description": "诊断类型代码",
          "valueSet": "urn:oid:1.2.156.112604.1.2.494"
        }
      },
      {
        "id": "Condition.severity",
        "path": "Condition.severity",
        "short": "危重程度",
        "binding": {
          "strength": "required",
          "description": "危重程度代码",
          "valueSet": "urn:oid:1.2.156.112604.1.2.598"
        }
      },
      {
        "id": "Condition.code",
        "path": "Condition.code",
        "short": "诊断编码",
        "definition": "由于目前不使用任何诊断代码，这里实际填写的是诊断编码(DIAGNOSIS_NO)。",
        "min": 1
      },
      {
        "id": "Condition.code.text",
        "path": "Condition.code.text",
        "short": "诊断描述"
      },
      {
        "id": "Condition.bodySite",
        "path": "Condition.bodySite",
        "short": "部位"
      },
      {
        "id": "Condition.subject",
        "path": "Condition.subject",
        "short": "患者",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/patient-profile"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Condition.encounter",
        "path": "Condition.encounter",
        "short": "就诊",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/outpatient-encounter-profile",
              "https://simplifier.net/winningtest/inpatient-encounter-profile"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Condition.onset[x]",
        "path": "Condition.onset[x]",
        "short": "发病日期",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Condition.abatement[x]",
        "path": "Condition.abatement[x]",
        "max": "0"
      },
      {
        "id": "Condition.recordedDate",
        "path": "Condition.recordedDate",
        "short": "诊断日期"
      },
      {
        "id": "Condition.recorder",
        "path": "Condition.recorder",
        "short": "诊断医生",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/practitioner-role-profile"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "Condition.asserter",
        "path": "Condition.asserter",
        "short": "审核医生",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/practitioner-profile"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "Condition.stage",
        "path": "Condition.stage",
        "short": "阶段"
      },
      {
        "id": "Condition.evidence",
        "path": "Condition.evidence",
        "max": "0"
      },
      {
        "id": "Condition.note",
        "path": "Condition.note",
        "max": "0"
      }
    ]
  }
}