PackagesCanonicalsLogsProblems
    Packages
    io.health-samurai.core.r4b@0.2610.2
    http://health-samurai.io/fhir/core/StructureDefinition/parameters-configureApiProfile
description: Input parameters for the $configure-api operation.
package_name: io.health-samurai.core.r4b
derivation: constraint
name: ConfigureApiProfile
type: Parameters
elements:
  parameter:
    index: 0
    slicing:
      rules: closed
      discriminator:
      - {path: name, type: value}
      min: 1
      slices:
        resourceType:
          match: {name: resourceType}
          schema:
            _required: true
            index: 1
            elements:
              name:
                pattern: {type: String, value: resourceType}
                index: 2
              value:
                choices: [valueString]
                index: 4
              valueString: {type: string, choiceOf: value, index: 5}
              resource: {index: 6}
              part: {index: 7}
            required: [valueString, value]
        storageId:
          match: {name: storageId}
          schema:
            _required: true
            index: 8
            elements:
              name:
                pattern: {type: String, value: storageId}
                index: 9
              value:
                choices: [valueString]
                index: 11
              valueString: {type: string, choiceOf: value, index: 12}
              resource: {index: 13}
              part: {index: 14}
            required: [valueString, value]
        apiTemplate:
          match: {name: apiTemplate}
          schema:
            _required: true
            index: 15
            elements:
              name:
                pattern: {type: String, value: apiTemplate}
                index: 16
              value:
                pattern: {type: String, value: pre-2604}
                choices: [valueString]
                index: 18
              valueString:
                type: string
                pattern: {type: String, value: pre-2604}
                choiceOf: value
                index: 19
              resource: {index: 20}
              part: {index: 21}
            required: [valueString, value]
        typeStructureDefinition:
          match: {name: typeStructureDefinition}
          schema:
            index: 22
            elements:
              name:
                pattern: {type: String, value: typeStructureDefinition}
                index: 23
              value:
                choices: [valueCanonical]
                index: 25
              valueCanonical: {type: canonical, choiceOf: value, index: 26}
              resource: {index: 27}
              part: {index: 28}
            required: [valueCanonical, value]
        dataOffloadToExternalStorage:
          match: {name: dataOffloadToExternalStorage}
          schema:
            constraint:
              mount-data-offload-azure-container: {human: azureContainer is required when storageProvider is 'azure', severity: error, expression: part.where(name = 'storageProvider' and value = 'azure').exists() implies part.where(name = 'azureContainer').exists()}
              mount-data-offload-aws-account: {human: awsAccount and awsBucket are required when storageProvider is 'aws', severity: error, expression: part.where(name = 'storageProvider' and value = 'aws').exists() implies (part.where(name = 'awsAccount').exists() and part.where(name = 'awsBucket').exists())}
              mount-data-offload-gcp-account: {human: gcpServiceAccount and gcpBucket are required when storageProvider is 'gcp', severity: error, expression: part.where(name = 'storageProvider' and value = 'gcp').exists() implies (part.where(name = 'gcpServiceAccount').exists() and part.where(name = 'gcpBucket').exists())}
            index: 29
            elements:
              name:
                pattern: {type: String, value: dataOffloadToExternalStorage}
                index: 30
              value:
                choices: []
                index: 32
              resource: {index: 33}
              part:
                array: true
                min: 2
                index: 34
                slicing:
                  rules: closed
                  discriminator:
                  - {path: name, type: value}
                  min: 2
                  slices:
                    storageProvider:
                      match: {name: storageProvider}
                      schema:
                        _required: true
                        index: 35
                        elements:
                          name:
                            pattern: {type: String, value: storageProvider}
                            index: 36
                          value:
                            choices: [valueCode]
                            index: 38
                          valueCode: {type: code, choiceOf: value, index: 39}
                          resource: {index: 40}
                          part: {index: 41}
                        required: [valueCode, value]
                    azureContainer:
                      match: {name: azureContainer}
                      schema:
                        index: 42
                        elements:
                          name:
                            pattern: {type: String, value: azureContainer}
                            index: 43
                          value:
                            choices: [valueReference]
                            index: 45
                          valueReference:
                            type: Reference
                            choiceOf: value
                            refers: ['http://health-samurai.io/fhir/core/StructureDefinition/AzureContainer']
                            index: 46
                          resource: {index: 47}
                          part: {index: 48}
                        required: [valueReference, value]
                    awsAccount:
                      match: {name: awsAccount}
                      schema:
                        index: 49
                        elements:
                          name:
                            pattern: {type: String, value: awsAccount}
                            index: 50
                          value:
                            choices: [valueReference]
                            index: 52
                          valueReference:
                            type: Reference
                            choiceOf: value
                            refers: ['http://health-samurai.io/fhir/core/StructureDefinition/AwsAccount']
                            index: 53
                          resource: {index: 54}
                          part: {index: 55}
                        required: [valueReference, value]
                    awsBucket:
                      match: {name: awsBucket}
                      schema:
                        index: 56
                        elements:
                          name:
                            pattern: {type: String, value: awsBucket}
                            index: 57
                          value:
                            choices: [valueString]
                            index: 59
                          valueString: {type: string, choiceOf: value, index: 60}
                          resource: {index: 61}
                          part: {index: 62}
                        required: [valueString, value]
                    gcpServiceAccount:
                      match: {name: gcpServiceAccount}
                      schema:
                        index: 63
                        elements:
                          name:
                            pattern: {type: String, value: gcpServiceAccount}
                            index: 64
                          value:
                            choices: [valueReference]
                            index: 66
                          valueReference:
                            type: Reference
                            choiceOf: value
                            refers: ['http://health-samurai.io/fhir/core/StructureDefinition/GcpServiceAccount']
                            index: 67
                          resource: {index: 68}
                          part: {index: 69}
                        required: [valueReference, value]
                    gcpBucket:
                      match: {name: gcpBucket}
                      schema:
                        index: 70
                        elements:
                          name:
                            pattern: {type: String, value: gcpBucket}
                            index: 71
                          value:
                            choices: [valueString]
                            index: 73
                          valueString: {type: string, choiceOf: value, index: 74}
                          resource: {index: 75}
                          part: {index: 76}
                        required: [valueString, value]
                    blobNamePrefix:
                      match: {name: blobNamePrefix}
                      schema:
                        index: 77
                        elements:
                          name:
                            pattern: {type: String, value: blobNamePrefix}
                            index: 78
                          value:
                            constraint:
                              mount-data-offload-prefix-format: {human: 'blobNamePrefix must be 1-256 characters: one or more ''/''-separated segments of letters, digits, ''_'' or ''-'' (e.g. ''env-1/tenant_a/blobs''); it must not start or end with ''/'' or contain empty segments', severity: error, expression: '$this.length() <= 256 and $this.matches(''^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$'')'}
                            choices: [valueString]
                            index: 80
                          valueString:
                            type: string
                            constraint:
                              mount-data-offload-prefix-format: {human: 'blobNamePrefix must be 1-256 characters: one or more ''/''-separated segments of letters, digits, ''_'' or ''-'' (e.g. ''env-1/tenant_a/blobs''); it must not start or end with ''/'' or contain empty segments', severity: error, expression: '$this.length() <= 256 and $this.matches(''^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$'')'}
                            choiceOf: value
                            index: 81
                          resource: {index: 82}
                          part: {index: 83}
                        required: [valueString, value]
                    fhirpathToBase64BinaryElement:
                      match: {name: fhirpathToBase64BinaryElement}
                      schema:
                        array: true
                        min: 1
                        _required: true
                        index: 84
                        elements:
                          name:
                            pattern: {type: String, value: fhirpathToBase64BinaryElement}
                            index: 85
                          value:
                            choices: [valueString]
                            index: 87
                          valueString: {type: string, choiceOf: value, index: 88}
                          resource: {index: 89}
                          part: {index: 90}
                        required: [valueString, value]
        encryption:
          match: {name: encryption}
          schema:
            index: 91
            elements:
              name:
                pattern: {type: String, value: encryption}
                index: 92
              value:
                choices: []
                index: 94
              resource: {index: 95}
              part:
                array: true
                min: 2
                index: 96
                slicing:
                  rules: closed
                  discriminator:
                  - {path: name, type: value}
                  min: 2
                  slices:
                    jose:
                      match: {name: jose}
                      schema:
                        _required: true
                        index: 97
                        elements:
                          name:
                            pattern: {type: String, value: jose}
                            index: 98
                          value:
                            choices: []
                            index: 100
                          resource: {index: 101}
                          part:
                            array: true
                            min: 3
                            index: 102
                            slicing:
                              rules: closed
                              discriminator:
                              - {path: name, type: value}
                              min: 3
                              slices:
                                alg:
                                  match: {name: alg}
                                  schema:
                                    _required: true
                                    index: 103
                                    elements:
                                      name:
                                        pattern: {type: String, value: alg}
                                        index: 104
                                      value:
                                        constraint:
                                          mount-encryption-alg: {human: alg must be 'dir' (direct encryption with a shared symmetric key), severity: error, expression: $this = 'dir'}
                                        choices: [valueCode]
                                        index: 106
                                      valueCode:
                                        type: code
                                        constraint:
                                          mount-encryption-alg: {human: alg must be 'dir' (direct encryption with a shared symmetric key), severity: error, expression: $this = 'dir'}
                                        choiceOf: value
                                        index: 107
                                      resource: {index: 108}
                                      part: {index: 109}
                                    required: [valueCode, value]
                                enc:
                                  match: {name: enc}
                                  schema:
                                    _required: true
                                    index: 110
                                    elements:
                                      name:
                                        pattern: {type: String, value: enc}
                                        index: 111
                                      value:
                                        constraint:
                                          mount-encryption-enc: {human: 'enc must be ''A256GCM'' (AES-256-GCM), ''XC20P'' (XChaCha20-Poly1305) or ''A256GCMSIV'' (AES-256-GCM-SIV)', severity: error, expression: $this = 'A256GCM' or $this = 'XC20P' or $this = 'A256GCMSIV'}
                                        choices: [valueCode]
                                        index: 113
                                      valueCode:
                                        type: code
                                        constraint:
                                          mount-encryption-enc: {human: 'enc must be ''A256GCM'' (AES-256-GCM), ''XC20P'' (XChaCha20-Poly1305) or ''A256GCMSIV'' (AES-256-GCM-SIV)', severity: error, expression: $this = 'A256GCM' or $this = 'XC20P' or $this = 'A256GCMSIV'}
                                        choiceOf: value
                                        index: 114
                                      resource: {index: 115}
                                      part: {index: 116}
                                    required: [valueCode, value]
                                kid:
                                  match: {name: kid}
                                  schema:
                                    _required: true
                                    index: 117
                                    elements:
                                      name:
                                        pattern: {type: String, value: kid}
                                        index: 118
                                      value:
                                        choices: [valueString]
                                        index: 120
                                      valueString: {type: string, choiceOf: value, index: 121}
                                      resource: {index: 122}
                                      part: {index: 123}
                                    required: [valueString, value]
                    decryptValidation:
                      match: {name: decryptValidation}
                      schema:
                        meaningWhenMissing: no-validation
                        index: 124
                        elements:
                          name:
                            pattern: {type: String, value: decryptValidation}
                            index: 125
                          value:
                            constraint:
                              mount-encryption-decrypt-validation: {human: decryptValidation must be 'reject-undecryptable' or 'no-validation', severity: error, expression: $this = 'reject-undecryptable' or $this = 'no-validation'}
                            choices: [valueCode]
                            index: 127
                          valueCode:
                            type: code
                            constraint:
                              mount-encryption-decrypt-validation: {human: decryptValidation must be 'reject-undecryptable' or 'no-validation', severity: error, expression: $this = 'reject-undecryptable' or $this = 'no-validation'}
                            choiceOf: value
                            index: 128
                          resource: {index: 129}
                          part: {index: 130}
                        required: [valueCode, value]
                    fhirpath:
                      match: {name: fhirpath}
                      schema:
                        array: true
                        min: 1
                        _required: true
                        index: 131
                        elements:
                          name:
                            pattern: {type: String, value: fhirpath}
                            index: 132
                          value:
                            choices: [valueString]
                            index: 134
                          valueString: {type: string, choiceOf: value, index: 135}
                          resource: {index: 136}
                          part: {index: 137}
                        required: [valueString, value]
        apiId:
          match: {name: apiId}
          schema:
            _required: true
            index: 138
            elements:
              name:
                pattern: {type: String, value: apiId}
                index: 139
              value:
                choices: [valueString]
                index: 141
              valueString: {type: string, choiceOf: value, index: 142}
              resource: {index: 143}
              part: {index: 144}
            required: [valueString, value]
package_version: 0.2610.2
class: profile
kind: resource
url: http://health-samurai.io/fhir/core/StructureDefinition/parameters-configureApiProfile
base: http://hl7.org/fhir/StructureDefinition/Parameters
version: 0.2610.2
required: [parameter]