PackagesCanonicalsLogsProblems
    Packages
    medikit.nl.r4.connector@0.0.1-alpha-6
    https://medikit.nl/fhir/StructureDefinition/medikit-connector-parameters-create-soep
description: null
package_name: medikit.nl.r4.connector
derivation: constraint
name: MediKITConnector_Parameters_CreateSOEP
type: Parameters
elements:
  parameter:
    constraint:
      soep-mandatory: {human: 'At least one of S, O, E, or P has to be provided.', severity: error, expression: 'part.where(name.matches(''[soep]-line'')).exists()'}
    array: true
    min: 3
    index: 0
    slicing:
      rules: closed
      discriminator:
      - {path: value, type: value}
      min: 3
      slices:
        CreateAsApproved:
          match: {value: null}
          schema:
            index: 66
            elements:
              name:
                pattern: {type: String, value: create-as-approved}
                index: 67
              value:
                choices: [valueBoolean]
                index: 69
              valueBoolean: {type: boolean, choiceOf: value, index: 70}
              part: {index: 71}
            required: [value, valueBoolean]
        E-Line:
          match: {value: null}
          schema:
            index: 15
            elements:
              name:
                pattern: {type: String, value: e-line}
                index: 16
              value:
                choices: []
                index: 18
              resource: {index: 19}
              part:
                array: true
                min: 2
                max: 2
                index: 20
                slicing:
                  rules: closed
                  discriminator:
                  - {path: name, type: value}
                  min: 2
                  max: 2
                  slices:
                    ICPC-Code:
                      match: {name: icpc-code}
                      schema:
                        type: BackboneElement
                        _required: true
                        index: 21
                        extensions: {}
                        elements:
                          extension: {index: 22}
                          modifierExtension: {index: 23}
                          name:
                            pattern: {type: String, value: icpc-code}
                            index: 24
                          value:
                            choices: [valueCoding]
                            index: 26
                          valueCoding: {type: Coding, choiceOf: value, index: 27}
                          value[x]:
                            extensions: {}
                            elements:
                              extension: {index: 28}
                              system:
                                pattern: {type: Uri, value: 'http://hl7.org/fhir/sid/icpc-1-nl'}
                                index: 29
                              code: {index: 30}
                              display: {index: 31}
                            required: [display, system, code]
                          resource: {index: 32}
                          part: {index: 33}
                        required: [valueCoding, value]
                    text:
                      match: {name: text}
                      schema:
                        type: BackboneElement
                        _required: true
                        index: 34
                        extensions: {}
                        elements:
                          extension: {index: 35}
                          modifierExtension: {index: 36}
                          name:
                            pattern: {type: String, value: text}
                            index: 37
                          value:
                            choices: [valueString]
                            index: 39
                          valueString: {type: string, choiceOf: value, index: 40}
                          resource: {index: 41}
                          part: {index: 42}
                        required: [valueString, value]
        P-Line:
          match: {value: null}
          schema:
            index: 43
            elements:
              name:
                pattern: {type: String, value: p-line}
                index: 44
              value:
                choices: [valueString]
                index: 46
              valueString: {type: string, choiceOf: value, index: 47}
              resource: {index: 48}
              part: {index: 49}
            required: [valueString, value]
        O-Line:
          match: {value: null}
          schema:
            index: 8
            elements:
              name:
                pattern: {type: String, value: o-line}
                index: 9
              value:
                choices: [valueString]
                index: 11
              valueString: {type: string, choiceOf: value, index: 12}
              resource: {index: 13}
              part: {index: 14}
            required: [valueString, value]
        S-Line:
          match: {value: null}
          schema:
            index: 1
            elements:
              name:
                pattern: {type: String, value: s-line}
                index: 2
              value:
                choices: [valueString]
                index: 4
              valueString: {type: string, choiceOf: value, index: 5}
              resource: {index: 6}
              part: {index: 7}
            required: [valueString, value]
        Author:
          match: {value: null}
          schema:
            _required: true
            index: 50
            elements:
              name:
                pattern: {type: String, value: author}
                index: 51
              value:
                choices: [valueReference]
                index: 53
              valueReference:
                type: Reference
                choiceOf: value
                refers: ['http://hl7.org/fhir/StructureDefinition/PractitionerRole']
                index: 54
              value[x]:
                elements:
                  reference: {index: 55}
                required: [reference]
              resource: {index: 56}
              part: {index: 57}
            required: [valueReference, value]
        AuthoredOn:
          match: {value: null}
          schema:
            _required: true
            index: 72
            elements:
              name:
                pattern: {type: String, value: authored-on}
                index: 73
              value:
                choices: [valueInstant]
                index: 75
              valueInstant: {type: instant, choiceOf: value, index: 76}
              resource: {index: 77}
              part: {index: 78}
            required: [valueInstant, value]
        VektisCode:
          match: {value: null}
          schema:
            index: 79
            elements:
              name:
                pattern: {type: String, value: vektis-code}
                index: 80
              value:
                choices: [valueCode]
                index: 82
              valueCode: {type: code, choiceOf: value, index: 83}
              part: {index: 84}
            required: [valueCode, value]
        Episode:
          match: {value: null}
          schema:
            index: 58
            elements:
              name:
                pattern: {type: String, value: episode}
                index: 59
              value:
                choices: [valueReference]
                index: 61
              valueReference:
                type: Reference
                choiceOf: value
                refers: ['http://hl7.org/fhir/StructureDefinition/EpisodeOfCare']
                index: 62
              value[x]:
                elements:
                  reference: {index: 63}
                required: [reference]
              resource: {index: 64}
              part: {index: 65}
            required: [valueReference, value]
package_version: 0.0.1-alpha-6
class: profile
kind: resource
url: https://medikit.nl/fhir/StructureDefinition/medikit-connector-parameters-create-soep
base: https://medikit.nl/fhir/StructureDefinition/medikit-connector-parameters-base
version: 0.1.0