Respiratory Virus Hospitalization Surveillance Network (RESP-NET) Content Implementation Guide
1.0.0 - STU1 Release 1 United States of America flag

Respiratory Virus Hospitalization Surveillance Network (RESP-NET) Content Implementation Guide, published by HL7 International / Public Health. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-resp-net-ig/ and changes regularly. See the Directory of published versions

: Example of a Specification Bundle containing PlanDefinition - TTL Representation

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:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "resp-net-specification-bundle-example"] ; # 
  fhir:meta [
fhir:versionId [ fhir:v "1" ] ;
fhir:lastUpdated [ fhir:v "2020-11-29T02:03:28.045+00:00"^^xsd:dateTime ] ;
    ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-specification-bundle"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-specification-bundle>     ] )
  ] ; # 
  fhir:type [ fhir:v "collection"] ; # 
  fhir:timestamp [ fhir:v "2020-11-20T11:15:33-10:00"^^xsd:dateTime] ; # 
  fhir:entry ( [
fhir:fullUrl [ fhir:v "http://hl7.org/fhir/us/resp-net/PlanDefinition/resp-net-plandefinition"^^xsd:anyURI ] ;
    ( fhir:resource <http://hl7.org/fhir/us/resp-net/PlanDefinition/resp-net-plandefinition> )
  ] ) . # 

<http://hl7.org/fhir/us/resp-net/PlanDefinition/resp-net-plandefinition> a fhir:PlanDefinition ;
  fhir:id [ fhir:v "resp-net-plandefinition"] ; # 
  fhir:meta [
fhir:versionId [ fhir:v "1" ] ;
fhir:lastUpdated [ fhir:v "2020-11-29T02:03:28.045+00:00"^^xsd:dateTime ] ;
    ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/resp-net/StructureDefinition/respnet-plandefinition"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/resp-net/StructureDefinition/respnet-plandefinition>     ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "extensions" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Narrative: RESP-NET PlanDefinition Example</b></p></div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:extension ( [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/variable"^^xsd:anyURI ] ;
fhir:value [
a fhir:Expression ;
fhir:name [ fhir:v "normalReportingDuration" ] ;
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "1500" ]     ]
  ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/variable"^^xsd:anyURI ] ;
fhir:value [
a fhir:Expression ;
fhir:name [ fhir:v "encounterStartDate" ] ;
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "{{context.encounterStartDate}}" ]     ]
  ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/variable"^^xsd:anyURI ] ;
fhir:value [
a fhir:Expression ;
fhir:name [ fhir:v "encounterEndDate" ] ;
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "{{context.encounterEndDate}}" ]     ]
  ] ) ; # 
  fhir:url [ fhir:v "http://hl7.org/fhir/us/resp-net/StructureDefinition/resp-net-plandefinition"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "1.0"] ; # 
  fhir:name [ fhir:v "RESPNetPlanDefinition"] ; # 
  fhir:title [ fhir:v "RESPNet PlanDefinition"] ; # 
  fhir:type [
    ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/plan-definition-type"^^xsd:anyURI ] ;
fhir:code [ fhir:v "workflow-definition" ] ;
fhir:display [ fhir:v "Workflow Definition" ]     ] )
  ] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:experimental [ fhir:v "false"^^xsd:boolean] ; # 
  fhir:date [ fhir:v "2023-06-01T12:32:29.858-05:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "HL7 Public Health Work Group"] ; # 
  fhir:description [ fhir:v "This is the RESP-NET Knowledge Artifact"] ; # 
  fhir:effectivePeriod [
fhir:start [ fhir:v "2024-11-01"^^xsd:date ]
  ] ; # 
  fhir:relatedArtifact ( [
fhir:type [ fhir:v "depends-on" ] ;
fhir:label [ fhir:v "RESPNet Valueset Library" ] ;
fhir:resource [
fhir:v "http://hl7.org/fhir/us/resp-net/Library/respnet-valuesets"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/resp-net/Library/respnet-valuesets>     ]
  ] ) ; # 
  fhir:action ( [
fhir:id [ fhir:v "start-workflow" ] ;
fhir:description [ fhir:v "This action represents the start of the reporting workflow in response to a named event" ] ;
fhir:textEquivalent [ fhir:v "Start the reporting workflow in response to a named event" ] ;
    ( fhir:code [
      ( fhir:coding [
fhir:system [ fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"^^xsd:anyURI ] ;
fhir:code [ fhir:v "initiate-reporting-workflow" ]       ] )     ] ) ;
    ( fhir:trigger [
fhir:id [ fhir:v "encounter-close" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-named-eventtype-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:CodeableConcept ;
          ( fhir:coding [
fhir:system [ fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-triggerdefinition-namedevents"^^xsd:anyURI ] ;
fhir:code [ fhir:v "encounter-close" ] ;
fhir:display [ fhir:v "Indicates the close of an encounter" ]           ] )         ]       ] ) ;
fhir:type [ fhir:v "named-event" ] ;
fhir:name [ fhir:v "encounter-close" ]     ] [
fhir:id [ fhir:v "encounter-start" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-named-eventtype-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:CodeableConcept ;
          ( fhir:coding [
fhir:system [ fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-triggerdefinition-namedevents"^^xsd:anyURI ] ;
fhir:code [ fhir:v "encounter-start" ] ;
fhir:display [ fhir:v "Indicates the start of an encounter" ]           ] )         ]       ] ) ;
fhir:type [ fhir:v "named-event" ] ;
fhir:name [ fhir:v "encounter-start" ]     ] ) ;
    ( fhir:input [
fhir:id [ fhir:v "patient" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Patient/{{context.patientId}}"         ]       ] ) ;
fhir:type [ fhir:v "Patient" ]     ] [
fhir:id [ fhir:v "encounter" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Encounter/{{context.encounterId}}"         ]       ] ) ;
fhir:type [ fhir:v "Encounter" ]     ] ) ;
    ( fhir:relatedAction [
fhir:actionId [ fhir:v "check-reportability" ] ;
fhir:relationship [ fhir:v "before-start" ] ;
fhir:offset [
a fhir:Duration ;
fhir:value [ fhir:v "1"^^xsd:decimal ] ;
fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "h" ]       ]     ] )
  ] [
fhir:id [ fhir:v "check-reportability" ] ;
fhir:description [ fhir:v "This action represents the start of the check for reportable conditions and labresults in response to the named event." ] ;
fhir:textEquivalent [ fhir:v "Check Reportability workflow" ] ;
    ( fhir:code [
      ( fhir:coding [
fhir:system [ fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"^^xsd:anyURI ] ;
fhir:code [ fhir:v "execute-reporting-workflow" ]       ] )     ] ) ;
    ( fhir:action [
fhir:id [ fhir:v "is-hospital-based-influenza-case" ] ;
fhir:description [ fhir:v "Check for reportability of a hospital based influenza case" ] ;
fhir:textEquivalent [ fhir:v "Check for hospital based influenza case" ] ;
      ( fhir:code [
        ( fhir:coding [
fhir:system [ fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"^^xsd:anyURI ] ;
fhir:code [ fhir:v "evaluate-condition" ]         ] )       ] ) ;
      ( fhir:condition [
fhir:kind [ fhir:v "applicability" ] ;
fhir:expression [
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "%fluTestEncounter.where(status = 'in-progress' or status = 'arrived') and %encounterStartDate + 1 day * %normalReportingDuration >= now() and %positiveFluTestResults.exists()" ]         ]       ] ) ;
      ( fhir:input [
fhir:id [ fhir:v "positiveFluTestResults" ] ;
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Observation?patient=Patient/{{context.patientId}}"           ]         ] ) ;
fhir:type [ fhir:v "Observation" ] ;
        ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/us/resp-net/ValueSet/resp-net-labtest-flu-codes"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/resp-net/ValueSet/resp-net-labtest-flu-codes>           ]         ] [
fhir:path [ fhir:v "value" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/us/resp-net/ValueSet/resp-net-positive-result-codes"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/resp-net/ValueSet/resp-net-positive-result-codes>           ]         ] )       ] [
fhir:id [ fhir:v "fluTestEncounter" ] ;
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "encounter"           ]         ] ) ;
fhir:type [ fhir:v "Encounter" ]       ] ) ;
      ( fhir:relatedAction [
fhir:actionId [ fhir:v "create-resp-net-report" ] ;
fhir:relationship [ fhir:v "before-start" ]       ] )     ] [
fhir:id [ fhir:v "is-clinical-surveillance-influena-case" ] ;
fhir:description [ fhir:v "Check for reportability of a clincial surveillance influenza case" ] ;
fhir:textEquivalent [ fhir:v "Check for clinical surveillance influenza case" ] ;
      ( fhir:code [
        ( fhir:coding [
fhir:system [ fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"^^xsd:anyURI ] ;
fhir:code [ fhir:v "evaluate-condition" ]         ] )       ] ) ;
      ( fhir:condition [
fhir:kind [ fhir:v "applicability" ] ;
fhir:expression [
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "%influenzaTestEncounter.where(status = 'finished') and %encounterStartDate + 1 day * %normalReportingDuration >= now() and %positiveInfluenzaTestResults.exists()" ]         ]       ] ) ;
      ( fhir:input [
fhir:id [ fhir:v "positiveInfluenzaTestResults" ] ;
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Observation?patient=Patient/{{context.patientId}}"           ]         ] ) ;
fhir:type [ fhir:v "Observation" ] ;
        ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/us/resp-net/ValueSet/resp-net-labtest-flu-codes"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/resp-net/ValueSet/resp-net-labtest-flu-codes>           ]         ] [
fhir:path [ fhir:v "value" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/us/resp-net/ValueSet/resp-net-positive-result-codes"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/resp-net/ValueSet/resp-net-positive-result-codes>           ]         ] )       ] [
fhir:id [ fhir:v "influenzaTestEncounter" ] ;
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "encounter"           ]         ] ) ;
fhir:type [ fhir:v "Encounter" ]       ] ) ;
      ( fhir:relatedAction [
fhir:actionId [ fhir:v "create-resp-net-report" ] ;
fhir:relationship [ fhir:v "before-start" ]       ] )     ] [
fhir:id [ fhir:v "is-hospital-disease-burden-case" ] ;
fhir:description [ fhir:v "Check for reportability of a hospital disease burden case" ] ;
fhir:textEquivalent [ fhir:v "Check for hospital disease burden case" ] ;
      ( fhir:code [
        ( fhir:coding [
fhir:system [ fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"^^xsd:anyURI ] ;
fhir:code [ fhir:v "evaluate-condition" ]         ] )       ] ) ;
      ( fhir:condition [
fhir:kind [ fhir:v "applicability" ] ;
fhir:expression [
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "%diseaseEncounter.where(status = 'finished') and %encounterStartDate + 1 day * %normalReportingDuration >= now() and %ariConditions.exists() and (%labTests.exists() or %diagnosticReports.exists())" ]         ]       ] ) ;
      ( fhir:input [
fhir:id [ fhir:v "labTests" ] ;
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Observation?patient=Patient/{{context.patientId}}"           ]         ] ) ;
fhir:type [ fhir:v "Observation" ] ;
        ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/us/resp-net/ValueSet/resp-net-labtest-flu-rsv-covid-codes"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/resp-net/ValueSet/resp-net-labtest-flu-rsv-covid-codes>           ]         ] )       ] [
fhir:id [ fhir:v "diagnosticReports" ] ;
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DiagnosticReport?patient=Patient/{{context.patientId}}"           ]         ] ) ;
fhir:type [ fhir:v "DiagnosticReport" ] ;
        ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/us/resp-net/ValueSet/resp-net-labtest-flu-rsv-covid-codes"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/resp-net/ValueSet/resp-net-labtest-flu-rsv-covid-codes>           ]         ] )       ] [
fhir:id [ fhir:v "diseaseEncounter" ] ;
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "encounter"           ]         ] ) ;
fhir:type [ fhir:v "Encounter" ]       ] [
fhir:id [ fhir:v "ariConditions" ] ;
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Condition?patient=Patient/{{context.patientId}}"           ]         ] ) ;
fhir:type [ fhir:v "Condition" ] ;
        ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/us/resp-net/ValueSet/resp-net-ari-test-codes"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/resp-net/ValueSet/resp-net-ari-test-codes>           ]         ] )       ] ) ;
      ( fhir:relatedAction [
fhir:actionId [ fhir:v "create-resp-net-report" ] ;
fhir:relationship [ fhir:v "before-start" ]       ] )     ] [
fhir:id [ fhir:v "is-covid19-surveillance-case" ] ;
fhir:description [ fhir:v "Check for reportability of a covid-19 surveillance case" ] ;
fhir:textEquivalent [ fhir:v "Check for covid-19 surveillance case" ] ;
      ( fhir:code [
        ( fhir:coding [
fhir:system [ fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"^^xsd:anyURI ] ;
fhir:code [ fhir:v "evaluate-condition" ]         ] )       ] ) ;
      ( fhir:condition [
fhir:kind [ fhir:v "applicability" ] ;
fhir:expression [
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "%covidEncounter.where(status = 'finished') and %encounterStartDate + 1 day * %normalReportingDuration >= now() and %positiveCovidTestResults.exists()" ]         ]       ] ) ;
      ( fhir:input [
fhir:id [ fhir:v "positiveCovidTestResults" ] ;
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Observation?patient=Patient/{{context.patientId}}"           ]         ] ) ;
fhir:type [ fhir:v "Observation" ] ;
        ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/us/resp-net/ValueSet/resp-net-labtest-covid-codes"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/resp-net/ValueSet/resp-net-labtest-covid-codes>           ]         ] [
fhir:path [ fhir:v "value" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/us/resp-net/ValueSet/resp-net-positive-result-codes"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/resp-net/ValueSet/resp-net-positive-result-codes>           ]         ] )       ] [
fhir:id [ fhir:v "covidEncounter" ] ;
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "encounter"           ]         ] ) ;
fhir:type [ fhir:v "Encounter" ]       ] ) ;
      ( fhir:relatedAction [
fhir:actionId [ fhir:v "create-resp-net-report" ] ;
fhir:relationship [ fhir:v "before-start" ]       ] )     ] [
fhir:id [ fhir:v "is-rsv-surveillance-case" ] ;
fhir:description [ fhir:v "Check for reportability of a RSV surveillance case" ] ;
fhir:textEquivalent [ fhir:v "Check for RSV surveillance case" ] ;
      ( fhir:code [
        ( fhir:coding [
fhir:system [ fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"^^xsd:anyURI ] ;
fhir:code [ fhir:v "evaluate-condition" ]         ] )       ] ) ;
      ( fhir:condition [
fhir:kind [ fhir:v "applicability" ] ;
fhir:expression [
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "%rsvEncounter.where(status = 'finished') and %encounterStartDate + 1 day * %normalReportingDuration >= now() and %positiveRsvTestResults.exists()" ]         ]       ] ) ;
      ( fhir:input [
fhir:id [ fhir:v "positiveRsvTestResults" ] ;
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Observation?patient=Patient/{{context.patientId}}"           ]         ] ) ;
fhir:type [ fhir:v "Observation" ] ;
        ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/us/resp-net/ValueSet/resp-net-labtest-rsv-codes"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/resp-net/ValueSet/resp-net-labtest-rsv-codes>           ]         ] [
fhir:path [ fhir:v "value" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/us/resp-net/ValueSet/resp-net-positive-result-codes"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/resp-net/ValueSet/resp-net-positive-result-codes>           ]         ] )       ] [
fhir:id [ fhir:v "rsvEncounter" ] ;
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "encounter"           ]         ] ) ;
fhir:type [ fhir:v "Encounter" ]       ] ) ;
      ( fhir:relatedAction [
fhir:actionId [ fhir:v "create-resp-net-report" ] ;
fhir:relationship [ fhir:v "before-start" ]       ] )     ] [
fhir:id [ fhir:v "is-influenza-effectiveness-evaluation-case" ] ;
fhir:description [ fhir:v "Check for reportability of a influenza vaccine effectiveness case" ] ;
fhir:textEquivalent [ fhir:v "Check for influenza vaccine effectiveness case" ] ;
      ( fhir:code [
        ( fhir:coding [
fhir:system [ fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"^^xsd:anyURI ] ;
fhir:code [ fhir:v "evaluate-condition" ]         ] )       ] ) ;
      ( fhir:condition [
fhir:kind [ fhir:v "applicability" ] ;
fhir:expression [
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "%influenzaEffectivenessEncounter.where(status = 'finished') and %encounterStartDate + 1 day * %normalReportingDuration >= now() and %negativeFluTestResults.exists()" ]         ]       ] ) ;
      ( fhir:input [
fhir:id [ fhir:v "negativeFluTestResults" ] ;
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Observation?patient=Patient/{{context.patientId}}"           ]         ] ) ;
fhir:type [ fhir:v "Observation" ] ;
        ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/us/resp-net/ValueSet/resp-net-labtest-flu-codes"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/resp-net/ValueSet/resp-net-labtest-flu-codes>           ]         ] [
fhir:path [ fhir:v "value" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/us/resp-net/ValueSet/resp-net-negative-result-codes"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/resp-net/ValueSet/resp-net-negative-result-codes>           ]         ] )       ] [
fhir:id [ fhir:v "influenzaEffectivenessEncounter" ] ;
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "encounter"           ]         ] ) ;
fhir:type [ fhir:v "Encounter" ]       ] ) ;
      ( fhir:relatedAction [
fhir:actionId [ fhir:v "create-resp-net-report" ] ;
fhir:relationship [ fhir:v "before-start" ]       ] )     ] [
fhir:id [ fhir:v "continue-to-check-reportability" ] ;
fhir:description [ fhir:v "Continue to Check for reportability of RESPNet cases until 72 hours after encounter closure" ] ;
fhir:textEquivalent [ fhir:v "Continue to Check for reportability of RESPNet cases until 72 hours after encounter closure" ] ;
      ( fhir:code [
        ( fhir:coding [
fhir:system [ fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"^^xsd:anyURI ] ;
fhir:code [ fhir:v "evaluate-condition" ]         ] )       ] ) ;
      ( fhir:condition [
fhir:kind [ fhir:v "applicability" ] ;
fhir:expression [
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "%contextEncounter.where(status = 'finished') and %encounterEndDate + 72 hours >= now()" ]         ]       ] ) ;
      ( fhir:input [
fhir:id [ fhir:v "contextEncounter" ] ;
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "encounter"           ]         ] ) ;
fhir:type [ fhir:v "Encounter" ]       ] ) ;
      ( fhir:relatedAction [
fhir:actionId [ fhir:v "check-reportability" ] ;
fhir:relationship [ fhir:v "before-start" ] ;
fhir:offset [
a fhir:Duration ;
fhir:value [ fhir:v "24"^^xsd:decimal ] ;
fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "h" ]         ]       ] )     ] )
  ] [
fhir:id [ fhir:v "create-resp-net-report" ] ;
fhir:description [ fhir:v "This action represents the creation, validation and submission of the RESP-NET report." ] ;
fhir:textEquivalent [ fhir:v "Create Report and send to RESP-NET site." ] ;
    ( fhir:code [
      ( fhir:coding [
fhir:system [ fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"^^xsd:anyURI ] ;
fhir:code [ fhir:v "create-report" ]       ] )     ] ) ;
    ( fhir:input [
fhir:id [ fhir:v "contextPatient" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Patient/{{context.patientId}}"         ]       ] ) ;
fhir:type [ fhir:v "Patient" ]     ] [
fhir:id [ fhir:v "conditions" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Condition?patient=Patient/{{context.patientId}}&clinical-status=http://terminology.hl7.org/CodeSystem/condition-clinical|active"         ]       ] ) ;
fhir:type [ fhir:v "Condition" ]     ] [
fhir:id [ fhir:v "allergies" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "AllergyIntolerance?patient=Patient/{{context.patientId}}"         ]       ] ) ;
fhir:type [ fhir:v "AllergyIntolerance" ]     ] [
fhir:id [ fhir:v "careteam" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "CareTeam?patient=Patient/{{context.patientId}}"         ]       ] ) ;
fhir:type [ fhir:v "CareTeam" ]     ] [
fhir:id [ fhir:v "careplan" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "CarePlan?patient=Patient/{{context.patientId}}"         ]       ] ) ;
fhir:type [ fhir:v "CarePlan" ]     ] [
fhir:id [ fhir:v "goals" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Goal?patient=Patient/{{context.patientId}}"         ]       ] ) ;
fhir:type [ fhir:v "Goal" ]     ] [
fhir:id [ fhir:v "reportableEncounter" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Encounter/{{context.encounterId}}"         ]       ] ) ;
fhir:type [ fhir:v "Encounter" ]     ] [
fhir:id [ fhir:v "medRequests" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "MedicationRequest?patient=Patient/{{context.patientId}}&intent=order"         ]       ] ) ;
fhir:type [ fhir:v "MedicationRequest" ]     ] [
fhir:id [ fhir:v "medStatements" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "MedicationStatement?patient=Patient/{{context.patientId}}"         ]       ] ) ;
fhir:type [ fhir:v "MedicationStatement" ]     ] [
fhir:id [ fhir:v "medAdms" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "MedicationAdministration?patient=Patient/{{context.patientId}}"         ]       ] ) ;
fhir:type [ fhir:v "MedicationAdministration" ]     ] [
fhir:id [ fhir:v "vitals" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Observation?patient=Patient/{{context.patientId}}&category=http://terminology.hl7.org/CodeSystem/observation-category|vital-signs"         ]       ] ) ;
fhir:type [ fhir:v "Observation" ]     ] [
fhir:id [ fhir:v "socialHistory" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Observation?patient=Patient/{{context.patientId}}&category=http://terminology.hl7.org/CodeSystem/observation-category|social-history"         ]       ] ) ;
fhir:type [ fhir:v "Observation" ]     ] [
fhir:id [ fhir:v "diagnosticOrders" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "DiagnosticReport?patient=Patient/{{context.patientId}}"         ]       ] ) ;
fhir:type [ fhir:v "DiagnosticReport" ]     ] [
fhir:id [ fhir:v "serviceRequests" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "ServiceRequest?patient=Patient/{{context.patientId}}"         ]       ] ) ;
fhir:type [ fhir:v "ServiceRequest" ]     ] [
fhir:id [ fhir:v "procedures" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Procedure?patient=Patient/{{context.patientId}}"         ]       ] ) ;
fhir:type [ fhir:v "Procedure" ]     ] [
fhir:id [ fhir:v "implantableDevices" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Device?patient=Patient/{{context.patientId}}"         ]       ] ) ;
fhir:type [ fhir:v "Device" ]     ] [
fhir:id [ fhir:v "labs" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-fhirquerypattern-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Observation?patient=Patient/{{context.patientId}}&category=http://terminology.hl7.org/CodeSystem/observation-category|laboratory"         ]       ] ) ;
fhir:type [ fhir:v "Observation" ]     ] ) ;
    ( fhir:output [
fhir:id [ fhir:v "resp-net-report" ] ;
fhir:type [ fhir:v "Bundle" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/resp-net/StructureDefinition/resp-net-reporting-bundle"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/resp-net/StructureDefinition/resp-net-reporting-bundle>       ] )     ] ) ;
    ( fhir:relatedAction [
fhir:actionId [ fhir:v "validate-resp-net-report" ] ;
fhir:relationship [ fhir:v "before-start" ]     ] )
  ] [
fhir:id [ fhir:v "validate-resp-net-report" ] ;
fhir:description [ fhir:v "This action represents the validation of the RESP-NET Report" ] ;
fhir:textEquivalent [ fhir:v "Validate Report" ] ;
    ( fhir:code [
      ( fhir:coding [
fhir:system [ fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"^^xsd:anyURI ] ;
fhir:code [ fhir:v "validate-report" ]       ] )     ] ) ;
    ( fhir:input [
fhir:id [ fhir:v "created-resp-net-report" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "resp-net-report"         ]       ] ) ;
fhir:type [ fhir:v "Bundle" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/resp-net/StructureDefinition/resp-net-reporting-bundle"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/resp-net/StructureDefinition/resp-net-reporting-bundle>       ] )     ] ) ;
    ( fhir:output [
fhir:id [ fhir:v "validated-resp-net-report" ] ;
fhir:type [ fhir:v "Bundle" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/resp-net/StructureDefinition/resp-net-reporting-bundle"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/resp-net/StructureDefinition/resp-net-reporting-bundle>       ] )     ] ) ;
    ( fhir:relatedAction [
fhir:actionId [ fhir:v "submit-resp-net-report" ] ;
fhir:relationship [ fhir:v "before-start" ]     ] )
  ] [
fhir:id [ fhir:v "submit-resp-net-report" ] ;
fhir:description [ fhir:v "This action represents the routing and sending of the RESP-NET Report" ] ;
fhir:textEquivalent [ fhir:v "Route and send RESP-NET Report" ] ;
    ( fhir:code [
      ( fhir:coding [
fhir:system [ fhir:v "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions"^^xsd:anyURI ] ;
fhir:code [ fhir:v "submit-report" ]       ] )     ] ) ;
    ( fhir:input [
fhir:id [ fhir:v "valid-resp-net-report" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-relateddata-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "validated-resp-net-report"         ]       ] ) ;
fhir:type [ fhir:v "Bundle" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/resp-net/StructureDefinition/resp-net-reporting-bundle"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/resp-net/StructureDefinition/resp-net-reporting-bundle>       ] )     ] )
  ] ) . #