PackagesCanonicalsLogsProblems
    Packages
    uk.nhsdigital.r4.test@2.8.8-prerelease
    https://fhir.nhs.uk/StructureDefinition/England-Parameters-SubscriptionStatus
description: null
package_name: uk.nhsdigital.r4.test
derivation: constraint
name: EnglandParametersSubscriptionStatus
type: Parameters
elements:
  parameter:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: name, type: value}
      min: null
      slices:
        status:
          match: {name: status}
          schema:
            short: requested | active | error | off | entered-in-error
            index: 1
            elements:
              name:
                pattern: {type: String, value: status}
                index: 2
              value:
                choices: [valueCode]
                index: 4
              valueCode: {type: code, choiceOf: value, index: 5}
              part:
                elementReference: ['https://fhir.nhs.uk/StructureDefinition/England-Parameters-SubscriptionStatus', elements, org/fhir/StructureDefinition/Parameters#Parameters, elements, parameter]
                index: 6
            required: [valueCode, value]
        notificationEvent:
          match: {name: notificationEvent}
          schema:
            short: Detailed information about any events relevant to this notification
            _required: true
            index: 7
            elements:
              name:
                pattern: {type: String, value: notificationEvent}
                index: 8
              part:
                elementReference: ['https://fhir.nhs.uk/StructureDefinition/England-Parameters-SubscriptionStatus', elements, org/fhir/StructureDefinition/Parameters#Parameters, elements, parameter]
                index: 9
                slicing:
                  rules: open
                  discriminator:
                  - {path: name, type: value}
                  min: null
                  slices:
                    timestamp:
                      match: {name: timestamp}
                      schema:
                        short: The instant this event occurred
                        elementReference: ['https://fhir.nhs.uk/StructureDefinition/England-Parameters-SubscriptionStatus', elements, org/fhir/StructureDefinition/Parameters#Parameters, elements, parameter]
                        index: 10
                        elements:
                          name:
                            pattern: {type: String, value: timestamp}
                            index: 11
                          value:
                            choices: [valueInstant]
                            index: 13
                          valueInstant: {type: instant, choiceOf: value, index: 14}
                          part:
                            elementReference: ['https://fhir.nhs.uk/StructureDefinition/England-Parameters-SubscriptionStatus', elements, org/fhir/StructureDefinition/Parameters#Parameters, elements, parameter]
                            index: 15
                        required: [valueInstant, value]
                    focus:
                      match: {name: focus}
                      schema:
                        elementReference: ['https://fhir.nhs.uk/StructureDefinition/England-Parameters-SubscriptionStatus', elements, org/fhir/StructureDefinition/Parameters#Parameters, elements, parameter]
                        _required: true
                        index: 16
                        elements:
                          name:
                            short: The focus of this event
                            pattern: {type: String, value: focus}
                            index: 17
                          value:
                            choices: [valueReference]
                            index: 19
                          valueReference: {type: Reference, choiceOf: value, index: 20}
                          part:
                            elementReference: ['https://fhir.nhs.uk/StructureDefinition/England-Parameters-SubscriptionStatus', elements, org/fhir/StructureDefinition/Parameters#Parameters, elements, parameter]
                            index: 21
                        required: [valueReference, value]
                    additionalContext:
                      match: {name: additionalContext}
                      schema:
                        elementReference: ['https://fhir.nhs.uk/StructureDefinition/England-Parameters-SubscriptionStatus', elements, org/fhir/StructureDefinition/Parameters#Parameters, elements, parameter]
                        index: 22
                        elements:
                          name:
                            short: The additionalContext of this event
                            pattern: {type: String, value: additionalContext}
                            index: 23
                          value:
                            choices: [valueReference]
                            index: 25
                          valueReference: {type: Reference, choiceOf: value, index: 26}
                          part:
                            elementReference: ['https://fhir.nhs.uk/StructureDefinition/England-Parameters-SubscriptionStatus', elements, org/fhir/StructureDefinition/Parameters#Parameters, elements, parameter]
                            index: 27
                        required: [valueReference, value]
                    eventNumber:
                      match: {name: eventNumber}
                      schema:
                        short: Event number
                        elementReference: ['https://fhir.nhs.uk/StructureDefinition/England-Parameters-SubscriptionStatus', elements, org/fhir/StructureDefinition/Parameters#Parameters, elements, parameter]
                        _required: true
                        index: 28
                        elements:
                          name:
                            pattern: {type: String, value: eventNumber}
                            index: 29
                          value:
                            choices: [valueInteger]
                            index: 31
                          valueInteger: {type: integer, choiceOf: value, index: 32}
                          part:
                            elementReference: ['https://fhir.nhs.uk/StructureDefinition/England-Parameters-SubscriptionStatus', elements, org/fhir/StructureDefinition/Parameters#Parameters, elements, parameter]
                            index: 33
                        required: [value, valueInteger]
        subscription:
          match: {name: subscription}
          schema:
            short: Reference to the Subscription responsible for this notification
            _required: true
            index: 34
            elements:
              name:
                pattern: {type: String, value: subscription}
                index: 35
              value:
                choices: [valueReference]
                index: 37
              valueReference: {type: Reference, choiceOf: value, index: 38}
              part:
                elementReference: ['https://fhir.nhs.uk/StructureDefinition/England-Parameters-SubscriptionStatus', elements, org/fhir/StructureDefinition/Parameters#Parameters, elements, parameter]
                index: 39
            required: [valueReference, value]
        topic:
          match: {name: topic}
          schema:
            short: Reference to the SubscriptionTopic this notification relates to
            index: 40
            elements:
              name:
                pattern: {type: String, value: topic}
                index: 41
              value:
                choices: [valueCanonical]
                index: 43
              valueCanonical: {type: canonical, choiceOf: value, index: 44}
              part:
                elementReference: ['https://fhir.nhs.uk/StructureDefinition/England-Parameters-SubscriptionStatus', elements, org/fhir/StructureDefinition/Parameters#Parameters, elements, parameter]
                index: 45
            required: [valueCanonical, value]
        error:
          match: {name: error}
          schema:
            index: 46
            elements:
              name:
                pattern: {type: String, value: error}
                index: 47
              value:
                choices: [valueCodeableConcept]
                index: 49
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 50}
              part:
                elementReference: ['https://fhir.nhs.uk/StructureDefinition/England-Parameters-SubscriptionStatus', elements, org/fhir/StructureDefinition/Parameters#Parameters, elements, parameter]
                index: 51
            required: [value, valueCodeableConcept]
package_version: 2.8.8-prerelease
class: profile
kind: resource
url: https://fhir.nhs.uk/StructureDefinition/England-Parameters-SubscriptionStatus
base: http://hl7.org/fhir/StructureDefinition/Parameters
version: null