{
  "resourceType": "StructureDefinition",
  "id": "il-encounter-genetics-survey",
  "language": "he-IL",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
      "valueString": "Base.Management"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
      "valueCode": "patient"
    }
  ],
  "url": "http://fhir.health.gov.il/StructureDefinition/il-encounter-genetics-survey",
  "version": "0.1.0",
  "name": "ILEncounterGeneticsInheritedDiseaseSurvey",
  "title": "IL Encounter Genetics Inherited Disease survey Profile",
  "status": "draft",
  "date": "2021-10-04",
  "publisher": "Israeli Ministry of Health",
  "description": "Proposed constraints and extensions on the Encounter Genetics for survey Resource",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Encounter",
  "baseDefinition": "http://fhir.health.gov.il/StructureDefinition/il-core-encounetr",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Encounter",
        "path": "Encounter",
        "short": "IL Encounter Genetics Profile",
        "definition": "Definitions for Proposed constraints and extensions on the Encounter Genetics for survey Resource."
      },
      {
        "id": "Encounter.status",
        "path": "Encounter.status",
        "fixedCode": "finished"
      },
      {
        "id": "Encounter.class.system",
        "path": "Encounter.class.system",
        "min": 1,
        "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ActCode"
      },
      {
        "id": "Encounter.class.code",
        "path": "Encounter.class.code",
        "min": 1,
        "fixedCode": "AMB"
      },
      {
        "id": "Encounter.class.display",
        "path": "Encounter.class.display",
        "fixedString": "ambulatory"
      },
      {
        "id": "Encounter.type",
        "path": "Encounter.type",
        "min": 1
      },
      {
        "id": "Encounter.type.coding",
        "path": "Encounter.type.coding",
        "min": 1
      },
      {
        "id": "Encounter.type.coding.system",
        "path": "Encounter.type.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Encounter.type.coding.code",
        "path": "Encounter.type.coding.code",
        "min": 1,
        "fixedCode": "270427003"
      },
      {
        "id": "Encounter.type.coding.display",
        "path": "Encounter.type.coding.display",
        "fixedString": "Patient-initiated encounter"
      },
      {
        "id": "Encounter.serviceType",
        "path": "Encounter.serviceType",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "http://fhir.health.gov.il/ValueSet/service-type-genetics"
        }
      },
      {
        "id": "Encounter.subject",
        "path": "Encounter.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-patient"
            ]
          }
        ]
      },
      {
        "id": "Encounter.period.start",
        "path": "Encounter.period.start",
        "min": 1
      },
      {
        "id": "Encounter.reasonCode",
        "path": "Encounter.reasonCode",
        "min": 1
      },
      {
        "id": "Encounter.reasonCode.coding.system",
        "path": "Encounter.reasonCode.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Encounter.reasonCode.coding.code",
        "path": "Encounter.reasonCode.coding.code",
        "min": 1,
        "fixedCode": "3981005"
      },
      {
        "id": "Encounter.reasonCode.coding.display",
        "path": "Encounter.reasonCode.coding.display",
        "fixedString": "Carrier detection, molecular genetics (procedure)"
      },
      {
        "id": "Encounter.diagnosis",
        "path": "Encounter.diagnosis",
        "max": "0"
      },
      {
        "id": "Encounter.location.status",
        "path": "Encounter.location.status",
        "patternCode": "active"
      },
      {
        "id": "Encounter.serviceProvider",
        "path": "Encounter.serviceProvider",
        "min": 1
      }
    ]
  }
}