This page is part of the FHIR Specification (v4.6.0: R5 Draft Ballot). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions
FHIR Infrastructure Work Group | Maturity Level: 1 | Informative | Use Context: Any |
URL for this extension:
http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
Status: draft. Extension maintained by: Health Level Seven, Inc. - CDS WG
Represents a specific logic definition used by the artifact.
Context of Use: Use on Element ID Element
Summary
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
logicDefinition | 0..* | Extension | URL = http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition logicDefinition: Represents a specific logic definition used by the artifact. Use on Element ID Element | |
libraryName | 1..1 | string | The name of the library that contains this definition. This is the library name, not the library alias within any particular library usage, and SHOULD be the fully qualified name of the library (i.e. namespace included). | |
name | 1..1 | string | The name of the definition, e.g. Initial Population. For function definitions, this SHOULD include the function parameters (e.g. "Measure Observation"(Encounter Encounter)). | |
statement | 1..1 | string | The complete declaration statement for the definition. For example, define "Initial Population": [Encounter: "Inpatient"] E where duration in days of E.period > 2. | |
displayCategory | 0..1 | string | A string value providing a display category for the logic definition displayed in any human readable representation. | |
displaySequence | 0..1 | integer | An integer value indicating the order in which this definition should be displayed in any human readable representation. | |
Documentation for this format |
Full Structure
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
extension | 0..* | Extension | URL = http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition logicDefinition: Represents a specific logic definition used by the artifact. Use on Element ID Element | |
extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |
extension:libraryName | 1..1 | Extension | Which library | |
id | 0..1 | string | Unique id for inter-element referencing | |
extension | 0..0 | |||
url | 1..1 | uri | "libraryName" | |
value[x] | 1..1 | string | Value of extension | |
extension:name | 1..1 | Extension | Which definition | |
id | 0..1 | string | Unique id for inter-element referencing | |
extension | 0..0 | |||
url | 1..1 | uri | "name" | |
value[x] | 1..1 | string | Value of extension | |
extension:statement | 1..1 | Extension | Complete declaration statement | |
id | 0..1 | string | Unique id for inter-element referencing | |
extension | 0..0 | |||
url | 1..1 | uri | "statement" | |
value[x] | 1..1 | string | Value of extension | |
extension:displayCategory | 0..1 | Extension | What category? | |
id | 0..1 | string | Unique id for inter-element referencing | |
extension | 0..0 | |||
url | 1..1 | uri | "displayCategory" | |
value[x] | 1..1 | string | Value of extension | |
extension:displaySequence | 0..1 | Extension | What order? | |
id | 0..1 | string | Unique id for inter-element referencing | |
extension | 0..0 | |||
url | 1..1 | uri | "displaySequence" | |
value[x] | 1..1 | integer | Value of extension | |
url | 1..1 | uri | "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" | |
value[x] | 0..0 | |||
valueBase64Binary | base64Binary | |||
valueBoolean | boolean | |||
valueCanonical | canonical(Any) | |||
valueCode | code | |||
valueDate | date | |||
valueDateTime | dateTime | |||
valueDecimal | decimal | |||
valueId | id | |||
valueInstant | instant | |||
valueInteger | integer | |||
valueInteger64 | integer64 | |||
valueMarkdown | markdown | |||
valueOid | oid | |||
valuePositiveInt | positiveInt | |||
valueString | string | |||
valueTime | time | |||
valueUnsignedInt | unsignedInt | |||
valueUri | uri | |||
valueUrl | url | |||
valueUuid | uuid | |||
valueAddress | Address | |||
valueAge | Age | |||
valueAnnotation | Annotation | |||
valueAttachment | Attachment | |||
valueCodeableConcept | CodeableConcept | |||
valueCoding | Coding | |||
valueContactPoint | ContactPoint | |||
valueCount | Count | |||
valueDistance | Distance | |||
valueDuration | Duration | |||
valueHumanName | HumanName | |||
valueIdentifier | Identifier | |||
valueMoney | Money | |||
valuePeriod | Period | |||
valueQuantity | Quantity | |||
valueRange | Range | |||
valueRatio | Ratio | |||
valueReference | Reference(Any) | |||
valueSampledData | SampledData | |||
valueSignature | Signature | |||
valueTiming | Timing | |||
valueContactDetail | ContactDetail | |||
valueContributor | Contributor | |||
valueDataRequirement | DataRequirement | |||
valueExpression | Expression | |||
valueParameterDefinition | ParameterDefinition | |||
valueRelatedArtifact | RelatedArtifact | |||
valueTriggerDefinition | TriggerDefinition | |||
valueUsageContext | UsageContext | |||
valueDosage | Dosage | |||
valueMeta | Meta | |||
Documentation for this format |
XML Template
<!-- logicDefinition --> <extension xmlns="http://hl7.org/fhir" url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" > <-- extension sliced by value:url in the specified orderOpen--> <extension url="libraryName"> 1..1 Extension <!-- 1..1 Which library --> <valueString value="[string]"/><!-- 1..1 Value of extension --> </extension> <extension url="name"> 1..1 Extension <!-- 1..1 Which definition --> <valueString value="[string]"/><!-- 1..1 Value of extension --> </extension> <extension url="statement"> 1..1 Extension <!-- 1..1 Complete declaration statement --> <valueString value="[string]"/><!-- 1..1 Value of extension --> </extension> <extension url="displayCategory"> 0..1 Extension <!-- 0..1 What category? --> <valueString value="[string]"/><!-- 1..1 Value of extension --> </extension> <extension url="displaySequence"> 0..1 Extension <!-- 0..1 What order? --> <valueInteger value="[integer]"/><!-- 1..1 Value of extension --> </extension> </extension>
JSON Template
{ // logicDefinition "extension" : [ // sliced by value:url in the specified order, Open { // Which library // C? R! // from Element: extension "extension" : [ // sliced by value:url in the specified order, Open ] "url" : "libraryName", // R! "valueString" : "<string>" // C? R! Value of extension }, { // Which definition // C? R! // from Element: extension "extension" : [ // sliced by value:url in the specified order, Open ] "url" : "name", // R! "valueString" : "<string>" // C? R! Value of extension }, { // Complete declaration statement // C? R! // from Element: extension "extension" : [ // sliced by value:url in the specified order, Open ] "url" : "statement", // R! "valueString" : "<string>" // C? R! Value of extension }, { // What category? // C? // from Element: extension "extension" : [ // sliced by value:url in the specified order, Open ] "url" : "displayCategory", // R! "valueString" : "<string>" // C? R! Value of extension }, { // What order? // C? // from Element: extension "extension" : [ // sliced by value:url in the specified order, Open ] "url" : "displaySequence", // R! "valueInteger" : <integer> // C? R! Value of extension } ], "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition", // R! // value[x]: Value of extension. One of these 51: }
Summary
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
logicDefinition | 0..* | Extension | URL = http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition logicDefinition: Represents a specific logic definition used by the artifact. Use on Element ID Element | |
libraryName | 1..1 | string | The name of the library that contains this definition. This is the library name, not the library alias within any particular library usage, and SHOULD be the fully qualified name of the library (i.e. namespace included). | |
name | 1..1 | string | The name of the definition, e.g. Initial Population. For function definitions, this SHOULD include the function parameters (e.g. "Measure Observation"(Encounter Encounter)). | |
statement | 1..1 | string | The complete declaration statement for the definition. For example, define "Initial Population": [Encounter: "Inpatient"] E where duration in days of E.period > 2. | |
displayCategory | 0..1 | string | A string value providing a display category for the logic definition displayed in any human readable representation. | |
displaySequence | 0..1 | integer | An integer value indicating the order in which this definition should be displayed in any human readable representation. | |
Documentation for this format |
Full Structure
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
extension | 0..* | Extension | URL = http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition logicDefinition: Represents a specific logic definition used by the artifact. Use on Element ID Element | |
extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |
extension:libraryName | 1..1 | Extension | Which library | |
id | 0..1 | string | Unique id for inter-element referencing | |
extension | 0..0 | |||
url | 1..1 | uri | "libraryName" | |
value[x] | 1..1 | string | Value of extension | |
extension:name | 1..1 | Extension | Which definition | |
id | 0..1 | string | Unique id for inter-element referencing | |
extension | 0..0 | |||
url | 1..1 | uri | "name" | |
value[x] | 1..1 | string | Value of extension | |
extension:statement | 1..1 | Extension | Complete declaration statement | |
id | 0..1 | string | Unique id for inter-element referencing | |
extension | 0..0 | |||
url | 1..1 | uri | "statement" | |
value[x] | 1..1 | string | Value of extension | |
extension:displayCategory | 0..1 | Extension | What category? | |
id | 0..1 | string | Unique id for inter-element referencing | |
extension | 0..0 | |||
url | 1..1 | uri | "displayCategory" | |
value[x] | 1..1 | string | Value of extension | |
extension:displaySequence | 0..1 | Extension | What order? | |
id | 0..1 | string | Unique id for inter-element referencing | |
extension | 0..0 | |||
url | 1..1 | uri | "displaySequence" | |
value[x] | 1..1 | integer | Value of extension | |
url | 1..1 | uri | "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" | |
value[x] | 0..0 | |||
valueBase64Binary | base64Binary | |||
valueBoolean | boolean | |||
valueCanonical | canonical(Any) | |||
valueCode | code | |||
valueDate | date | |||
valueDateTime | dateTime | |||
valueDecimal | decimal | |||
valueId | id | |||
valueInstant | instant | |||
valueInteger | integer | |||
valueInteger64 | integer64 | |||
valueMarkdown | markdown | |||
valueOid | oid | |||
valuePositiveInt | positiveInt | |||
valueString | string | |||
valueTime | time | |||
valueUnsignedInt | unsignedInt | |||
valueUri | uri | |||
valueUrl | url | |||
valueUuid | uuid | |||
valueAddress | Address | |||
valueAge | Age | |||
valueAnnotation | Annotation | |||
valueAttachment | Attachment | |||
valueCodeableConcept | CodeableConcept | |||
valueCoding | Coding | |||
valueContactPoint | ContactPoint | |||
valueCount | Count | |||
valueDistance | Distance | |||
valueDuration | Duration | |||
valueHumanName | HumanName | |||
valueIdentifier | Identifier | |||
valueMoney | Money | |||
valuePeriod | Period | |||
valueQuantity | Quantity | |||
valueRange | Range | |||
valueRatio | Ratio | |||
valueReference | Reference(Any) | |||
valueSampledData | SampledData | |||
valueSignature | Signature | |||
valueTiming | Timing | |||
valueContactDetail | ContactDetail | |||
valueContributor | Contributor | |||
valueDataRequirement | DataRequirement | |||
valueExpression | Expression | |||
valueParameterDefinition | ParameterDefinition | |||
valueRelatedArtifact | RelatedArtifact | |||
valueTriggerDefinition | TriggerDefinition | |||
valueUsageContext | UsageContext | |||
valueDosage | Dosage | |||
valueMeta | Meta | |||
Documentation for this format |
XML Template
<!-- logicDefinition --> <extension xmlns="http://hl7.org/fhir" url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" > <-- extension sliced by value:url in the specified orderOpen--> <extension url="libraryName"> 1..1 Extension <!-- 1..1 Which library --> <valueString value="[string]"/><!-- 1..1 Value of extension --> </extension> <extension url="name"> 1..1 Extension <!-- 1..1 Which definition --> <valueString value="[string]"/><!-- 1..1 Value of extension --> </extension> <extension url="statement"> 1..1 Extension <!-- 1..1 Complete declaration statement --> <valueString value="[string]"/><!-- 1..1 Value of extension --> </extension> <extension url="displayCategory"> 0..1 Extension <!-- 0..1 What category? --> <valueString value="[string]"/><!-- 1..1 Value of extension --> </extension> <extension url="displaySequence"> 0..1 Extension <!-- 0..1 What order? --> <valueInteger value="[integer]"/><!-- 1..1 Value of extension --> </extension> </extension>
JSON Template
{ // logicDefinition "extension" : [ // sliced by value:url in the specified order, Open { // Which library // C? R! // from Element: extension "extension" : [ // sliced by value:url in the specified order, Open ] "url" : "libraryName", // R! "valueString" : "<string>" // C? R! Value of extension }, { // Which definition // C? R! // from Element: extension "extension" : [ // sliced by value:url in the specified order, Open ] "url" : "name", // R! "valueString" : "<string>" // C? R! Value of extension }, { // Complete declaration statement // C? R! // from Element: extension "extension" : [ // sliced by value:url in the specified order, Open ] "url" : "statement", // R! "valueString" : "<string>" // C? R! Value of extension }, { // What category? // C? // from Element: extension "extension" : [ // sliced by value:url in the specified order, Open ] "url" : "displayCategory", // R! "valueString" : "<string>" // C? R! Value of extension }, { // What order? // C? // from Element: extension "extension" : [ // sliced by value:url in the specified order, Open ] "url" : "displaySequence", // R! "valueInteger" : <integer> // C? R! Value of extension } ], "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition", // R! // value[x]: Value of extension. One of these 51: }
Constraints