{
  "resourceType": "StructureDefinition",
  "id": "oridashi-patient",
  "meta": {
    "lastUpdated": "2017-08-14T01:07:25.278+00:00"
  },
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Patient at clinic</p></div>"
  },
  "url": "http://oridashi.com.au/fhir/StructureDefinition/oridashi-patient",
  "name": "Oridashi Patient",
  "title": "Oridashi Patient",
  "status": "draft",
  "date": "2017-08-11T14:52:34.866+00:00",
  "description": "Patient in GP system",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org.au/fhir/StructureDefinition/au-patient",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Patient",
        "path": "Patient",
        "short": "Clinic Patient",
        "definition": "Oridashi patient record in GP system."
      },
      {
        "id": "Patient.extension:indigenous-status",
        "path": "Patient.extension",
        "sliceName": "indigenous-status",
        "min": 1
      },
      {
        "id": "Patient.active",
        "path": "Patient.active",
        "min": 1
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.name.use",
        "path": "Patient.name.use",
        "min": 1
      },
      {
        "id": "Patient.name.text",
        "path": "Patient.name.text",
        "max": "0"
      },
      {
        "id": "Patient.name.suffix",
        "path": "Patient.name.suffix",
        "max": "0"
      },
      {
        "id": "Patient.name.period",
        "path": "Patient.name.period",
        "max": "0"
      },
      {
        "id": "Patient.telecom",
        "path": "Patient.telecom",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "use"
            },
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "max": "4"
      },
      {
        "id": "Patient.telecom:homephone",
        "path": "Patient.telecom",
        "sliceName": "homephone",
        "max": "1"
      },
      {
        "id": "Patient.telecom:homephone.system",
        "path": "Patient.telecom.system",
        "min": 1,
        "fixedCode": "phone"
      },
      {
        "id": "Patient.telecom:homephone.value",
        "path": "Patient.telecom.value",
        "min": 1
      },
      {
        "id": "Patient.telecom:homephone.use",
        "path": "Patient.telecom.use",
        "min": 1,
        "fixedCode": "home"
      },
      {
        "id": "Patient.telecom:homephone.period",
        "path": "Patient.telecom.period",
        "max": "0"
      },
      {
        "id": "Patient.telecom:workphone",
        "path": "Patient.telecom",
        "sliceName": "workphone",
        "max": "1"
      },
      {
        "id": "Patient.telecom:workphone.system",
        "path": "Patient.telecom.system",
        "min": 1,
        "fixedCode": "phone"
      },
      {
        "id": "Patient.telecom:workphone.value",
        "path": "Patient.telecom.value",
        "min": 1
      },
      {
        "id": "Patient.telecom:workphone.use",
        "path": "Patient.telecom.use",
        "min": 1,
        "fixedCode": "work"
      },
      {
        "id": "Patient.telecom:workphone.period",
        "path": "Patient.telecom.period",
        "max": "0"
      },
      {
        "id": "Patient.telecom:mobilephone",
        "path": "Patient.telecom",
        "sliceName": "mobilephone",
        "max": "1"
      },
      {
        "id": "Patient.telecom:mobilephone.system",
        "path": "Patient.telecom.system",
        "min": 1,
        "fixedCode": "phone"
      },
      {
        "id": "Patient.telecom:mobilephone.value",
        "path": "Patient.telecom.value",
        "min": 1
      },
      {
        "id": "Patient.telecom:mobilephone.use",
        "path": "Patient.telecom.use",
        "min": 1,
        "fixedCode": "mobile"
      },
      {
        "id": "Patient.telecom:mobilephone.period",
        "path": "Patient.telecom.period",
        "max": "0"
      },
      {
        "id": "Patient.telecom:email",
        "path": "Patient.telecom",
        "sliceName": "email",
        "max": "1"
      },
      {
        "id": "Patient.telecom:email.system",
        "path": "Patient.telecom.system",
        "min": 1,
        "fixedCode": "email"
      },
      {
        "id": "Patient.telecom:email.value",
        "path": "Patient.telecom.value",
        "min": 1
      },
      {
        "id": "Patient.telecom:email.use",
        "path": "Patient.telecom.use",
        "min": 1,
        "fixedCode": "home"
      },
      {
        "id": "Patient.telecom:email.period",
        "path": "Patient.telecom.period",
        "max": "0"
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "min": 1
      },
      {
        "id": "Patient.deceased[x]:deceasedBoolean",
        "path": "Patient.deceasedBoolean",
        "sliceName": "deceasedBoolean",
        "min": 1,
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "use"
            },
            {
              "type": "value",
              "path": "type"
            }
          ],
          "rules": "open"
        },
        "max": "2"
      },
      {
        "id": "Patient.address:homeaddr",
        "path": "Patient.address",
        "sliceName": "homeaddr",
        "max": "1"
      },
      {
        "id": "Patient.address:homeaddr.use",
        "path": "Patient.address.use",
        "min": 1,
        "fixedCode": "home"
      },
      {
        "id": "Patient.address:homeaddr.type",
        "path": "Patient.address.type",
        "min": 1,
        "fixedCode": "physical"
      },
      {
        "id": "Patient.address:homeaddr.text",
        "path": "Patient.address.text",
        "max": "0"
      },
      {
        "id": "Patient.address:homeaddr.line",
        "path": "Patient.address.line",
        "min": 1,
        "max": "2"
      },
      {
        "id": "Patient.address:homeaddr.district",
        "path": "Patient.address.district",
        "max": "0"
      },
      {
        "id": "Patient.address:homeaddr.state",
        "path": "Patient.address.state",
        "min": 1
      },
      {
        "id": "Patient.address:homeaddr.country",
        "path": "Patient.address.country",
        "max": "0"
      },
      {
        "id": "Patient.address:homeaddr.period",
        "path": "Patient.address.period",
        "max": "0"
      },
      {
        "id": "Patient.address:postaladdr",
        "path": "Patient.address",
        "sliceName": "postaladdr",
        "max": "1"
      },
      {
        "id": "Patient.address:postaladdr.use",
        "path": "Patient.address.use",
        "min": 1,
        "fixedCode": "home"
      },
      {
        "id": "Patient.address:postaladdr.type",
        "path": "Patient.address.type",
        "min": 1,
        "fixedCode": "postal"
      },
      {
        "id": "Patient.address:postaladdr.text",
        "path": "Patient.address.text",
        "max": "0"
      },
      {
        "id": "Patient.address:postaladdr.line",
        "path": "Patient.address.line",
        "min": 1,
        "max": "2"
      },
      {
        "id": "Patient.address:postaladdr.district",
        "path": "Patient.address.district",
        "max": "0"
      },
      {
        "id": "Patient.address:postaladdr.state",
        "path": "Patient.address.state",
        "min": 1
      },
      {
        "id": "Patient.address:postaladdr.country",
        "path": "Patient.address.country",
        "max": "0"
      },
      {
        "id": "Patient.address:postaladdr.period",
        "path": "Patient.address.period",
        "max": "0"
      },
      {
        "id": "Patient.maritalStatus",
        "path": "Patient.maritalStatus",
        "max": "0"
      },
      {
        "id": "Patient.multipleBirth[x]",
        "path": "Patient.multipleBirth[x]",
        "max": "0"
      },
      {
        "id": "Patient.photo",
        "path": "Patient.photo",
        "short": "Image of the patient (MD only)",
        "definition": "Image of the patient. Supported by Medical Director only.",
        "max": "1"
      },
      {
        "id": "Patient.contact",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Contact"
          }
        ],
        "path": "Patient.contact",
        "slicing": {
          "rules": "open"
        },
        "min": 1,
        "max": "2"
      },
      {
        "id": "Patient.contact:nextofkin",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Contact"
          }
        ],
        "path": "Patient.contact",
        "sliceName": "nextofkin",
        "max": "1"
      },
      {
        "id": "Patient.contact:nextofkin.relationship",
        "path": "Patient.contact.relationship",
        "slicing": {
          "rules": "open"
        },
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.contact:nextofkin.relationship:relationtype",
        "path": "Patient.contact.relationship",
        "sliceName": "relationtype",
        "max": "1"
      },
      {
        "id": "Patient.contact:nextofkin.relationship:relationtype.coding",
        "path": "Patient.contact.relationship.coding",
        "min": 1,
        "max": "1",
        "fixedCoding": {
          "system": "http://hl7.org/fhir/patient-contact-relationship",
          "code": "family",
          "display": "Family"
        }
      },
      {
        "id": "Patient.contact:nextofkin.relationship:relationtype.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Patient.contact.relationship.text",
        "min": 1,
        "fixedString": "Next of Kin"
      },
      {
        "id": "Patient.contact:nextofkin.relationship:relationdescription",
        "path": "Patient.contact.relationship",
        "sliceName": "relationdescription",
        "max": "1"
      },
      {
        "id": "Patient.contact:nextofkin.relationship:relationdescription.coding",
        "path": "Patient.contact.relationship.coding",
        "max": "0"
      },
      {
        "id": "Patient.contact:nextofkin.relationship:relationdescription.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Patient.contact.relationship.text",
        "min": 1
      },
      {
        "id": "Patient.contact:nextofkin.name",
        "path": "Patient.contact.name",
        "min": 1
      },
      {
        "id": "Patient.contact:nextofkin.telecom",
        "path": "Patient.contact.telecom",
        "max": "2"
      },
      {
        "id": "Patient.contact:nextofkin.gender",
        "path": "Patient.contact.gender",
        "max": "0"
      },
      {
        "id": "Patient.contact:nextofkin.organization",
        "path": "Patient.contact.organization",
        "max": "0"
      },
      {
        "id": "Patient.contact:nextofkin.period",
        "path": "Patient.contact.period",
        "max": "0"
      },
      {
        "id": "Patient.contact:emergency",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Contact"
          }
        ],
        "path": "Patient.contact",
        "sliceName": "emergency",
        "max": "1"
      },
      {
        "id": "Patient.contact:emergency.relationship",
        "path": "Patient.contact.relationship",
        "slicing": {
          "rules": "open"
        },
        "min": 1,
        "max": "2",
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://hl7.org/fhir/patient-contact-relationship",
              "code": "emergency",
              "display": "Emergency"
            }
          ],
          "text": "Emergency Contact"
        }
      },
      {
        "id": "Patient.contact:emergency.relationship:relationtype",
        "path": "Patient.contact.relationship",
        "sliceName": "relationtype",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.contact:emergency.relationship:relationtype.coding",
        "path": "Patient.contact.relationship.coding",
        "min": 1,
        "max": "1",
        "fixedCoding": {
          "system": "http://hl7.org/fhir/patient-contact-relationship",
          "code": "emergency",
          "display": "Emergency"
        }
      },
      {
        "id": "Patient.contact:emergency.relationship:relationtype.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Patient.contact.relationship.text",
        "min": 1,
        "fixedString": "Emergency Contact"
      },
      {
        "id": "Patient.contact:emergency.relationship:relationdescription",
        "path": "Patient.contact.relationship",
        "sliceName": "relationdescription",
        "max": "1"
      },
      {
        "id": "Patient.contact:emergency.relationship:relationdescription.coding",
        "path": "Patient.contact.relationship.coding",
        "max": "0"
      },
      {
        "id": "Patient.contact:emergency.relationship:relationdescription.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Patient.contact.relationship.text",
        "min": 1
      },
      {
        "id": "Patient.contact:emergency.name",
        "path": "Patient.contact.name",
        "min": 1
      },
      {
        "id": "Patient.contact:emergency.telecom",
        "path": "Patient.contact.telecom",
        "max": "2"
      },
      {
        "id": "Patient.contact:emergency.gender",
        "path": "Patient.contact.gender",
        "max": "0"
      },
      {
        "id": "Patient.contact:emergency.organization",
        "path": "Patient.contact.organization",
        "max": "0"
      },
      {
        "id": "Patient.contact:emergency.period",
        "path": "Patient.contact.period",
        "max": "0"
      },
      {
        "id": "Patient.communication",
        "path": "Patient.communication",
        "max": "0"
      },
      {
        "id": "Patient.generalPractitioner",
        "path": "Patient.generalPractitioner",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://oridashi.com.au/fhir/StructureDefinition/oridashi-practitioner"
          }
        ]
      },
      {
        "id": "Patient.managingOrganization",
        "path": "Patient.managingOrganization",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://oridashi.com.au/fhir/StructureDefinition/oridashi-organisation"
          }
        ]
      },
      {
        "id": "Patient.link",
        "path": "Patient.link",
        "max": "0"
      }
    ]
  }
}