{
  "resourceType": "StructureDefinition",
  "url": "https://mirjams.example.org/fhir/StructureDefinition/MirjamsPatient",
  "name": "MirjamsPatient",
  "status": "draft",
  "description": "Demo profile for Mirjams training course",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "X12-mapping",
      "name": "Demo X12 mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.extension:birthPlace",
        "path": "Patient.extension",
        "sliceName": "birthPlace",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/patient-birthPlace"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.deceased[x]",
        "path": "Patient.deceased[x]",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "min": 1
      },
      {
        "id": "Patient.address.line",
        "path": "Patient.address.line",
        "min": 1
      },
      {
        "id": "Patient.address.line.extension",
        "path": "Patient.address.line.extension",
        "min": 1
      },
      {
        "id": "Patient.address.line.extension:mirjamsDemoExtension",
        "path": "Patient.address.line.extension",
        "sliceName": "mirjamsDemoExtension",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://mirjams.example.org/fhir/StructureDefinition/MirjamsDemoExtension"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Patient.address.city",
        "path": "Patient.address.city",
        "mapping": [
          {
            "identity": "X12-mapping",
            "map": "X12-city-code"
          }
        ]
      },
      {
        "id": "Patient.address.country",
        "path": "Patient.address.country",
        "mapping": [
          {
            "identity": "X12-mapping",
            "map": "X12-country-code"
          }
        ]
      },
      {
        "id": "Patient.maritalStatus",
        "path": "Patient.maritalStatus",
        "min": 1,
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "M"
            }
          ]
        },
        "mapping": [
          {
            "identity": "X12-mapping",
            "map": "X12-marital-status-code"
          }
        ]
      }
    ]
  }
}