{
  "resourceType": "StructureDefinition",
  "url": "https://example.org/fhir/StructureDefinition/MariaPatient",
  "version": "1",
  "name": "MariaPatient",
  "status": "active",
  "date": "2024-05-22",
  "description": "Test patient profiel voor de training van Firely op 16/05/2024",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient",
        "path": "Patient",
        "definition": "Test patient profiel voor de training van Firely op 16/05/2024"
      },
      {
        "id": "Patient.extension:myExtensionOccupation",
        "path": "Patient.extension",
        "sliceName": "myExtensionOccupation",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://example.org/fhir/StructureDefinition/MyExtensionOccupation"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Patient.extension:myExtensionOccupation.value[x]",
        "path": "Patient.extension.value[x]",
        "binding": {
          "strength": "required",
          "valueSet": "http://example.org/ValueSet/MariasOccupations"
        }
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "type": [
          {
            "code": "HumanName",
            "profile": [
              "https://example.org/fhir/StructureDefinition/MyHumanName"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.name.family",
        "path": "Patient.name.family",
        "mustSupport": true
      },
      {
        "id": "Patient.name.given",
        "path": "Patient.name.given",
        "mustSupport": true
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "mustSupport": true
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "mustSupport": true
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "constraint": [
          {
            "key": "Maria",
            "severity": "error",
            "human": "The patient has a temporary address, so the period this address is in use should be filled in",
            "expression": "(use = 'temp') implies period.exists()"
          }
        ]
      },
      {
        "id": "Patient.address.use",
        "path": "Patient.address.use",
        "condition": [
          "Maria"
        ]
      },
      {
        "id": "Patient.address.line.extension:mariaExtension",
        "path": "Patient.address.line.extension",
        "sliceName": "mariaExtension",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://example.org/fhir/StructureDefinition/MariaExtension"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Patient.address.period",
        "path": "Patient.address.period",
        "condition": [
          "Maria"
        ]
      }
    ]
  }
}