PackagesCanonicalsLogsProblems
    Packages
    uk.nhsdigital.r4@2.5.0
    https://fhir.nhs.uk/StructureDefinition/England-Parameters-SubscriptionStatus
description: null
package_name: uk.nhsdigital.r4
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}
            required: [valueCode, value]
        notificationEvent:
          match: {name: notificationEvent}
          schema:
            short: Detailed information about any events relevant to this notification
            _required: true
            index: 6
            elements:
              name:
                pattern: {type: String, value: notificationEvent}
                index: 7
              part:
                index: 8
                slicing:
                  rules: open
                  discriminator:
                  - {path: name, type: value}
                  min: null
                  slices:
                    timestamp:
                      match: {name: timestamp}
                      schema:
                        short: The instant this event occurred
                        index: 9
                        elements:
                          name:
                            pattern: {type: String, value: timestamp}
                            index: 10
                          value:
                            choices: [valueInstant]
                            index: 12
                          valueInstant: {type: instant, choiceOf: value, index: 13}
                        required: [valueInstant, value]
                    focus:
                      match: {name: focus}
                      schema:
                        _required: true
                        index: 14
                        elements:
                          name:
                            short: The focus of this event
                            pattern: {type: String, value: focus}
                            index: 15
                          value:
                            choices: [valueReference]
                            index: 17
                          valueReference: {type: Reference, choiceOf: value, index: 18}
                        required: [valueReference, value]
                    eventNumber:
                      match: {name: eventNumber}
                      schema:
                        short: Event number
                        _required: true
                        index: 19
                        elements:
                          name:
                            pattern: {type: String, value: eventNumber}
                            index: 20
                          value:
                            choices: [valueInteger]
                            index: 22
                          valueInteger: {type: integer, choiceOf: value, index: 23}
                        required: [value, valueInteger]
        subscription:
          match: {name: subscription}
          schema:
            short: Reference to the Subscription responsible for this notification
            _required: true
            index: 24
            elements:
              name:
                pattern: {type: String, value: subscription}
                index: 25
              value:
                choices: [valueReference]
                index: 27
              valueReference: {type: Reference, choiceOf: value, index: 28}
              part: {index: 29}
            required: [valueReference, value]
        topic:
          match: {name: topic}
          schema:
            short: Reference to the SubscriptionTopic this notification relates to
            index: 30
            elements:
              name:
                pattern: {type: String, value: topic}
                index: 31
              value:
                choices: [valueCanonical]
                index: 33
              valueCanonical: {type: canonical, choiceOf: value, index: 34}
            required: [valueCanonical, value]
        error:
          match: {name: error}
          schema:
            index: 35
            elements:
              name:
                pattern: {type: String, value: error}
                index: 36
              value:
                choices: [valueCodeableConcept]
                index: 38
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 39}
              part: {index: 40}
            required: [value, valueCodeableConcept]
package_version: 2.5.0
class: profile
kind: resource
url: https://fhir.nhs.uk/StructureDefinition/England-Parameters-SubscriptionStatus
base: http://hl7.org/fhir/StructureDefinition/Parameters
version: null