{
  "resourceType": "StructureDefinition",
  "id": "ncdhc-patient-child",
  "url": "http://build.fhir.org/ig/hl7au/au-fhir-childhealth/StructureDefinition/ncdhc-patient-child",
  "version": "current",
  "name": "NCDHCPatientChild",
  "title": "NCDHC Child Patient",
  "status": "active",
  "description": "Profile to represent a Child Patient in NCDHC Context",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "cda",
      "uri": "http://hl7.org/v3/cda",
      "name": "CDA (R2)"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "loinc",
      "uri": "http://loinc.org",
      "name": "LOINC code for the element"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org.au/fhir/StructureDefinition/au-patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.extension:birthPlace",
        "path": "Patient.extension",
        "sliceName": "birthPlace",
        "mustSupport": true
      },
      {
        "id": "Patient.extension:indigenousStatus",
        "path": "Patient.extension",
        "sliceName": "indigenousStatus",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "type"
            },
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open",
          "ordered": false,
          "description": "Slice based on the identifer profile"
        },
        "min": 1
      },
      {
        "id": "Patient.identifier:identifierIHI",
        "path": "Patient.identifier",
        "sliceName": "identifierIHI",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://hl7.org.au/fhir/StructureDefinition/au-ihi"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:identifierMRN",
        "path": "Patient.identifier",
        "sliceName": "identifierMRN",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://hl7.org.au/fhir/StructureDefinition/au-medicalrecordnumber"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.active",
        "path": "Patient.active",
        "mustSupport": true
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "min": 1
      },
      {
        "id": "Patient.name.use",
        "path": "Patient.name.use",
        "mustSupport": true
      },
      {
        "id": "Patient.name.family",
        "path": "Patient.name.family",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.name.given",
        "path": "Patient.name.given",
        "mustSupport": true
      },
      {
        "id": "Patient.name.prefix",
        "path": "Patient.name.prefix",
        "mustSupport": true
      },
      {
        "id": "Patient.name.suffix",
        "path": "Patient.name.suffix",
        "mustSupport": true
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.birthDate.extension",
        "path": "Patient.birthDate.extension",
        "mustSupport": true
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "type": [
          {
            "code": "Address",
            "profile": [
              "http://hl7.org.au/fhir/StructureDefinition/au-address"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.maritalStatus",
        "path": "Patient.maritalStatus",
        "max": "0"
      },
      {
        "id": "Patient.contact",
        "path": "Patient.contact",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "relationship"
            }
          ],
          "rules": "open",
          "ordered": false,
          "description": "Slice based on the contact.relationship pattern"
        }
      },
      {
        "id": "Patient.contact:contactMother",
        "path": "Patient.contact",
        "sliceName": "contactMother",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Patient.contact:contactMother.relationship",
        "path": "Patient.contact.relationship",
        "min": 1,
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "MTH",
              "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode"
            }
          ]
        },
        "mustSupport": true
      },
      {
        "id": "Patient.contact:contactMother.name",
        "path": "Patient.contact.name",
        "mustSupport": true
      },
      {
        "id": "Patient.contact:contactFather",
        "path": "Patient.contact",
        "sliceName": "contactFather",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Patient.contact:contactFather.relationship",
        "path": "Patient.contact.relationship",
        "min": 1,
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "FTH",
              "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode"
            }
          ]
        },
        "mustSupport": true
      },
      {
        "id": "Patient.contact:contactFather.name",
        "path": "Patient.contact.name",
        "mustSupport": true
      },
      {
        "id": "Patient.communication",
        "path": "Patient.communication",
        "max": "0"
      }
    ]
  }
}