CDC National Healthcare Safety Network (NHSN) Digital Quality Measures (dQM) Content Package IG
1.0.0 - Release 1

CDC National Healthcare Safety Network (NHSN) Digital Quality Measures (dQM) Content Package IG - Downloaded Version 1.0.0 See the Directory of published versions

## : FHIR Helpers - TTL Representation

Page standards status: Trial-use | Maturity Level: 1

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 "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n<div>\n    <table class=\"grid dict\">\n        \n        \n\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Id: </b></th>\n            <td style=\"padding-left: 4px;\">FHIRHelpers</td>\n        </tr>\n        \n\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Version: </b></th>\n            <td style=\"padding-left: 4px;\">1.0.0</td>\n        </tr>\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Url: </b></th>\n            <td style=\"padding-left: 4px;\"><a href=\"Library-FHIRHelpers.html\">FHIRHelpers</a></td>\n        </tr>\n        \n\n        \n\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\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/6.5.0/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\n        \n        <tr>\n            <th scope=\"row\"><b>Date: </b></th>\n            <td style=\"padding-left: 4px;\">2025-09-15 12:53:39-0400</td>\n        </tr>\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Publisher: </b></th>\n            <td style=\"padding-left: 4px;\">CDC National Healthcare Safety Network (NHSN)</td>\n        </tr>\n        \n\n        \n\n        \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        \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, see the FHIRHelpers wiki page:#xD;\n https://github.com/cqframework/clinical_quality_language/wiki/FHIRHelpers#xD;\n@allowFluent: true#xD;\n*/#xD;\nlibrary FHIRHelpers version '4.0.2'#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.\"start\".value is null then#xD;\n            Interval(period.\"start\".value, period.\"end\".value]#xD;\n        else #xD;\n            if time from period.\"start\".value is null and time from period.\"end\".value is not null then#xD;\n                Interval[#xD;\n                    DateTime(year from period.\"start\".value, month from period.\"start\".value, day from period.\"start\".value,#xD;\n                        0, 0, 0, 0, timezoneoffset from period.\"end\".value), #xD;\n                    period.\"end\".value#xD;\n                ]#xD;\n        else #xD;\n            if time from period.\"end\".value is null and time from period.\"start\".value is not null then#xD;\n                Interval[#xD;\n                    period.\"start\".value, #xD;\n                    DateTime(year from period.\"end\".value, month from period.\"end\".value, day from period.\"end\".value,#xD;\n                        23, 59, 59, 999, timezoneoffset from period.\"start\".value)#xD;\n                ]#xD;\n        else Interval[period.\"start\".value, period.\"end\".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; quantity.unit.value &amp; ' (' &amp; quantity.system.value &amp; '|' &amp; quantity.code.value &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; quantity.unit.value &amp; ' (' &amp; quantity.system.value &amp; '|' &amp; quantity.code.value &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 '&lt;' then#xD;\n                Interval[#xD;\n                    null,#xD;\n                    ToQuantityIgnoringComparator(quantity)#xD;\n                )#xD;\n            when '&lt;=' then#xD;\n                Interval[#xD;\n                    null,#xD;\n                    ToQuantityIgnoringComparator(quantity)#xD;\n                ]#xD;\n            when '&gt;=' then#xD;\n                Interval[#xD;\n                    ToQuantityIgnoringComparator(quantity),#xD;\n                    null#xD;\n                ]#xD;\n            when '&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 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 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&lt;Element&gt;: external#xD;\ndefine function extension(resource Resource, url String) returns List&lt;Element&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&lt;Any&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&lt;Element&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>\n</div>"^^rdf:XMLLiteral
      ] ; #
      fhir:contained ( [
    a fhir:Parameters ;
    fhir:id [ fhir:v "options" ] ;
        ( fhir:parameter [
    fhir:name [ fhir:v "translatorVersion" ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "3.25.0"       ]     ] [
    fhir:name [ fhir:v "option" ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EnableDateRangeOptimization"       ]     ] [
    fhir:name [ fhir:v "option" ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EnableAnnotations"       ]     ] [
    fhir:name [ fhir:v "option" ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EnableLocators"       ]     ] [
    fhir:name [ fhir:v "option" ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "DisableListDemotion"       ]     ] [
    fhir:name [ fhir:v "option" ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "DisableListPromotion"       ]     ] [
    fhir:name [ fhir:v "analyzeDataRequirements" ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v false       ]     ] [
    fhir:name [ fhir:v "collapseDataRequirements" ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v true       ]     ] [
    fhir:name [ fhir:v "compatibilityLevel" ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "1.5"       ]     ] [
    fhir:name [ fhir:v "enableCqlOnly" ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v false       ]     ] [
    fhir:name [ fhir:v "errorLevel" ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Info"       ]     ] [
    fhir:name [ fhir:v "signatureLevel" ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Overloads"       ]     ] [
    fhir:name [ fhir:v "validateUnits" ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v true       ]     ] [
    fhir:name [ fhir:v "verifyOnly" ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v false       ]     ] )
      ] ) ; #
      fhir:extension ( [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-cqlOptions"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:Reference ;
    fhir:reference [ fhir:v "#options" ]     ]
      ] ) ; #
      fhir:url [ fhir:v "http://www.cdc.gov/nhsn/fhirportal/dqm/ig/Library/FHIRHelpers"^^xsd:anyURI] ; #
      fhir:version [ fhir:v "1.0.0"] ; #
      fhir:name [ fhir:v "FHIRHelpers"] ; #
      fhir:status [ fhir:v "draft"] ; #
      fhir:type [
        ( fhir:coding [
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/library-type"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "logic-library" ]     ] )
      ] ; #
      fhir:date [ fhir:v "2025-09-15T12:53:39-04:00"^^xsd:dateTime] ; #
      fhir:publisher [ fhir:v "CDC National Healthcare Safety Network (NHSN)"] ; #
      fhir:contact ( [
    fhir:name [ fhir:v "CDC National Healthcare Safety Network (NHSN)" ] ;
        ( fhir:telecom [
    fhir:system [ fhir:v "url" ] ;
    fhir:value [ fhir:v "http://www.cdc.gov/nhsn" ]     ] [
    fhir:system [ fhir:v "email" ] ;
    fhir:value [ fhir:v "nhsn@cdc.gov" ]     ] )
      ] ) ; #
      fhir:jurisdiction ( [
        ( fhir:coding [
    fhir:system [ fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "US" ]     ] )
      ] ) ; #
      fhir:content ( [
    fhir:contentType [ fhir:v "text/cql" ] ;
    fhir:data [ fhir:v " "^^xsd:base64Binary ]
      ] ) . #