{
  "resourceType": "StructureDefinition",
  "id": "2572d58b-410c-4261-b4b0-058b30bb54e0",
  "meta": {
    "lastUpdated": "2018-03-27T13:29:29.888+00:00"
  },
  "url": "https://nweh.test/TestPatient",
  "name": "TestPatient",
  "status": "draft",
  "date": "2018-03-27T12:23:53.368+00:00",
  "description": "This has been created for the Firely Profiling exercise",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type.coding"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.identifier:NationalId",
        "path": "Patient.identifier",
        "sliceName": "NationalId",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.identifier:HospitalId",
        "path": "Patient.identifier",
        "sliceName": "HospitalId",
        "max": "1"
      },
      {
        "id": "Patient.name.family",
        "path": "Patient.name.family",
        "min": 1
      },
      {
        "id": "Patient.name.given",
        "path": "Patient.name.given",
        "min": 1
      },
      {
        "id": "Patient.telecom",
        "path": "Patient.telecom",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.telecom:telephone",
        "path": "Patient.telecom",
        "sliceName": "telephone"
      },
      {
        "id": "Patient.telecom:email",
        "path": "Patient.telecom",
        "sliceName": "email"
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "min": 1
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "min": 1
      },
      {
        "id": "Patient.birthDate.extension",
        "path": "Patient.birthDate.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.birthDate.extension:BirthTimeExtension",
        "path": "Patient.birthDate.extension",
        "sliceName": "BirthTimeExtension",
        "short": "The time of day that the Patient was born. This includes the date to ensure that the timezone information can be communicated effectively.",
        "definition": "The time of day that the Patient was born. This includes the date to ensure that the timezone information can be communicated effectively.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/patient-birthTime"
          }
        ]
      },
      {
        "id": "Patient.communication.extension",
        "path": "Patient.communication.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.communication.extension:SpokenOrWritten",
        "path": "Patient.communication.extension",
        "sliceName": "SpokenOrWritten",
        "short": "Optional Extensions Element",
        "definition": "Optional Extension Element - found in all resources.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "https://nweh.test/LanguageExtension"
          }
        ]
      }
    ]
  }
}