{
  "resourceType": "StructureDefinition",
  "id": "vn-core-observation-patienthistory_socialfactor",
  "text": {
    "status": "empty",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" />"
  },
  "url": "http://moh.gov.vn/fhir/core/StructureDefinition/vn-core-observation-patienthistory_socialfactor",
  "version": "1.0.0",
  "name": "VNCorePatientHistory_SocialFactor",
  "title": "Observation- PatientHistory and SocialFactor - VN Core R4",
  "status": "draft",
  "description": "Thông tin mô tả  về tiền sử người bệnh và các đặc điểm xã hội liên quan",
  "purpose": "TODO: add note",
  "copyright": "Bộ Y tế Việt Nam",
  "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",
        "mustSupport": true
      },
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "min": 1,
        "max": "1",
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/observation-category",
              "code": "social-history",
              "display": "Social Factor & Patient History"
            }
          ]
        }
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "binding": {
          "strength": "extensible",
          "description": "ValueSet dành cho loại tiền sử bệnh lý và đặc điểm xã hội",
          "valueSet": "http://moh.gov.vn/fhir/core/ValueSet/patient-history-social-factor-type"
        }
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://moh.gov.vn/fhir/core/StructureDefinition/vn-core-patient"
            ]
          }
        ]
      },
      {
        "id": "Observation.encounter",
        "path": "Observation.encounter",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://moh.gov.vn/fhir/core/StructureDefinition/vn-core-encounter"
            ]
          }
        ]
      },
      {
        "id": "Observation.issued",
        "path": "Observation.issued",
        "mustSupport": true
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://moh.gov.vn/fhir/core/StructureDefinition/vn-core-practitioner"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "min": 1,
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": false
      },
      {
        "id": "Observation.interpretation",
        "path": "Observation.interpretation",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange",
        "path": "Observation.referenceRange",
        "max": "0"
      }
    ]
  }
}