description: The CQL Library profile defines conformance expectations for the use of a FHIR Library resource as a wrapper for a Clinical Quality Language (CQL) library package_name: hl7.fhir.uv.cql derivation: constraint name: CQLLibrary type: Library elements: extension: type: Extension mustSupport: true url: http://hl7.org/fhir/StructureDefinition/cqf-cqlOptions index: 0 slicing: slices: cqlOptions: match: {} schema: type: Extension mustSupport: true url: http://hl7.org/fhir/StructureDefinition/cqf-cqlOptions index: 0 elements: value: choices: [valueReference] index: 2 valueReference: type: Reference choiceOf: value refers: ['http://hl7.org/fhir/uv/cql/StructureDefinition/cql-options'] index: 3 required: [valueReference, value] name: {index: 4} subject: mustSupport: true choices: [] index: 6 content: constraint: clb-2: {human: CQL libraries must have a content element with data or a url (or both), severity: error, expression: data.exists() or url.exists()} mustSupport: true array: true min: 1 index: 7 elements: contentType: {type: code, mustSupport: true, index: 8} data: {mustSupport: true, index: 9} url: {mustSupport: true, index: 10} required: [contentType] package_version: 2.0.0-ballot extensions: cqlOptions: url: http://hl7.org/fhir/StructureDefinition/cqf-cqlOptions type: Extension mustSupport: true index: 0 elements: value: choices: [valueReference] index: 2 valueReference: type: Reference choiceOf: value refers: ['http://hl7.org/fhir/uv/cql/StructureDefinition/cql-options'] index: 3 required: [valueReference, value] class: profile kind: resource url: http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library base: http://hl7.org/fhir/StructureDefinition/Library version: 2.0.0-ballot required: [name, content]