{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2017-08-25T14:28:22.047+00:00"
  },
  "url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-RegistrationDetails-1",
  "version": "0.0.1",
  "name": "Extension-CareConnect-RegistrationDetails-1",
  "status": "draft",
  "date": "2017-06-07T15:23:42.3286782+00:00",
  "publisher": "HL7 UK",
  "description": "This extension is constrained to represent the additional registration information for a patient.",
  "copyright": "Copyright © 2016 HL7 UK\r\n\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\r\n\r\nhttp://www.apache.org/licenses/LICENSE-2.0\r\n\r\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\r\n\r\nHL7® FHIR® standard Copyright © 2011+ HL7\r\n\r\nThe HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at\r\n\r\nhttps://www.hl7.org/fhir/license.html",
  "fhirVersion": "3.0.0",
  "kind": "complex-type",
  "abstract": false,
  "contextType": "resource",
  "context": [
    "Patient"
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Additional registration information for the Patient resource",
        "definition": "Additional registration information for the Patient resource."
      },
      {
        "path": "Extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Extension.extension:registrationPeriod",
        "path": "Extension.extension",
        "sliceName": "registrationPeriod",
        "short": "The period of time during which the Patient registration applies",
        "definition": "The period of time during which the Patient registration applies.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Extension.extension:registrationPeriod.url",
        "path": "Extension.extension.url",
        "fixedUri": "registrationPeriod"
      },
      {
        "id": "Extension.extension:registrationPeriod.value[x]:valuePeriod",
        "path": "Extension.extension.valuePeriod",
        "sliceName": "valuePeriod",
        "short": "The period of time during which the Patient registration applies.",
        "definition": "The period of time during which the Patient registration applies.",
        "min": 1,
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "Extension.extension:registrationType",
        "path": "Extension.extension",
        "sliceName": "registrationType",
        "short": "The type of patient registration at the healthcare organisation",
        "definition": "The type of patient registration at the healthcare organisation.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Extension.extension:registrationType.url",
        "path": "Extension.extension.url",
        "fixedUri": "registrationType"
      },
      {
        "id": "Extension.extension:registrationType.value[x]:valueCodeableConcept",
        "path": "Extension.extension.valueCodeableConcept",
        "sliceName": "valueCodeableConcept",
        "short": "The type of registration for a patient at a healthcare organisation.",
        "definition": "The type of registration for a patient at a healthcare organisation..",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "required",
          "description": "Registration Type",
          "valueSetReference": {
            "reference": "https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-RegistrationType-1"
          }
        }
      },
      {
        "id": "Extension.extension:registrationStatus",
        "path": "Extension.extension",
        "sliceName": "registrationStatus",
        "short": "The registration status for this patient at the healthcare organisation",
        "definition": "The registration status for this patient at the healthcare organisation.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Extension.extension:registrationStatus.url",
        "path": "Extension.extension.url",
        "fixedUri": "registrationStatus"
      },
      {
        "id": "Extension.extension:registrationStatus.value[x]:valueCodeableConcept",
        "path": "Extension.extension.valueCodeableConcept",
        "sliceName": "valueCodeableConcept",
        "short": "The status of registration for a patient at the healthcare organisation",
        "definition": "The status of registration for a patient at the healthcare organisation.",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "required",
          "description": "Registration Status",
          "valueSetReference": {
            "reference": "https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-RegistrationStatus-1"
          }
        }
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-RegistrationDetails-1"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "max": "0"
      }
    ]
  }
}