{
  "resourceType": "StructureDefinition",
  "url": "https://example.org/fhir/StructureDefinition/MyPatient",
  "version": "0.1",
  "name": "MyPatient",
  "status": "draft",
  "date": "2022-10-27T12:12:35.8164555+00:00",
  "description": "My patient for testing during the Profiling Course",
  "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": "My patient for testing during the Profiling Course",
        "constraint": [
          {
            "key": "STNO-1",
            "requirements": "Text has to be entered",
            "severity": "warning",
            "human": "Text has to be entered",
            "expression": "name.family.length() + name.given.length() > 37 and name.text.isEmpty()"
          }
        ]
      },
      {
        "id": "Patient.extension",
        "path": "Patient.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Patient.extension:occupation",
        "path": "Patient.extension",
        "sliceName": "occupation",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://example.org/fhir/StructureDefinition/OccupationExtension"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Patient.extension:birthPlace",
        "path": "Patient.extension",
        "sliceName": "birthPlace",
        "short": "Patients place of birth",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/patient-birthPlace"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Patient.extension:prefferedGender",
        "path": "Patient.extension",
        "sliceName": "prefferedGender",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://example.org/fhir/StructureDefinition/PrefferedGender"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Patient.identifier:personnummer",
        "path": "Patient.identifier",
        "sliceName": "personnummer",
        "slicing": {
          "rules": "open"
        },
        "short": "Swedish National Personal Id",
        "definition": "National personal id created by Skatteverket",
        "max": "1"
      },
      {
        "id": "Patient.identifier:personnummer.type.coding.system",
        "path": "Patient.identifier.type.coding.system",
        "fixedUri": "OID"
      },
      {
        "id": "Patient.identifier:personnummer.type.coding.code",
        "path": "Patient.identifier.type.coding.code",
        "fixedCode": "1.2.752.129.2.1.3.1"
      },
      {
        "id": "Patient.identifier:personnummer.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "1.2.752.129.2.1.3.3"
      },
      {
        "id": "Patient.identifier:personnummer.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "max": "1",
        "type": [
          {
            "code": "HumanName",
            "profile": [
              "https://example.org/fhir/StructureDefinition/MyHumanName"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.telecom:preferredPhone",
        "path": "Patient.telecom",
        "sliceName": "preferredPhone",
        "max": "1"
      },
      {
        "id": "Patient.telecom:preferredPhone.value",
        "path": "Patient.telecom.value",
        "min": 1
      },
      {
        "id": "Patient.telecom:preferredPhone.use",
        "path": "Patient.telecom.use",
        "min": 1,
        "fixedCode": "home"
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "AdministrativeGender"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean": true
            }
          ],
          "strength": "required",
          "valueSet": "http://testingValueSet/training/gender"
        }
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "mustSupport": true
      }
    ]
  }
}