PackagesCanonicalsLogsProblems
    Packages
    io.health-samurai.core.r3@0.2607.2
    http://health-samurai.io/fhir/core/StructureDefinition/parameters-configureApiProfile
description: Input parameters for the $configure-api operation.
package_name: io.health-samurai.core.r3
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]
        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()}
            index: 22
            elements:
              name:
                pattern: {type: String, value: dataOffloadToExternalStorage}
                index: 23
              value:
                choices: []
                index: 25
              resource: {index: 26}
              part:
                array: true
                min: 2
                index: 27
                slicing:
                  rules: closed
                  discriminator:
                  - {path: name, type: value}
                  min: 2
                  slices:
                    storageProvider:
                      match: {name: storageProvider}
                      schema:
                        _required: true
                        index: 28
                        elements:
                          name:
                            pattern: {type: String, value: storageProvider}
                            index: 29
                          value:
                            choices: [valueCode]
                            index: 31
                          valueCode: {type: code, choiceOf: value, index: 32}
                          resource: {index: 33}
                          part: {index: 34}
                        required: [valueCode, value]
                    azureContainer:
                      match: {name: azureContainer}
                      schema:
                        index: 35
                        elements:
                          name:
                            pattern: {type: String, value: azureContainer}
                            index: 36
                          value:
                            choices: [valueReference]
                            index: 38
                          valueReference:
                            type: Reference
                            choiceOf: value
                            refers: ['http://health-samurai.io/fhir/core/StructureDefinition/AzureContainer']
                            index: 39
                          resource: {index: 40}
                          part: {index: 41}
                        required: [valueReference, value]
                    fhirpathToBase64BinaryElement:
                      match: {name: fhirpathToBase64BinaryElement}
                      schema:
                        array: true
                        min: 1
                        _required: true
                        index: 42
                        elements:
                          name:
                            pattern: {type: String, value: fhirpathToBase64BinaryElement}
                            index: 43
                          value:
                            choices: [valueString]
                            index: 45
                          valueString: {type: string, choiceOf: value, index: 46}
                          resource: {index: 47}
                          part: {index: 48}
                        required: [valueString, value]
        apiId:
          match: {name: apiId}
          schema:
            _required: true
            index: 49
            elements:
              name:
                pattern: {type: String, value: apiId}
                index: 50
              value:
                choices: [valueString]
                index: 52
              valueString: {type: string, choiceOf: value, index: 53}
              resource: {index: 54}
              part: {index: 55}
            required: [valueString, value]
package_version: 0.2607.2
class: profile
kind: resource
url: http://health-samurai.io/fhir/core/StructureDefinition/parameters-configureApiProfile
base: http://hl7.org/fhir/StructureDefinition/Parameters
version: 0.2607.2
required: [parameter]