Electronic Case Reporting (eCR), published by HL7 International / Public Health. This guide is not an authorized publication; it is the continuous build for version 3.0.0-ballot built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/case-reporting/ and changes regularly. See the Directory of published versions
Bundle bundle-ersd-supplemental-example of type collection
Entry 1 - fullUrl = http://hl7.org/fhir/us/ecr/Library/library-ersd-supplemental-library-example
Resource Library:
Title: eRSD Supplemental Library Example Id: library-ersd-supplemental-library-example Version: 2020-11-01 Url: eRSD Supplemental Library Example urn:oid:2.16.840.1.114222.4.11.11111
Experimental: true Type: system: http://terminology.hl7.org/CodeSystem/library-type
code: asset-collection
Publisher: {site.data.fhir.ig.publisher} Description: Description of library
Use Context:
code value reporting specification-type Jurisdiction: US Purpose: Purpose of library
Effective Period: 2020-11-01.. Related Artifacts: Components
Entry 2 - fullUrl = http://hl7.org/fhir/us/ecr/Library/RuleFilters
Resource Library:
Title: Rule Filters Id: RuleFilters Version: 2.1.0 Url: Rule Filters Experimental: true Type: system: http://terminology.hl7.org/CodeSystem/library-type
code: logic-library
Publisher: {site.data.fhir.ig.publisher} Description: An example logic library for eRSD - Chlamydia example.
Jurisdiction: US Related Artifacts: Dependencies
http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1
http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1
- Logical Observation Identifiers, Names and Codes (LOINC)
- US Public Health Usage Context Type
- eRSD Jurisdictions Example
- Example Diagnosis Problem Triggers for Public Health Reporting
- Example Medications Triggers for Public Health Reporting
- Example Lab Order Test Triggers for Public Health Reporting
- Example Lab Obs Test Name Triggers for Public Health Reporting
- Example Organism Substance Triggers for Public Health Reporting
- Example Procedure Triggers for Public Health Reporting
- Example Suspected Disorder Triggers for Public Health Reporting
- Example Chlamydia Lab Obs Test Name Triggers for Public Health Reporting
- Indeterminate or Equivocal Lab Result Value
- Negative or Undetected Lab Result Value
Parameters:
Name Type Min Max In/Out Triggering Encounter Encounter 0 1 In normalReportingDuration Quantity 0 1 In Patient Patient 0 1 Out Chlamydia Test Results Observation 0 * Out Triggering Encounters Encounter 0 * Out Encounter Location References Reference 0 * Out Locations Matching Encounter Location References Location 0 * Out Encounter Location Address Resource 0 * Out Patient Address Resource 0 * Out Jurisdictions Resource 0 * Out Encounter Address Postal Code is in Jurisdiction Codes Resource 0 * Out Encounter Address State is in Jurisdiction Codes Resource 0 * Out Patient Address Postal Code is in Jurisdiction Codes Resource 0 * Out Patient Address State is in Jurisdiction Codes Resource 0 * Out Address Exists in Jurisdiction Codes boolean 0 1 Out Jurisdiction Codes Relevant to Encounter Addresses Resource 0 * Out Jurisdiction Codes Relevant to Patient Addresses Resource 0 * Out Indeterminate Chlamydia Test Results Observation 0 * Out Negative Chlamydia Test Results Observation 0 * Out Reportable Triggering Codes Coding 0 * Out Encounter In Context Encounter 0 1 Out Is Encounter Within Normal Reporting Duration? boolean 0 1 Out eICR Compositions Composition 0 * Out Existing Reportable Triggering Codes Coding 0 * Out Is Encounter Reportable and Within Normal Reporting Duration? boolean 0 1 Out Is Encounter Longer Than Normal Reporting Duration? boolean 0 1 Out Is Encounter In Progress boolean 0 1 Out Is Encounter Complete boolean 0 1 Out Is Encounter In Progress and Within Normal Reporting Duration or 72h or less after end of encounter? boolean 0 1 Out Most recent eICR Composition 0 1 Out Most recent eICR sent over 72 hours ago? boolean 0 1 Out Suspected Disorder Test Results Observation 0 * Out Suspected Disorders Resource 0 * Out Is Suspected Disorder? boolean 0 1 Out Data Requirements:
Type Profile MS Code Filter Patient http://hl7.org/fhir/StructureDefinition/Patient Composition http://hl7.org/fhir/StructureDefinition/Composition ; code filter:
path: type
system: http://loinc.org
code: 55751-2
Encounter http://hl7.org/fhir/StructureDefinition/Encounter ;; Patient http://hl7.org/fhir/StructureDefinition/Patient ;;; Encounter http://hl7.org/fhir/StructureDefinition/Encounter ;; Location http://hl7.org/fhir/StructureDefinition/Location ;;;;;; CodeSystem http://hl7.org/fhir/StructureDefinition/CodeSystem ;;;; Organization http://hl7.org/fhir/StructureDefinition/Organization Observation http://hl7.org/fhir/StructureDefinition/Observation ;;;; code filter:
path: code
value set: http://hl7.org/fhir/us/ecr/ValueSet/valueset-chlamydia-exampleObservation http://hl7.org/fhir/StructureDefinition/Observation ;; Location http://hl7.org/fhir/StructureDefinition/Location ;;;;;; CodeSystem http://hl7.org/fhir/StructureDefinition/CodeSystem ;;;; Patient http://hl7.org/fhir/StructureDefinition/Patient ;;; CodeSystem http://hl7.org/fhir/StructureDefinition/CodeSystem ;;;; Patient http://hl7.org/fhir/StructureDefinition/Patient ;;; CodeSystem http://hl7.org/fhir/StructureDefinition/CodeSystem ;;;; Condition http://hl7.org/fhir/StructureDefinition/Condition ; code filter:
path: code
value set: http://hl7.org/fhir/us/ecr/ValueSet/valueset-sdtc-exampleMedicationRequest http://hl7.org/fhir/StructureDefinition/MedicationRequest ; code filter:
path: medication
value set: http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-exampleComposition http://hl7.org/fhir/StructureDefinition/Composition ; code filter:
path: type
system: http://loinc.org
code: 55751-2
Composition http://hl7.org/fhir/StructureDefinition/Composition ;; code filter:
path: type
system: http://loinc.org
code: 55751-2
Location http://hl7.org/fhir/StructureDefinition/Location ;;;;;; Organization http://hl7.org/fhir/StructureDefinition/Organization Observation http://hl7.org/fhir/StructureDefinition/Observation ;;;; code filter:
path: code
value set: http://hl7.org/fhir/us/ecr/ValueSet/valueset-chlamydia-exampleEncounter http://hl7.org/fhir/StructureDefinition/Encounter ;; Encounter http://hl7.org/fhir/StructureDefinition/Encounter ;; Location http://hl7.org/fhir/StructureDefinition/Location ;;;;;; Encounter http://hl7.org/fhir/StructureDefinition/Encounter CodeSystem http://hl7.org/fhir/StructureDefinition/CodeSystem ;;;; Observation http://hl7.org/fhir/StructureDefinition/Observation ;;;; code filter:
path: code
value set: http://hl7.org/fhir/us/ecr/ValueSet/valueset-chlamydia-example
Content: text/cql library RuleFilters version '2.1.0' using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' codesystem "LOINC": 'http://loinc.org' codesystem "UsageContext": 'http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context-type' codesystem "JurisdictionsList": 'http://hl7.org/fhir/us/ecr/CodeSystem/ersd-jurisdictions-example' // Overall triggering value sets, groupings of all condition-specific value sets, grouped by representation in the information model valueset "Diagnosis Trigger Codes": 'http://hl7.org/fhir/us/ecr/ValueSet/valueset-dxtc-example' valueset "Medication Trigger Codes": 'http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example' valueset "Laboratory Order Trigger Codes": 'http://hl7.org/fhir/us/ecr/ValueSet/valueset-lotc-example' valueset "Laboratory Result Trigger Codes": 'http://hl7.org/fhir/us/ecr/ValueSet/valueset-lrtc-example' valueset "Organism Substance Trigger Codes": 'http://hl7.org/fhir/us/ecr/ValueSet/valueset-ostc-example' valueset "Procedure Trigger Codes": 'http://hl7.org/fhir/us/ecr/ValueSet/valueset-pctc-example' valueset "Suspected Disorder Trigger Codes": 'http://hl7.org/fhir/us/ecr/ValueSet/valueset-sdtc-example' // Condition-specific triggering codes, these would be listed for each condition valueset "Chlamydia Laboratory Result Trigger Codes": 'http://hl7.org/fhir/us/ecr/ValueSet/valueset-chlamydia-example' // Supplemental (or operational) value sets used in suspected reportability determination logic valueset "Indeterminate or Equivocal Lab Result Value": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1035' valueset "Negative or Undetected Lab Result Value": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1034' code "eICRComposition": '55751-2' from "LOINC" parameter "Triggering Encounter" Encounter parameter "normalReportingDuration" default 14 days context Patient define "Chlamydia Test Results": [Observation: "Chlamydia Laboratory Result Trigger Codes"] O where O.status in { 'registered', 'preliminary', 'final', 'amended', 'corrected' } define "Triggering Encounters": [Encounter] E define "Encounter Location References": flatten("Triggering Encounters" TriggeringEncounter return TriggeringEncounter.location.location) define "Locations Matching Encounter Location References": [Location] Location where exists ( "Encounter Location References" LocationReference where ('Location/' + Location.id) ~ LocationReference.reference ) define "Encounter Location Address": "Locations Matching Encounter Location References" Address return Tuple { state: Address.address.state, postalCode: Address.address.postalCode } define "Patient Address": Patient.address PA return Tuple { state: PA.state, postalCode: PA.postalCode } define "Jurisdictions": flatten([CodeSystem] C return C.concept Cpt return Tuple { jurisdictionCode: Cpt.code, definition: Cpt.definition, jurisdictionType: Cpt.property P where P.code='type' return P.value as FHIR.string, stateCode: Cpt.property P where P.code = 'state' return P.value as FHIR.code, postalCode: Cpt.property P where P.code = 'postalcode' return P.value as FHIR.code }) define "Encounter Address Postal Code is in Jurisdiction Codes": "Jurisdictions" J with "Encounter Location Address" LocationAddress such that LocationAddress.postalCode in J.postalCode define "Encounter Address State is in Jurisdiction Codes": "Jurisdictions" J with "Encounter Location Address" LocationAddress such that LocationAddress.state in J.stateCode and 'STATE' in J.jurisdictionType define "Patient Address Postal Code is in Jurisdiction Codes": "Jurisdictions" J with "Patient Address" PA such that PA.postalCode in J.postalCode define "Patient Address State is in Jurisdiction Codes": "Jurisdictions" J with "Patient Address" PA such that (PA.state.value in J.stateCode and 'STATE' in J.jurisdictionType) define "Address Exists in Jurisdiction Codes": exists ( "Encounter Address State is in Jurisdiction Codes" union "Encounter Address Postal Code is in Jurisdiction Codes" union "Patient Address State is in Jurisdiction Codes" union "Patient Address Postal Code is in Jurisdiction Codes" ) define function EncounterAddressJurisdictions(): if exists ("Encounter Address Postal Code is in Jurisdiction Codes") then "Encounter Address Postal Code is in Jurisdiction Codes" else "Encounter Address State is in Jurisdiction Codes" define function PatientAddressJurisdictions(): if exists ("Patient Address Postal Code is in Jurisdiction Codes") then "Patient Address Postal Code is in Jurisdiction Codes" else "Patient Address State is in Jurisdiction Codes" define "Jurisdiction Codes Relevant to Encounter Addresses": EncounterAddressJurisdictions() define "Jurisdiction Codes Relevant to Patient Addresses": PatientAddressJurisdictions() define "Indeterminate Chlamydia Test Results": "Chlamydia Test Results" O let organization: [Organization] where ( ( exists ( O.interpretation interpretationConcept where interpretationConcept as CodeableConcept in "Indeterminate or Equivocal Lab Result Value" ) or O.value as CodeableConcept in "Indeterminate or Equivocal Lab Result Value" ) and "Address Exists in Jurisdiction Codes" ) define "Negative Chlamydia Test Results": "Chlamydia Test Results" O let organization: [Organization] where ( ( exists ( O.interpretation interpretationConcept where interpretationConcept as CodeableConcept in "Negative or Undetected Lab Result Value" ) or O.value as CodeableConcept in "Negative or Undetected Lab Result Value" ) and "Address Exists in Jurisdiction Codes" ) define "Reportable Triggering Codes": flatten ("Indeterminate Chlamydia Test Results" O return O.code.coding) union flatten ("Negative Chlamydia Test Results" O return O.code.coding) // ... reportable triggering codes for other conditions define "Is Encounter Within Normal Reporting Duration?": "Current Encounter Duration"("Encounter In Context") <= "normalReportingDuration" define "Is Encounter Reportable and Within Normal Reporting Duration?": exists ( "Reportable Triggering Codes" except "Existing Reportable Triggering Codes" ) and "Is Encounter Within Normal Reporting Duration?" define "Existing Reportable Triggering Codes": flatten ( "eICR Compositions" C return C.section.entry.extension E where E.url = 'http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-trigger-code-flag-extension' return (singleton from (E.extension SE where SE.url = 'triggerCode')).value as Coding ) define function "Current Encounter Duration"(encounter Encounter): Quantity { value: decimal { value: duration in days between encounter.period.start and Coalesce(encounter.period.end.value, Now()) }, unit: string { value: 'days' } } define "Encounter In Context": if "Triggering Encounter" is not null then "Triggering Encounter" else singleton from "Triggering Encounters" define "Is Encounter Longer Than Normal Reporting Duration?": "Current Encounter Duration"("Encounter In Context") > "normalReportingDuration" define "Is Encounter In Progress": "Encounter In Context".status ~ 'in-progress' define "Is Encounter Complete": "Encounter In Context".status ~ 'finished' define "Is Encounter In Progress and Within Normal Reporting Duration or 72h or less after end of encounter?": ( "Is Encounter In Progress" and "Is Encounter Within Normal Reporting Duration?" ) or (not IsNull("Triggering Encounter") and "Triggering Encounter".period.end 72 hours or less before Now()) or (exists ("Triggering Encounters") and singleton from "Triggering Encounters".period.end 72 hours or less before Now()) define "eICR Compositions": [Composition : "eICRComposition"] define "Most recent eICR sent over 72 hours ago?": if "Most recent eICR" is not null then "Most recent eICR".date 72 hours or more before Now() else false define "Most recent eICR": First ( "eICR Compositions" eICRs sort by date desc ) define "Suspected Disorder Test Results": [Observation] O where O.status in { 'registered', 'preliminary', 'final', 'amended', 'corrected' } and O.value as CodeableConcept in "Laboratory Order Trigger Codes" define "Suspected Disorders": [Condition: "Suspected Disorder Trigger Codes"] union [MedicationRequest: "Medication Trigger Codes"] union "Suspected Disorder Test Results" define "Is Suspected Disorder?": exists ( "Suspected Disorders" )
Content: application/elm+xml Encoded data (205164 characters)
Entry 3 - fullUrl = http://hl7.org/fhir/us/ecr/Library/library-us-ph-supplemental-valueset-library-example
Resource Library:
Title: US Public Health Supplemental ValueSet Library Example Id: library-us-ph-supplemental-valueset-library-example Version: 2020-11-01 Url: US Public Health Supplemental ValueSet Library Example urn:oid:2.16.840.1.114222.4.11.11111.3
Experimental: true Type: system: http://terminology.hl7.org/CodeSystem/library-type
code: asset-collection
Publisher: {site.data.fhir.ig.publisher} Description: Description of library
Use Context:
code value reporting specification-type Jurisdiction: US Purpose: Purpose of library
Effective Period: 2020-11-01.. Related Artifacts: Components
Entry 4 - fullUrl = http://hl7.org/fhir/us/ecr/CodeSystem/ersd-jurisdictions-example
Resource CodeSystem:
version: 9; Last updated: 2021-06-30 03:00:44+0000;
Information Source: #DC4GHkOdJgBd5wb1
Profile: US Public Health CodeSystem
Properties
This code system defines the following properties for its concepts
Name Code Type Description type type code Type of public health jurisdiction. state state code USPS Two Letter Alphabetic Codes. postalcode postalcode string Postal code within the public health jurisdiction. Concepts
This case-insensitive code system
http://hl7.org/fhir/us/ecr/CodeSystem/ersd-jurisdictions-example
defines the following codes:
Entry 5 - fullUrl = http://hl7.org/fhir/us/ecr/ValueSet/valueset-dxtc-example
Resource ValueSet:
version: 5; Last updated: 2020-11-25 23:10:42+0000;
Information Source: #YnUIRZLVoM19ij7X
This value set includes codes based on the following rules:
- Include these codes as defined in
http://hl7.org/fhir/sid/icd-10-cm
version Not Stated (use latest from terminology server)
Code Display A01 Typhoid and paratyphoid fevers A01.0 Typhoid fever - Include these codes as defined in
http://snomed.info/sct
version Not Stated (use latest from terminology server)
Code Display 10750051000119105 Chlamydia trachomatis infection in mother complicating childbirth (disorder) 10754031000119105 Gonorrhea in mother complicating childbirth (disorder) 1084791000119106 Cardiac disorder due to typhoid fever (disorder) 1086991000119103 Gonococcal abscess of brain (disorder) 1087051000119109 Gonococcal osteomyelitis (disorder) 1087061000119106 Gonococcal pneumonia (disorder) 1092371000119103 Salmonella pyelonephritis (disorder)
Entry 6 - fullUrl = http://hl7.org/fhir/us/ecr/ValueSet/valueset-lotc-example
Resource ValueSet:
version: 6; Last updated: 2020-11-25 23:10:42+0000;
Information Source: #FLOTVKreaVlW2e4a
- Include these codes as defined in
http://loinc.org
version Not Stated (use latest from terminology server)
Code Display 11585-7 Bordetella pertussis Ab [Units/volume] in Serum 16474-9 Bordetella pertussis Ab [Units/volume] in Serum by Complement fixation 20992-4 Bordetella pertussis Ab [Presence] in Unspecified specimen 22116-8 Bordetella pertussis Ab [Titer] in Serum 22117-6 Bordetella pertussis Ab [Titer] in Unspecified specimen
Entry 7 - fullUrl = http://hl7.org/fhir/us/ecr/ValueSet/valueset-lrtc-example
Resource ValueSet:
version: 6; Last updated: 2020-11-25 23:10:42+0000;
Information Source: #f1ilk1zBBG4DSxHC
- Include these codes as defined in
http://loinc.org
version Not Stated (use latest from terminology server)
Code Display 11585-7 Bordetella pertussis Ab [Units/volume] in Serum 14127-5 Neisseria gonorrhoeae [Presence] in Anal by Organism specific culture 14461-8 Chlamydia trachomatis [Presence] in Blood by Organism specific culture 14462-6 Chlamydia trachomatis [Presence] in Cerebral spinal fluid by Organism specific culture 14463-4 Chlamydia trachomatis [Presence] in Cervix by Organism specific culture
Entry 8 - fullUrl = http://hl7.org/fhir/us/ecr/ValueSet/valueset-mrtc-example
Resource ValueSet:
version: 6; Last updated: 2020-12-03 05:57:10+0000;
Information Source: #jZvYkGxPTEYqKf6v
- Include these codes as defined in
http://www.nlm.nih.gov/research/umls/rxnorm
version Not Stated (use latest from terminology server)
Code Display 809002 Carbidopa 10 MG / Levodopa 100 MG Disintegrating Oral Tablet [Parcopa] 476515 Carbidopa 25 MG / Levodopa 250 MG Disintegrating Oral Tablet 308988 Carbidopa 25 MG / Levodopa 100 MG Extended Release Oral Tablet 724606 Carbidopa 10 MG / Levodopa 100 MG Oral Tablet [Sinemet] 1600914 8 HR Carbidopa 48.75 MG / Levodopa 195 MG Extended Release Oral Capsule 476399 Carbidopa 25 MG / Levodopa 100 MG Disintegrating Oral Tablet
Entry 9 - fullUrl = http://hl7.org/fhir/us/ecr/ValueSet/valueset-ostc-example
Resource ValueSet:
version: 8; Last updated: 2021-06-30 07:40:56+0000;
Information Source: #xas7OF0tYBOe11AS
- Include these codes as defined in
http://snomed.info/sct
version Not Stated (use latest from terminology server)
Code Display 1009003 Salmonella Oakland (organism) 10096007 Salmonella Leoben (organism) 10112007 Salmonella Alamo (organism) 10183008 Salmonella Pensacola (organism) 10248003 Salmonella Travis (organism)
Entry 10 - fullUrl = http://hl7.org/fhir/us/ecr/ValueSet/valueset-pctc-example
Resource ValueSet:
version: 1; Last updated: 2020-12-01 17:02:45+0000;
Information Source: #JGRpT4MaN5pv7ImH
This value set includes codes based on the following rules:
Entry 11 - fullUrl = http://hl7.org/fhir/us/ecr/ValueSet/valueset-sdtc-example
Resource ValueSet:
This value set includes codes based on the following rules:
- Include these codes as defined in
http://hl7.org/fhir/sid/icd-10-cm
version Not Stated (use latest from terminology server)
Code Display A01 Typhoid and paratyphoid fevers A01.0 Typhoid fever - Include these codes as defined in
http://snomed.info/sct
version Not Stated (use latest from terminology server)
Code Display 12591000132100 Suspected severe acute respiratory syndrome (situation) 12601000132105 Probable severe acute respiratory syndrome (situation) 722545003 Suspected rabies (situation) 722546002 Probable rabies (situation) 772147001 Botulism suspected (situation) 772150003 Diphtheria suspected (situation) 772151004 Anthrax suspected (situation)
Entry 12 - fullUrl = http://hl7.org/fhir/us/ecr/ValueSet/valueset-chlamydia-example
Resource ValueSet:
version: 6; Last updated: 2020-11-25 23:10:42+0000;
Information Source: #f1ilk1zBBG4DSxHC
- Include these codes as defined in
http://loinc.org
version Not Stated (use latest from terminology server)
Code Display 14461-8 Chlamydia trachomatis [Presence] in Blood by Organism specific culture 14462-6 Chlamydia trachomatis [Presence] in Cerebral spinal fluid by Organism specific culture 14463-4 Chlamydia trachomatis [Presence] in Cervix by Organism specific culture
Entry 13 - fullUrl = http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1035
Resource ValueSet:
- Include these codes as defined in
http://snomed.info/sct
version Not Stated (use latest from terminology server)
Code Display 280414007 Equivocal result (qualifier value) 280416009 Indeterminate result (qualifier value) 419984006 Inconclusive (qualifier value) 42425007 Equivocal (qualifier value) 64957009 Uncertain (qualifier value) 82334004 Indeterminate (qualifier value)
Entry 14 - fullUrl = http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1034
Resource ValueSet:
- Include these codes as defined in
http://snomed.info/sct
version Not Stated (use latest from terminology server)
Code Display 131194007 Non-Reactive (qualifier value) 168230009 Sample direct microscopy no organism seen (finding) 17621005 Normal (qualifier value) 23506009 Normal flora (finding) 260385009 Negative (qualifier value) 260389003 No reaction (qualifier value) 260394003 Normal limits (qualifier value) 260395002 Normal range (qualifier value) 260415000 Not detected (qualifier value) 264868006 No growth (qualifier value) 264887000 Not isolated (qualifier value) 2667000 Absent (qualifier value) 272519000 Absence findings (qualifier value) 27863008 No organisms seen (finding) 280413001 Normal result (qualifier value) 281297005 Analyte not detected (qualifier value) 371928007 Not significant (qualifier value) 373067005 No (qualifier value) 435151000124100 No acid fast organisms seen (finding) 444991000124106 Repeatedly non-reactive (qualifier value) 47492008 Not seen (qualifier value)