{
  "resourceType": "StructureDefinition",
  "id": "be1d89be-3d05-4e31-9adc-8ebcf4c3074d",
  "meta": {
    "lastUpdated": "2020-09-28T07:02:49.379+00:00"
  },
  "url": "https://fhir.cambio.se/StructureDefinition/PatientSe/v1",
  "name": "PatientSe",
  "status": "draft",
  "date": "2020-06-26T09:11:43.166508+00:00",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "https://fhir.cambio.se/PatientCoreSe.StructureDefinition.xml",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Patient.extension",
        "path": "Patient.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.extension:genderIdentity",
        "path": "Patient.extension",
        "sliceName": "genderIdentity",
        "comment": "Supported values are male, female, non-disclose, unknown.",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/patient-genderIdentity"
            ]
          }
        ],
        "mustSupport": false
      },
      {
        "id": "Patient.extension:genderIdentity.value[x]",
        "path": "Patient.extension.value[x]",
        "slicing": {
          "rules": "open"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "Patient.extension:referMeAs",
        "path": "Patient.extension",
        "sliceName": "referMeAs",
        "short": "Referred gender",
        "definition": "The gender the patient wants to be referred as. Replaces gender identity when used.",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.cambio.se/StructureDefinition/patient-referMeAs"
            ]
          }
        ]
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "min": 1
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "min": 1
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "min": 1
      },
      {
        "id": "Patient.maritalStatus",
        "path": "Patient.maritalStatus",
        "max": "0"
      },
      {
        "id": "Patient.multipleBirth[x]",
        "path": "Patient.multipleBirth[x]",
        "max": "0"
      },
      {
        "id": "Patient.photo",
        "path": "Patient.photo",
        "max": "0"
      },
      {
        "id": "Patient.contact",
        "path": "Patient.contact",
        "max": "0"
      },
      {
        "id": "Patient.communication",
        "path": "Patient.communication",
        "max": "0"
      },
      {
        "id": "Patient.generalPractitioner",
        "path": "Patient.generalPractitioner",
        "max": "0"
      },
      {
        "id": "Patient.managingOrganization",
        "path": "Patient.managingOrganization",
        "max": "0"
      }
    ]
  }
}