description: Input parameters for the $create-api operation. package_name: io.health-samurai.core.r4 derivation: constraint name: CreateApiProfile 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] apiId: match: {name: apiId} schema: index: 29 elements: name: pattern: {type: String, value: apiId} index: 30 value: choices: [valueString] index: 32 valueString: {type: string, choiceOf: value, index: 33} resource: {index: 34} part: {index: 35} required: [valueString, value] ifNoneExist: match: {name: ifNoneExist} schema: index: 36 elements: name: pattern: {type: String, value: ifNoneExist} index: 37 value: choices: [valueBoolean] index: 39 valueBoolean: {type: boolean, choiceOf: value, index: 40} resource: {index: 41} part: {index: 42} required: [value, valueBoolean] 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: 43 elements: name: pattern: {type: String, value: dataOffloadToExternalStorage} index: 44 value: choices: [] index: 46 resource: {index: 47} part: array: true min: 2 index: 48 slicing: rules: closed discriminator: - {path: name, type: value} min: 2 slices: storageProvider: match: {name: storageProvider} schema: _required: true index: 49 elements: name: pattern: {type: String, value: storageProvider} index: 50 value: choices: [valueCode] index: 52 valueCode: {type: code, choiceOf: value, index: 53} resource: {index: 54} part: {index: 55} required: [valueCode, value] azureContainer: match: {name: azureContainer} schema: index: 56 elements: name: pattern: {type: String, value: azureContainer} index: 57 value: choices: [valueReference] index: 59 valueReference: type: Reference choiceOf: value refers: ['http://health-samurai.io/fhir/core/StructureDefinition/AzureContainer'] index: 60 resource: {index: 61} part: {index: 62} required: [valueReference, value] awsAccount: match: {name: awsAccount} schema: index: 63 elements: name: pattern: {type: String, value: awsAccount} index: 64 value: choices: [valueReference] index: 66 valueReference: type: Reference choiceOf: value refers: ['http://health-samurai.io/fhir/core/StructureDefinition/AwsAccount'] index: 67 resource: {index: 68} part: {index: 69} required: [valueReference, value] awsBucket: match: {name: awsBucket} schema: index: 70 elements: name: pattern: {type: String, value: awsBucket} index: 71 value: choices: [valueString] index: 73 valueString: {type: string, choiceOf: value, index: 74} resource: {index: 75} part: {index: 76} required: [valueString, value] gcpServiceAccount: match: {name: gcpServiceAccount} schema: index: 77 elements: name: pattern: {type: String, value: gcpServiceAccount} index: 78 value: choices: [valueReference] index: 80 valueReference: type: Reference choiceOf: value refers: ['http://health-samurai.io/fhir/core/StructureDefinition/GcpServiceAccount'] index: 81 resource: {index: 82} part: {index: 83} required: [valueReference, value] gcpBucket: match: {name: gcpBucket} schema: index: 84 elements: name: pattern: {type: String, value: gcpBucket} index: 85 value: choices: [valueString] index: 87 valueString: {type: string, choiceOf: value, index: 88} resource: {index: 89} part: {index: 90} required: [valueString, value] blobNamePrefix: match: {name: blobNamePrefix} schema: index: 91 elements: name: pattern: {type: String, value: blobNamePrefix} index: 92 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: 94 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: 95 resource: {index: 96} part: {index: 97} required: [valueString, value] fhirpathToBase64BinaryElement: match: {name: fhirpathToBase64BinaryElement} schema: array: true min: 1 _required: true index: 98 elements: name: pattern: {type: String, value: fhirpathToBase64BinaryElement} index: 99 value: choices: [valueString] index: 101 valueString: {type: string, choiceOf: value, index: 102} resource: {index: 103} part: {index: 104} required: [valueString, value] encryption: match: {name: encryption} schema: index: 105 elements: name: pattern: {type: String, value: encryption} index: 106 value: choices: [] index: 108 resource: {index: 109} part: array: true min: 2 index: 110 slicing: rules: closed discriminator: - {path: name, type: value} min: 2 slices: jose: match: {name: jose} schema: _required: true index: 111 elements: name: pattern: {type: String, value: jose} index: 112 value: choices: [] index: 114 resource: {index: 115} part: array: true min: 3 index: 116 slicing: rules: closed discriminator: - {path: name, type: value} min: 3 slices: alg: match: {name: alg} schema: _required: true index: 117 elements: name: pattern: {type: String, value: alg} index: 118 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: 120 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: 121 resource: {index: 122} part: {index: 123} required: [valueCode, value] enc: match: {name: enc} schema: _required: true index: 124 elements: name: pattern: {type: String, value: enc} index: 125 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: 127 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: 128 resource: {index: 129} part: {index: 130} required: [valueCode, value] kid: match: {name: kid} schema: _required: true index: 131 elements: name: pattern: {type: String, value: kid} index: 132 value: choices: [valueString] index: 134 valueString: {type: string, choiceOf: value, index: 135} resource: {index: 136} part: {index: 137} required: [valueString, value] decryptValidation: match: {name: decryptValidation} schema: meaningWhenMissing: no-validation index: 138 elements: name: pattern: {type: String, value: decryptValidation} index: 139 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: 141 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: 142 resource: {index: 143} part: {index: 144} required: [valueCode, value] fhirpath: match: {name: fhirpath} schema: array: true min: 1 _required: true index: 145 elements: name: pattern: {type: String, value: fhirpath} index: 146 value: choices: [valueString] index: 148 valueString: {type: string, choiceOf: value, index: 149} resource: {index: 150} part: {index: 151} required: [valueString, value] package_version: 0.2610.0 class: profile kind: resource url: http://health-samurai.io/fhir/core/StructureDefinition/parameters-createApiProfile base: http://hl7.org/fhir/StructureDefinition/Parameters version: 0.2610.0 required: [parameter]