description: Parameters profile for $sqlquery-run at the system and type levels. Exactly one of 'queryReference' or 'queryResource' must be provided. package_name: io.health-samurai.core.r4b derivation: constraint name: SQLQueryRunParametersProfile type: Parameters elements: parameter: index: 0 slicing: rules: closed discriminator: - {path: name, type: value} min: 1 slices: _format: match: {name: _format} schema: _required: true index: 1 elements: name: pattern: {type: String, value: _format} index: 2 value: constraint: sqlquery-run-format-1: {human: '_format must be one of: csv, json, ndjson, fhir', severity: error, expression: $this in ('csv' | 'json' | 'ndjson' | 'fhir')} choices: [valueCode] index: 4 valueCode: type: code constraint: sqlquery-run-format-1: {human: '_format must be one of: csv, json, ndjson, fhir', severity: error, expression: $this in ('csv' | 'json' | 'ndjson' | 'fhir')} choiceOf: value index: 5 required: [valueCode, value] header: match: {name: header} schema: index: 6 elements: name: pattern: {type: String, value: header} index: 7 value: choices: [valueBoolean] index: 9 valueBoolean: {type: boolean, choiceOf: value, index: 10} required: [value, valueBoolean] parameters: match: {name: parameters} schema: constraint: sqlquery-run-param-value-types: {human: 'Parameter value must be one of: valueBoolean, valueDate, valueDateTime, valueDecimal, valueInteger, valueString', severity: error, expression: resource.ofType(Parameters).parameter.all(value.empty() or value.type().name in ('boolean' | 'date' | 'dateTime' | 'decimal' | 'integer' | 'string'))} index: 11 elements: name: pattern: {type: String, value: parameters} index: 12 resource: {type: Parameters, index: 13} required: [resource] source: match: {name: source} schema: index: 14 elements: name: pattern: {type: String, value: source} index: 15 value: choices: [valueString] index: 17 valueString: {type: string, choiceOf: value, index: 18} required: [valueString, value] queryReference: match: {name: queryReference} schema: index: 19 elements: name: pattern: {type: String, value: queryReference} index: 20 value: choices: [valueReference] index: 22 valueReference: type: Reference choiceOf: value refers: ['http://hl7.org/fhir/StructureDefinition/Library'] index: 23 required: [valueReference, value] queryResource: match: {name: queryResource} schema: index: 24 elements: name: pattern: {type: String, value: queryResource} index: 25 resource: {type: Library, index: 26} required: [resource] package_version: 0.2605.0 class: profile kind: resource url: http://health-samurai.io/fhir/core/StructureDefinition/parameters-sqlQueryRunParametersProfile base: http://hl7.org/fhir/StructureDefinition/Parameters version: 0.2605.0 required: [parameter]