{
  "resourceType": "StructureDefinition",
  "id": "patient-extensionsR5datatype",
  "url": "http://example.org/fhir/StructureDefinition/patient-extensionsR5datatype",
  "name": "PatientExtensionTest",
  "title": "Patient (Extension R5 Data Type Test)",
  "status": "draft",
  "experimental": true,
  "description": "This profile tests the ability for Simplifer to render extension instances with R5 data types",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.extension",
        "path": "Patient.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.extension:individual-recordedSexOrGender",
        "path": "Patient.extension",
        "sliceName": "individual-recordedSexOrGender",
        "short": "Extension: Individual-recordedSexOrGender",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.infoway-inforoute.ca/test/StructureDefinition/individual-recordedSexOrGenderTest"
            ]
          }
        ]
      },
      {
        "id": "Patient.name",
        "path": "Patient.name.text",
        "definition": "Text representation of the full name. Due to the cultural variance around the world a consuming system may not know how to present the name correctly; moreover not all the parts of the name go in given or family. Creators are therefore strongly encouraged to provide through this element a presented version of the name. Future versions of this guide may require this element"
      },
      {
        "id": "Patient.name.family",
        "path": "Patient.name.family"
      },
      {
        "id": "Patient.name.given",
        "path": "Patient.name.given",
        "mustSupport": true
      },
      {
        "id": "Patient.telecom",
        "path": "Patient.telecom"
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "min": 1,
        "mustSupport": true
      }
    ]
  }
}