CMS FHIR Prototype Measure Calculation Tool IG
0.1.0 - CI Build

CMS FHIR Prototype Measure Calculation Tool IG, published by HL7 International - [Some] Work Group. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/mct-ig/ and changes regularly. See the Directory of published versions

## : FHIR Helpers - TTL Representation

Draft as of 2026-02-27

Raw ttl | Download

    @prefix fhir: <http://hl7.org/fhir/> .
    @prefix owl: <http://www.w3.org/2002/07/owl#> .
    @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
    @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
    @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

    # - resource -------------------------------------------------------------------

     a fhir:Library ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:id [ fhir:v "FHIRHelpers"] ; #
      fhir:text [
    fhir:status [ fhir:v "extensions" ] ;
    fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n    <table class=\"grid dict\">\n        \n        <tr>\n            <th scope=\"row\"><b>Id: </b></th>\n            <td style=\"padding-left: 4px;\">FHIRHelpers</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Url: </b></th>\n            <td style=\"padding-left: 4px;\"><a href=\"Library-FHIRHelpers.html\">FHIR Helpers</a></td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Version: </b></th>\n            <td style=\"padding-left: 4px;\">0.1.0</td>\n        </tr>\n        \n        \n        \n        <tr>\n            <th scope=\"row\"><b>Name: </b></th>\n            <td style=\"padding-left: 4px;\">FHIRHelpers</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Title: </b></th>\n            <td style=\"padding-left: 4px;\">FHIR Helpers</td>\n        </tr>\n        \n        \n        \n        <tr>\n            <th scope=\"row\"><b>Status: </b></th>\n            <td style=\"padding-left: 4px;\">draft</td>\n        </tr>\n        \n        \n        \n        <tr>\n            <th scope=\"row\"><b>Type: </b></th>\n            <td style=\"padding-left: 4px;\">\n                \n                    \n                        \n                        <p style=\"margin-bottom: 5px;\">\n                            <b>system: </b> <span><a href=\"http://terminology.hl7.org/7.0.1/CodeSystem-library-type.html\">http://terminology.hl7.org/CodeSystem/library-type</a></span>\n                        </p>\n                        \n                        \n                        <p style=\"margin-bottom: 5px;\">\n                            <b>code: </b> <span>logic-library</span>\n                        </p>\n                        \n                        \n                    \n                \n                \n            </td>\n        </tr>\n        \n        \n        \n        <tr>\n            <th scope=\"row\"><b>Date: </b></th>\n            <td style=\"padding-left: 4px;\">2026-02-27 18:11:00+0000</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Publisher: </b></th>\n            <td style=\"padding-left: 4px;\">HL7 International - [Some] Work Group</td>\n        </tr>\n        \n        \n        \n        \n        \n        \n        <tr>\n            <th scope=\"row\"><b>Jurisdiction: </b></th>\n            <td style=\"padding-left: 4px;\">US</td>\n        </tr>\n        \n        \n        \n        \n        \n        \n        \n        \n        \n        \n        \n        \n        <tr>\n          <td colspan=\"2\">\n            <table>\n              <tr><th><a id=\"cql-content\"><b>Content: </b></a> text/cql</th></tr>\n              <tr><td><pre><code class=\"language-cql\">/*#xD;\n@author: Bryn Rhodes#xD;\n@description: This library defines functions to convert between FHIR#xD;\n data types and CQL system-defined types, as well as functions to support#xD;\n FHIRPath implementation. For more information, the FHIRHelpers wiki page:#xD;\n https://github.com/cqframework/clinical_quality_language/wiki/FHIRHelpers#xD;\n@allowFluent: true#xD;\n#xD;\n@update: Refresh based on AU 2022 content; version 4.0.012 for use in the ecqm-content-qicore-2022 repository#xD;\n@update: Added ToValueSet function; version 4.0.013 for use in the ecqm-content-qicore-2022 repository#xD;\n*/#xD;\nlibrary FHIRHelpers version '4.0.013'#xD;\n#xD;\nusing FHIR version '4.0.1'#xD;\n#xD;\ndefine function ToInterval(period FHIR.Period):#xD;\n    if period is null then#xD;\n        null#xD;\n    else#xD;\n        if period.&amp;quot;start&amp;quot; is null then#xD;\n            Interval(period.&amp;quot;start&amp;quot;.value, period.&amp;quot;end&amp;quot;.value]#xD;\n        else#xD;\n            Interval[period.&amp;quot;start&amp;quot;.value, period.&amp;quot;end&amp;quot;.value]#xD;\n#xD;\ndefine function ToCalendarUnit(unit System.String):#xD;\n    case unit#xD;\n        when 'ms' then 'millisecond'#xD;\n        when 's' then 'second'#xD;\n        when 'min' then 'minute'#xD;\n        when 'h' then 'hour'#xD;\n        when 'd' then 'day'#xD;\n        when 'wk' then 'week'#xD;\n        when 'mo' then 'month'#xD;\n        when 'a' then 'year'#xD;\n        else unit#xD;\n    end#xD;\n#xD;\ndefine function ToQuantity(quantity FHIR.Quantity):#xD;\n    case#xD;\n        when quantity is null then null#xD;\n        when quantity.value is null then null#xD;\n        when quantity.comparator is not null then#xD;\n            Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')#xD;\n        when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'#xD;\n              or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then#xD;\n            System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }#xD;\n        else#xD;\n            Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' &amp;amp; quantity.unit.value &amp;amp; ' (' &amp;amp; quantity.system.value &amp;amp; '|' &amp;amp; quantity.code.value &amp;amp; ')')#xD;\n    end#xD;\n#xD;\ndefine function ToQuantityIgnoringComparator(quantity FHIR.Quantity):#xD;\n    case#xD;\n        when quantity is null then null#xD;\n        when quantity.value is null then null#xD;\n        when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'#xD;\n              or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then#xD;\n            System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }#xD;\n        else#xD;\n            Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' &amp;amp; quantity.unit.value &amp;amp; ' (' &amp;amp; quantity.system.value &amp;amp; '|' &amp;amp; quantity.code.value &amp;amp; ')')#xD;\n    end#xD;\n#xD;\ndefine function ToInterval(quantity FHIR.Quantity):#xD;\n    if quantity is null then null else#xD;\n        case quantity.comparator.value#xD;\n            when '&amp;lt;' then#xD;\n                Interval[#xD;\n                    null,#xD;\n                    ToQuantityIgnoringComparator(quantity)#xD;\n                )#xD;\n            when '&amp;lt;=' then#xD;\n                Interval[#xD;\n                    null,#xD;\n                    ToQuantityIgnoringComparator(quantity)#xD;\n                ]#xD;\n            when '&amp;gt;=' then#xD;\n                Interval[#xD;\n                    ToQuantityIgnoringComparator(quantity),#xD;\n                    null#xD;\n                ]#xD;\n            when '&amp;gt;' then#xD;\n                Interval(#xD;\n                    ToQuantityIgnoringComparator(quantity),#xD;\n                    null#xD;\n                ]#xD;\n            else#xD;\n                Interval[ToQuantity(quantity), ToQuantity(quantity)]#xD;\n        end#xD;\n#xD;\ndefine function ToRatio(ratio FHIR.Ratio):#xD;\n    if ratio is null then#xD;\n        null#xD;\n    else#xD;\n        System.Ratio { numerator: ToQuantity(ratio.numerator), denominator: ToQuantity(ratio.denominator) }#xD;\n#xD;\ndefine function ToInterval(range FHIR.Range):#xD;\n    if range is null then#xD;\n        null#xD;\n    else#xD;\n        Interval[ToQuantity(range.low), ToQuantity(range.high)]#xD;\n#xD;\ndefine function ToCode(coding FHIR.Coding):#xD;\n    if coding is null then#xD;\n        null#xD;\n    else#xD;\n        System.Code {#xD;\n          code: coding.code.value,#xD;\n          system: coding.system.value,#xD;\n          version: coding.version.value,#xD;\n          display: coding.display.value#xD;\n        }#xD;\n#xD;\ndefine function ToConcept(concept FHIR.CodeableConcept):#xD;\n    if concept is null then#xD;\n        null#xD;\n    else#xD;\n        System.Concept {#xD;\n            codes: concept.coding C return ToCode(C),#xD;\n            display: concept.text.value#xD;\n        }#xD;\n#xD;\ndefine function ToValueSet(uri String):#xD;\n    if uri is null then#xD;\n        null#xD;\n    else#xD;\n        System.ValueSet {#xD;\n            id: uri#xD;\n        }#xD;\n#xD;\ndefine function reference(reference String):#xD;\n    if reference is null then#xD;\n        null#xD;\n    else#xD;\n        Reference { reference: string { value: reference } }#xD;\n#xD;\ndefine function ToValue(value Choice&amp;lt;base64Binary,#xD;\n        boolean,#xD;\n        canonical,#xD;\n        code,#xD;\n        date,#xD;\n        dateTime,#xD;\n        decimal,#xD;\n        id,#xD;\n        instant,#xD;\n        integer,#xD;\n        markdown,#xD;\n        oid,#xD;\n        positiveInt,#xD;\n        string,#xD;\n        time,#xD;\n        unsignedInt,#xD;\n        uri,#xD;\n        url,#xD;\n        uuid,#xD;\n        Address,#xD;\n        Age,#xD;\n        Annotation,#xD;\n        Attachment,#xD;\n        CodeableConcept,#xD;\n        Coding,#xD;\n        ContactPoint,#xD;\n        Count,#xD;\n        Distance,#xD;\n        Duration,#xD;\n        HumanName,#xD;\n        Identifier,#xD;\n        Money,#xD;\n        Period,#xD;\n        Quantity,#xD;\n        Range,#xD;\n        Ratio,#xD;\n        Reference,#xD;\n        SampledData,#xD;\n        Signature,#xD;\n        Timing,#xD;\n        ContactDetail,#xD;\n        Contributor,#xD;\n        DataRequirement,#xD;\n        Expression,#xD;\n        ParameterDefinition,#xD;\n        RelatedArtifact,#xD;\n        TriggerDefinition,#xD;\n        UsageContext,#xD;\n        Dosage,#xD;\n        Meta&amp;gt;):#xD;\n    case#xD;\n      when value is base64Binary then (value as base64Binary).value#xD;\n      when value is boolean then (value as boolean).value#xD;\n      when value is canonical then (value as canonical).value#xD;\n      when value is code then (value as code).value#xD;\n      when value is date then (value as date).value#xD;\n      when value is dateTime then (value as dateTime).value#xD;\n      when value is decimal then (value as decimal).value#xD;\n      when value is id then (value as id).value#xD;\n      when value is instant then (value as instant).value#xD;\n      when value is integer then (value as integer).value#xD;\n      when value is markdown then (value as markdown).value#xD;\n      when value is oid then (value as oid).value#xD;\n      when value is positiveInt then (value as positiveInt).value#xD;\n      when value is string then (value as string).value#xD;\n      when value is time then (value as time).value#xD;\n      when value is unsignedInt then (value as unsignedInt).value#xD;\n      when value is uri then (value as uri).value#xD;\n      when value is url then (value as url).value#xD;\n      when value is uuid then (value as uuid).value#xD;\n      when value is Age then ToQuantity(value as Age)#xD;\n      when value is CodeableConcept then ToConcept(value as CodeableConcept)#xD;\n      when value is Coding then ToCode(value as Coding)#xD;\n      when value is Count then ToQuantity(value as Count)#xD;\n      when value is Distance then ToQuantity(value as Distance)#xD;\n      when value is Duration then ToQuantity(value as Duration)#xD;\n      when value is Quantity then ToQuantity(value as Quantity)#xD;\n      when value is Range then ToInterval(value as Range)#xD;\n      when value is Period then ToInterval(value as Period)#xD;\n      when value is Ratio then ToRatio(value as Ratio)#xD;\n      else value as Choice&amp;lt;Address,#xD;\n        Annotation,#xD;\n        Attachment,#xD;\n        ContactPoint,#xD;\n        HumanName,#xD;\n        Identifier,#xD;\n        Money,#xD;\n        Reference,#xD;\n        SampledData,#xD;\n        Signature,#xD;\n        Timing,#xD;\n        ContactDetail,#xD;\n        Contributor,#xD;\n        DataRequirement,#xD;\n        Expression,#xD;\n        ParameterDefinition,#xD;\n        RelatedArtifact,#xD;\n        TriggerDefinition,#xD;\n        UsageContext,#xD;\n        Dosage,#xD;\n        Meta&amp;gt;#xD;\n    end#xD;\n#xD;\ndefine function resolve(reference String) returns Resource: external#xD;\ndefine function resolve(reference Reference) returns Resource: external#xD;\ndefine function reference(resource Resource) returns Reference: external#xD;\ndefine function extension(element Element, url String) returns List&amp;lt;Extension&amp;gt;: external#xD;\ndefine function extension(resource DomainResource, url String) returns List&amp;lt;Extension&amp;gt;: external#xD;\ndefine function modifierExtension(element BackboneElement, url String) returns List&amp;lt;Extension&amp;gt;: external#xD;\ndefine function modifierExtension(resource DomainResource, url String) returns List&amp;lt;Extension&amp;gt;: external#xD;\ndefine function hasValue(element Element) returns Boolean: external#xD;\ndefine function getValue(element Element) returns Any: external#xD;\ndefine function ofType(identifier String) returns List&amp;lt;Any&amp;gt;: external#xD;\ndefine function is(identifier String) returns Boolean: external#xD;\ndefine function as(identifier String) returns Any: external#xD;\ndefine function elementDefinition(element Element) returns ElementDefinition: external#xD;\ndefine function slice(element Element, url String, name String) returns List&amp;lt;Element&amp;gt;: external#xD;\ndefine function checkModifiers(resource Resource) returns Resource: external#xD;\ndefine function checkModifiers(resource Resource, modifier String) returns Resource: external#xD;\ndefine function checkModifiers(element Element) returns Element: external#xD;\ndefine function checkModifiers(element Element, modifier String) returns Element: external#xD;\ndefine function conformsTo(resource Resource, structure String) returns Boolean: external#xD;\ndefine function memberOf(code code, valueSet String) returns Boolean: external#xD;\ndefine function memberOf(coding Coding, valueSet String) returns Boolean: external#xD;\ndefine function memberOf(concept CodeableConcept, valueSet String) returns Boolean: external#xD;\ndefine function subsumes(coding Coding, subsumedCoding Coding) returns Boolean: external#xD;\ndefine function subsumes(concept CodeableConcept, subsumedConcept CodeableConcept) returns Boolean: external#xD;\ndefine function subsumedBy(coding Coding, subsumingCoding Coding) returns Boolean: external#xD;\ndefine function subsumedBy(concept CodeableConcept, subsumingConcept CodeableConcept) returns Boolean: external#xD;\ndefine function htmlChecks(element Element) returns Boolean: external#xD;\n#xD;\ndefine function ToString(value AccountStatus): value.value#xD;\ndefine function ToString(value ActionCardinalityBehavior): value.value#xD;\ndefine function ToString(value ActionConditionKind): value.value#xD;\ndefine function ToString(value ActionGroupingBehavior): value.value#xD;\ndefine function ToString(value ActionParticipantType): value.value#xD;\ndefine function ToString(value ActionPrecheckBehavior): value.value#xD;\ndefine function ToString(value ActionRelationshipType): value.value#xD;\ndefine function ToString(value ActionRequiredBehavior): value.value#xD;\ndefine function ToString(value ActionSelectionBehavior): value.value#xD;\ndefine function ToString(value ActivityDefinitionKind): value.value#xD;\ndefine function ToString(value ActivityParticipantType): value.value#xD;\ndefine function ToString(value AddressType): value.value#xD;\ndefine function ToString(value AddressUse): value.value#xD;\ndefine function ToString(value AdministrativeGender): value.value#xD;\ndefine function ToString(value AdverseEventActuality): value.value#xD;\ndefine function ToString(value AggregationMode): value.value#xD;\ndefine function ToString(value AllergyIntoleranceCategory): value.value#xD;\ndefine function ToString(value AllergyIntoleranceCriticality): value.value#xD;\ndefine function ToString(value AllergyIntoleranceSeverity): value.value#xD;\ndefine function ToString(value AllergyIntoleranceType): value.value#xD;\ndefine function ToString(value AppointmentStatus): value.value#xD;\ndefine function ToString(value AssertionDirectionType): value.value#xD;\ndefine function ToString(value AssertionOperatorType): value.value#xD;\ndefine function ToString(value AssertionResponseTypes): value.value#xD;\ndefine function ToString(value AuditEventAction): value.value#xD;\ndefine function ToString(value AuditEventAgentNetworkType): value.value#xD;\ndefine function ToString(value AuditEventOutcome): value.value#xD;\ndefine function ToString(value BindingStrength): value.value#xD;\ndefine function ToString(value BiologicallyDerivedProductCategory): value.value#xD;\ndefine function ToString(value BiologicallyDerivedProductStatus): value.value#xD;\ndefine function ToString(value BiologicallyDerivedProductStorageScale): value.value#xD;\ndefine function ToString(value BundleType): value.value#xD;\ndefine function ToString(value CapabilityStatementKind): value.value#xD;\ndefine function ToString(value CarePlanActivityKind): value.value#xD;\ndefine function ToString(value CarePlanActivityStatus): value.value#xD;\ndefine function ToString(value CarePlanIntent): value.value#xD;\ndefine function ToString(value CarePlanStatus): value.value#xD;\ndefine function ToString(value CareTeamStatus): value.value#xD;\ndefine function ToString(value CatalogEntryRelationType): value.value#xD;\ndefine function ToString(value ChargeItemDefinitionPriceComponentType): value.value#xD;\ndefine function ToString(value ChargeItemStatus): value.value#xD;\ndefine function ToString(value ClaimResponseStatus): value.value#xD;\ndefine function ToString(value ClaimStatus): value.value#xD;\ndefine function ToString(value ClinicalImpressionStatus): value.value#xD;\ndefine function ToString(value CodeSearchSupport): value.value#xD;\ndefine function ToString(value CodeSystemContentMode): value.value#xD;\ndefine function ToString(value CodeSystemHierarchyMeaning): value.value#xD;\ndefine function ToString(value CommunicationPriority): value.value#xD;\ndefine function ToString(value CommunicationRequestStatus): value.value#xD;\ndefine function ToString(value CommunicationStatus): value.value#xD;\ndefine function ToString(value CompartmentCode): value.value#xD;\ndefine function ToString(value CompartmentType): value.value#xD;\ndefine function ToString(value CompositionAttestationMode): value.value#xD;\ndefine function ToString(value CompositionStatus): value.value#xD;\ndefine function ToString(value ConceptMapEquivalence): value.value#xD;\ndefine function ToString(value ConceptMapGroupUnmappedMode): value.value#xD;\ndefine function ToString(value ConditionalDeleteStatus): value.value#xD;\ndefine function ToString(value ConditionalReadStatus): value.value#xD;\ndefine function ToString(value ConsentDataMeaning): value.value#xD;\ndefine function ToString(value ConsentProvisionType): value.value#xD;\ndefine function ToString(value ConsentState): value.value#xD;\ndefine function ToString(value ConstraintSeverity): value.value#xD;\ndefine function ToString(value ContactPointSystem): value.value#xD;\ndefine function ToString(value ContactPointUse): value.value#xD;\ndefine function ToString(value ContractPublicationStatus): value.value#xD;\ndefine function ToString(value ContractStatus): value.value#xD;\ndefine function ToString(value ContributorType): value.value#xD;\ndefine function ToString(value CoverageStatus): value.value#xD;\ndefine function ToString(value CurrencyCode): value.value#xD;\ndefine function ToString(value DayOfWeek): value.value#xD;\ndefine function ToString(value DaysOfWeek): value.value#xD;\ndefine function ToString(value DetectedIssueSeverity): value.value#xD;\ndefine function ToString(value DetectedIssueStatus): value.value#xD;\ndefine function ToString(value DeviceMetricCalibrationState): value.value#xD;\ndefine function ToString(value DeviceMetricCalibrationType): value.value#xD;\ndefine function ToString(value DeviceMetricCategory): value.value#xD;\ndefine function ToString(value DeviceMetricColor): value.value#xD;\ndefine function ToString(value DeviceMetricOperationalStatus): value.value#xD;\ndefine function ToString(value DeviceNameType): value.value#xD;\ndefine function ToString(value DeviceRequestStatus): value.value#xD;\ndefine function ToString(value DeviceUseStatementStatus): value.value#xD;\ndefine function ToString(value DiagnosticReportStatus): value.value#xD;\ndefine function ToString(value DiscriminatorType): value.value#xD;\ndefine function ToString(value DocumentConfidentiality): value.value#xD;\ndefine function ToString(value DocumentMode): value.value#xD;\ndefine function ToString(value DocumentReferenceStatus): value.value#xD;\ndefine function ToString(value DocumentRelationshipType): value.value#xD;\ndefine function ToString(value EligibilityRequestPurpose): value.value#xD;\ndefine function ToString(value EligibilityRequestStatus): value.value#xD;\ndefine function ToString(value EligibilityResponsePurpose): value.value#xD;\ndefine function ToString(value EligibilityResponseStatus): value.value#xD;\ndefine function ToString(value EnableWhenBehavior): value.value#xD;\ndefine function ToString(value EncounterLocationStatus): value.value#xD;\ndefine function ToString(value EncounterStatus): value.value#xD;\ndefine function ToString(value EndpointStatus): value.value#xD;\ndefine function ToString(value EnrollmentRequestStatus): value.value#xD;\ndefine function ToString(value EnrollmentResponseStatus): value.value#xD;\ndefine function ToString(value EpisodeOfCareStatus): value.value#xD;\ndefine function ToString(value EventCapabilityMode): value.value#xD;\ndefine function ToString(value EventTiming): value.value#xD;\ndefine function ToString(value EvidenceVariableType): value.value#xD;\ndefine function ToString(value ExampleScenarioActorType): value.value#xD;\ndefine function ToString(value ExplanationOfBenefitStatus): value.value#xD;\ndefine function ToString(value ExposureState): value.value#xD;\ndefine function ToString(value ExtensionContextType): value.value#xD;\ndefine function ToString(value FHIRAllTypes): value.value#xD;\ndefine function ToString(value FHIRDefinedType): value.value#xD;\ndefine function ToString(value FHIRDeviceStatus): value.value#xD;\ndefine function ToString(value FHIRResourceType): value.value#xD;\ndefine function ToString(value FHIRSubstanceStatus): value.value#xD;\ndefine function ToString(value FHIRVersion): value.value#xD;\ndefine function ToString(value FamilyHistoryStatus): value.value#xD;\ndefine function ToString(value FilterOperator): value.value#xD;\ndefine function ToString(value FlagStatus): value.value#xD;\ndefine function ToString(value GoalLifecycleStatus): value.value#xD;\ndefine function ToString(value GraphCompartmentRule): value.value#xD;\ndefine function ToString(value GraphCompartmentUse): value.value#xD;\ndefine function ToString(value GroupMeasure): value.value#xD;\ndefine function ToString(value GroupType): value.value#xD;\ndefine function ToString(value GuidanceResponseStatus): value.value#xD;\ndefine function ToString(value GuidePageGeneration): value.value#xD;\ndefine function ToString(value GuideParameterCode): value.value#xD;\ndefine function ToString(value HTTPVerb): value.value#xD;\ndefine function ToString(value IdentifierUse): value.value#xD;\ndefine function ToString(value IdentityAssuranceLevel): value.value#xD;\ndefine function ToString(value ImagingStudyStatus): value.value#xD;\ndefine function ToString(value ImmunizationEvaluationStatus): value.value#xD;\ndefine function ToString(value ImmunizationStatus): value.value#xD;\ndefine function ToString(value InvoicePriceComponentType): value.value#xD;\ndefine function ToString(value InvoiceStatus): value.value#xD;\ndefine function ToString(value IssueSeverity): value.value#xD;\ndefine function ToString(value IssueType): value.value#xD;\ndefine function ToString(value LinkType): value.value#xD;\ndefine function ToString(value LinkageType): value.value#xD;\ndefine function ToString(value ListMode): value.value#xD;\ndefine function ToString(value ListStatus): value.value#xD;\ndefine function ToString(value LocationMode): value.value#xD;\ndefine function ToString(value LocationStatus): value.value#xD;\ndefine function ToString(value MeasureReportStatus): value.value#xD;\ndefine function ToString(value MeasureReportType): value.value#xD;\ndefine function ToString(value MediaStatus): value.value#xD;\ndefine function ToString(value MedicationAdministrationStatus): value.value#xD;\ndefine function ToString(value MedicationDispenseStatus): value.value#xD;\ndefine function ToString(value MedicationKnowledgeStatus): value.value#xD;\ndefine function ToString(value MedicationRequestIntent): value.value#xD;\ndefine function ToString(value MedicationRequestPriority): value.value#xD;\ndefine function ToString(value MedicationRequestStatus): value.value#xD;\ndefine function ToString(value MedicationStatementStatus): value.value#xD;\ndefine function ToString(value MedicationStatus): value.value#xD;\ndefine function ToString(value MessageSignificanceCategory): value.value#xD;\ndefine function ToString(value Messageheader_Response_Request): value.value#xD;\ndefine function ToString(value MimeType): value.value#xD;\ndefine function ToString(value NameUse): value.value#xD;\ndefine function ToString(value NamingSystemIdentifierType): value.value#xD;\ndefine function ToString(value NamingSystemType): value.value#xD;\ndefine function ToString(value NarrativeStatus): value.value#xD;\ndefine function ToString(value NoteType): value.value#xD;\ndefine function ToString(value NutritiionOrderIntent): value.value#xD;\ndefine function ToString(value NutritionOrderStatus): value.value#xD;\ndefine function ToString(value ObservationDataType): value.value#xD;\ndefine function ToString(value ObservationRangeCategory): value.value#xD;\ndefine function ToString(value ObservationStatus): value.value#xD;\ndefine function ToString(value OperationKind): value.value#xD;\ndefine function ToString(value OperationParameterUse): value.value#xD;\ndefine function ToString(value OrientationType): value.value#xD;\ndefine function ToString(value ParameterUse): value.value#xD;\ndefine function ToString(value ParticipantRequired): value.value#xD;\ndefine function ToString(value ParticipantStatus): value.value#xD;\ndefine function ToString(value ParticipationStatus): value.value#xD;\ndefine function ToString(value PaymentNoticeStatus): value.value#xD;\ndefine function ToString(value PaymentReconciliationStatus): value.value#xD;\ndefine function ToString(value ProcedureStatus): value.value#xD;\ndefine function ToString(value PropertyRepresentation): value.value#xD;\ndefine function ToString(value PropertyType): value.value#xD;\ndefine function ToString(value ProvenanceEntityRole): value.value#xD;\ndefine function ToString(value PublicationStatus): value.value#xD;\ndefine function ToString(value QualityType): value.value#xD;\ndefine function ToString(value QuantityComparator): value.value#xD;\ndefine function ToString(value QuestionnaireItemOperator): value.value#xD;\ndefine function ToString(value QuestionnaireItemType): value.value#xD;\ndefine function ToString(value QuestionnaireResponseStatus): value.value#xD;\ndefine function ToString(value ReferenceHandlingPolicy): value.value#xD;\ndefine function ToString(value ReferenceVersionRules): value.value#xD;\ndefine function ToString(value ReferredDocumentStatus): value.value#xD;\ndefine function ToString(value RelatedArtifactType): value.value#xD;\ndefine function ToString(value RemittanceOutcome): value.value#xD;\ndefine function ToString(value RepositoryType): value.value#xD;\ndefine function ToString(value RequestIntent): value.value#xD;\ndefine function ToString(value RequestPriority): value.value#xD;\ndefine function ToString(value RequestStatus): value.value#xD;\ndefine function ToString(value ResearchElementType): value.value#xD;\ndefine function ToString(value ResearchStudyStatus): value.value#xD;\ndefine function ToString(value ResearchSubjectStatus): value.value#xD;\ndefine function ToString(value ResourceType): value.value#xD;\ndefine function ToString(value ResourceVersionPolicy): value.value#xD;\ndefine function ToString(value ResponseType): value.value#xD;\ndefine function ToString(value RestfulCapabilityMode): value.value#xD;\ndefine function ToString(value RiskAssessmentStatus): value.value#xD;\ndefine function ToString(value SPDXLicense): value.value#xD;\ndefine function ToString(value SearchComparator): value.value#xD;\ndefine function ToString(value SearchEntryMode): value.value#xD;\ndefine function ToString(value SearchModifierCode): value.value#xD;\ndefine function ToString(value SearchParamType): value.value#xD;\ndefine function ToString(value SectionMode): value.value#xD;\ndefine function ToString(value SequenceType): value.value#xD;\ndefine function ToString(value ServiceRequestIntent): value.value#xD;\ndefine function ToString(value ServiceRequestPriority): value.value#xD;\ndefine function ToString(value ServiceRequestStatus): value.value#xD;\ndefine function ToString(value SlicingRules): value.value#xD;\ndefine function ToString(value SlotStatus): value.value#xD;\ndefine function ToString(value SortDirection): value.value#xD;\ndefine function ToString(value SpecimenContainedPreference): value.value#xD;\ndefine function ToString(value SpecimenStatus): value.value#xD;\ndefine function ToString(value Status): value.value#xD;\ndefine function ToString(value StrandType): value.value#xD;\ndefine function ToString(value StructureDefinitionKind): value.value#xD;\ndefine function ToString(value StructureMapContextType): value.value#xD;\ndefine function ToString(value StructureMapGroupTypeMode): value.value#xD;\ndefine function ToString(value StructureMapInputMode): value.value#xD;\ndefine function ToString(value StructureMapModelMode): value.value#xD;\ndefine function ToString(value StructureMapSourceListMode): value.value#xD;\ndefine function ToString(value StructureMapTargetListMode): value.value#xD;\ndefine function ToString(value StructureMapTransform): value.value#xD;\ndefine function ToString(value SubscriptionChannelType): value.value#xD;\ndefine function ToString(value SubscriptionStatus): value.value#xD;\ndefine function ToString(value SupplyDeliveryStatus): value.value#xD;\ndefine function ToString(value SupplyRequestStatus): value.value#xD;\ndefine function ToString(value SystemRestfulInteraction): value.value#xD;\ndefine function ToString(value TaskIntent): value.value#xD;\ndefine function ToString(value TaskPriority): value.value#xD;\ndefine function ToString(value TaskStatus): value.value#xD;\ndefine function ToString(value TestReportActionResult): value.value#xD;\ndefine function ToString(value TestReportParticipantType): value.value#xD;\ndefine function ToString(value TestReportResult): value.value#xD;\ndefine function ToString(value TestReportStatus): value.value#xD;\ndefine function ToString(value TestScriptRequestMethodCode): value.value#xD;\ndefine function ToString(value TriggerType): value.value#xD;\ndefine function ToString(value TypeDerivationRule): value.value#xD;\ndefine function ToString(value TypeRestfulInteraction): value.value#xD;\ndefine function ToString(value UDIEntryType): value.value#xD;\ndefine function ToString(value UnitsOfTime): value.value#xD;\ndefine function ToString(value Use): value.value#xD;\ndefine function ToString(value VariableType): value.value#xD;\ndefine function ToString(value VisionBase): value.value#xD;\ndefine function ToString(value VisionEyes): value.value#xD;\ndefine function ToString(value VisionStatus): value.value#xD;\ndefine function ToString(value XPathUsageType): value.value#xD;\ndefine function ToString(value base64Binary): value.value#xD;\ndefine function ToBoolean(value boolean): value.value#xD;\ndefine function ToDate(value date): value.value#xD;\ndefine function ToDateTime(value dateTime): value.value#xD;\ndefine function ToDecimal(value decimal): value.value#xD;\ndefine function ToDateTime(value instant): value.value#xD;\ndefine function ToInteger(value integer): value.value#xD;\ndefine function ToString(value string): value.value#xD;\ndefine function ToTime(value time): value.value#xD;\ndefine function ToString(value uri): value.value#xD;\ndefine function ToString(value xhtml): value.value#xD;\n</code></pre></td></tr>\n            </table>\n          </td>\n        </tr>\n        \n        \n        \n    </table>\n</div>"^^rdf:XMLLiteral ]
      ] ; #
      fhir:extension ( [
    fhir:url [
    fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-softwaresystem"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-softwaresystem>     ] ;
    fhir:value [
    a fhir:Reference ;
    fhir:l fhir:Device/cqf-tooling ;
    fhir:reference [ fhir:v "Device/cqf-tooling" ]     ]
      ] ) ; #
      fhir:url [
    fhir:v "http://cms.gov/fhir/mct/Library/FHIRHelpers"^^xsd:anyURI ;
    fhir:l <http://cms.gov/fhir/mct/Library/FHIRHelpers>
      ] ; #
      fhir:version [ fhir:v "0.1.0"] ; #
      fhir:name [ fhir:v "FHIRHelpers"] ; #
      fhir:title [ fhir:v "FHIR Helpers"] ; #
      fhir:status [ fhir:v "draft"] ; #
      fhir:type [
        ( fhir:coding [
    fhir:system [
    fhir:v "http://terminology.hl7.org/CodeSystem/library-type"^^xsd:anyURI ;
    fhir:l <http://terminology.hl7.org/CodeSystem/library-type>       ] ;
    fhir:code [ fhir:v "logic-library" ]     ] )
      ] ; #
      fhir:date [ fhir:v "2026-02-27T18:11:00+00:00"^^xsd:dateTime] ; #
      fhir:publisher [ fhir:v "HL7 International - [Some] Work Group"] ; #
      fhir:contact ( [
        ( fhir:telecom [
    fhir:system [ fhir:v "url" ] ;
    fhir:value [ fhir:v "http://hl7.org/Special/committees/[something]" ]     ] )
      ] ) ; #
      fhir:jurisdiction ( [
        ( fhir:coding [
    fhir:system [
    fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ;
    fhir:l <urn:iso:std:iso:3166>       ] ;
    fhir:code [ fhir:v "US" ]     ] )
      ] ) ; #
      fhir:content ( [
    fhir:contentType [ fhir:v "text/cql" ] ;
    fhir:data [ fhir:v " "^^xsd:base64Binary ]
      ] ) . #