Central Cancer Registry Reporting Content IG
2.0.0-ballot - STU 2 Ballot United States of America flag

Central Cancer Registry Reporting Content IG, published by HL7 International / Public Health. This guide is not an authorized publication; it is the continuous build for version 2.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/fhir-central-cancer-registry-reporting-ig/ and changes regularly. See the Directory of published versions

: CCRR PlanDefinition - Example - TTL Representation

Page standards status: Informative

Raw ttl | Download


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

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

<http://hl7.org/fhir/PlanDefinition/plandefinition-central-cancer-registry-reporting-example> a fhir:PlanDefinition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "plandefinition-central-cancer-registry-reporting-example"] ;
  fhir:Resource.meta [
     fhir:Meta.versionId [ fhir:value "1" ] ;
     fhir:Meta.lastUpdated [ fhir:value "2020-11-29T02:03:28.045+00:00"^^xsd:dateTime ] ;
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/us/central-cancer-registry-reporting/StructureDefinition/ccrr-plandefinition" ;
       fhir:index 0 ;
       fhir:link <http://hl7.org/fhir/us/central-cancer-registry-reporting/StructureDefinition/ccrr-plandefinition>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>CCRR PlanDefinition Example</b></p></div>"
  ] ;
  fhir:PlanDefinition.url [ fhir:value "http://hl7.org/fhir/us/central-cancer-registry-reporting/StructureDefinition/plandefinition-central-cancer-registry-reporting-example"] ;
  fhir:PlanDefinition.identifier [
     fhir:index 0 ;
     fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ] ;
     fhir:Identifier.value [ fhir:value "urn:oid:2.16.840.1.113883.4.642.40.40.34.1" ]
  ] ;
  fhir:PlanDefinition.version [ fhir:value "2.0.0-ballot"] ;
  fhir:PlanDefinition.name [ fhir:value "CentralCancerRegistryReportingExample"] ;
  fhir:PlanDefinition.title [ fhir:value "PlanDefinition Central Cancer Registry Reporting Example"] ;
  fhir:PlanDefinition.type [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/plan-definition-type" ] ;
       fhir:Coding.code [ fhir:value "workflow-definition" ] ;
       fhir:Coding.display [ fhir:value "Workflow Definition" ]
     ]
  ] ;
  fhir:PlanDefinition.status [ fhir:value "draft"] ;
  fhir:PlanDefinition.experimental [ fhir:value "true"^^xsd:boolean] ;
  fhir:PlanDefinition.date [ fhir:value "2020-11-04T12:32:29.858-05:00"^^xsd:dateTime] ;
  fhir:PlanDefinition.publisher [ fhir:value "HL7 International / Public Health"] ;
  fhir:PlanDefinition.contact [
     fhir:index 0 ;
     fhir:ContactDetail.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "http://www.hl7.org/Special/committees/pher" ]
     ]
  ] ;
  fhir:PlanDefinition.description [ fhir:value "This is the Cancer Registry Reporting Knowledge Artifact"] ;
  fhir:PlanDefinition.jurisdiction [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ] ;
       fhir:Coding.code [ fhir:value "US" ]
     ]
  ] ;
  fhir:PlanDefinition.effectivePeriod [
     fhir:Period.start [ fhir:value "2021-11-01"^^xsd:date ]
  ] ;
  fhir:PlanDefinition.relatedArtifact [
     fhir:index 0 ;
     fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ;
     fhir:RelatedArtifact.label [ fhir:value "Central Cancer Registry Trigger Codes" ] ;
     fhir:RelatedArtifact.resource [
       fhir:value "http://hl7.org/fhir/us/central-cancer-registry-reporting/ValueSet/cancer-core-reportability-codes|2.0.0" ;
       fhir:link <http://hl7.org/fhir/us/central-cancer-registry-reporting/ValueSet/cancer-core-reportability-codes|2.0.0>
     ]
  ] ;
  fhir:PlanDefinition.action [
     fhir:index 0 ;
     fhir:Element.id [ fhir:value "start-workflow" ] ;
     fhir:PlanDefinition.action.description [ fhir:value "This action represents the start of the reporting workflow in response to the encounter-close event" ] ;
     fhir:PlanDefinition.action.textEquivalent [ fhir:value "Start the reporting workflow in response to an encounter-close event" ] ;
     fhir:PlanDefinition.action.code [
       fhir:index 0 ;
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions" ] ;
         fhir:Coding.code [ fhir:value "initiate-reporting-workflow" ]
       ]
     ] ;
     fhir:PlanDefinition.action.trigger [
       fhir:index 0 ;
       fhir:Element.id [ fhir:value "encounter-close" ] ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-named-eventtype-extension" ] ;
         fhir:Extension.valueCodeableConcept [
           fhir:CodeableConcept.coding [
             fhir:index 0 ;
             fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-triggerdefinition-namedevents" ] ;
             fhir:Coding.code [ fhir:value "encounter-close" ] ;
             fhir:Coding.display [ fhir:value "Indicates the close of an encounter" ]
           ]
         ]
       ] ;
       fhir:TriggerDefinition.type [ fhir:value "named-event" ] ;
       fhir:TriggerDefinition.name [ fhir:value "encounter-close" ]
     ] ;
     fhir:PlanDefinition.action.relatedAction [
       fhir:index 0 ;
       fhir:PlanDefinition.action.relatedAction.actionId [ fhir:value "check-reportable" ] ;
       fhir:PlanDefinition.action.relatedAction.relationship [ fhir:value "before-start" ] ;
       fhir:PlanDefinition.action.relatedAction.offsetDuration [
         fhir:Quantity.value [ fhir:value "72"^^xsd:decimal ] ;
         fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
         fhir:Quantity.code [ fhir:value "h" ]
       ]
     ]
  ], [
     fhir:index 1 ;
     fhir:Element.id [ fhir:value "check-reportable" ] ;
     fhir:PlanDefinition.action.description [ fhir:value "This action represents the check for suspected reportability of the cancer data." ] ;
     fhir:PlanDefinition.action.textEquivalent [ fhir:value "Check Reportability and setup jobs for future reportability checks." ] ;
     fhir:PlanDefinition.action.code [
       fhir:index 0 ;
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions" ] ;
         fhir:Coding.code [ fhir:value "execute-reporting-workflow" ]
       ]
     ] ;
     fhir:PlanDefinition.action.action [
       fhir:index 0 ;
       fhir:Element.id [ fhir:value "is-encounter-reportable" ] ;
       fhir:PlanDefinition.action.description [ fhir:value "This action represents the check for reportability to create the patient's cancer report." ] ;
       fhir:PlanDefinition.action.textEquivalent [ fhir:value "Check Trigger Codes based on RCTC Value sets." ] ;
       fhir:PlanDefinition.action.code [
         fhir:index 0 ;
         fhir:CodeableConcept.coding [
           fhir:index 0 ;
           fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions" ] ;
           fhir:Coding.code [ fhir:value "check-trigger-codes" ]
         ]
       ] ;
       fhir:PlanDefinition.action.condition [
         fhir:index 0 ;
         fhir:PlanDefinition.action.condition.kind [ fhir:value "applicability" ] ;
         fhir:PlanDefinition.action.condition.expression [
           fhir:Expression.language [ fhir:value "text/fhirpath" ] ;
           fhir:Expression.expression [ fhir:value "%conditions.exists()" ]
         ]
       ] ;
       fhir:PlanDefinition.action.input [
         fhir:index 0 ;
         fhir:Element.id [ fhir:value "conditions" ] ;
         fhir:Element.extension [
           fhir:index 0 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/ph-library/StructureDefinition/cqf-fhirQueryPattern" ] ;
           fhir:Extension.valueString [ fhir:value "Condition?patient=Patient/{{context.patientId}}" ]
         ] ;
         fhir:DataRequirement.type [ fhir:value "Condition" ] ;
         fhir:DataRequirement.codeFilter [
           fhir:index 0 ;
           fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ;
           fhir:DataRequirement.codeFilter.valueSet [
             fhir:value "http://hl7.org/fhir/us/central-cancer-registry-reporting/ValueSet/cancer-core-reportability-codes|2.0.0" ;
             fhir:link <http://hl7.org/fhir/us/central-cancer-registry-reporting/ValueSet/cancer-core-reportability-codes|2.0.0>
           ]
         ]
       ] ;
       fhir:PlanDefinition.action.relatedAction [
         fhir:index 0 ;
         fhir:PlanDefinition.action.relatedAction.actionId [ fhir:value "report-cancer-data" ] ;
         fhir:PlanDefinition.action.relatedAction.relationship [ fhir:value "before-start" ]
       ]
     ], [
       fhir:index 1 ;
       fhir:Element.id [ fhir:value "should-continue-reporting" ] ;
       fhir:PlanDefinition.action.code [
         fhir:index 0 ;
         fhir:CodeableConcept.coding [
           fhir:index 0 ;
           fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions" ] ;
           fhir:Coding.code [ fhir:value "evaluate-condition" ]
         ]
       ] ;
       fhir:PlanDefinition.action.condition [
         fhir:index 0 ;
         fhir:PlanDefinition.action.condition.kind [ fhir:value "applicability" ] ;
         fhir:PlanDefinition.action.condition.expression [
           fhir:Expression.language [ fhir:value "text/fhirpath" ] ;
           fhir:Expression.expression [ fhir:value "%patient.deceased[x] == null && (currentTime - previousReportSubmissionTime) < 7776000" ]
         ]
       ] ;
       fhir:PlanDefinition.action.relatedAction [
         fhir:index 0 ;
         fhir:PlanDefinition.action.relatedAction.actionId [ fhir:value "check-reportable" ] ;
         fhir:PlanDefinition.action.relatedAction.relationship [ fhir:value "before-start" ] ;
         fhir:PlanDefinition.action.relatedAction.offsetDuration [
           fhir:Quantity.value [ fhir:value "6"^^xsd:decimal ] ;
           fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
           fhir:Quantity.code [ fhir:value "mo" ]
         ]
       ]
     ]
  ], [
     fhir:index 2 ;
     fhir:Element.id [ fhir:value "report-cancer-data" ] ;
     fhir:PlanDefinition.action.description [ fhir:value "This action represents the creation, validation and submission of the cancer report." ] ;
     fhir:PlanDefinition.action.textEquivalent [ fhir:value "Check Reportability and setup jobs for future reportability checks." ] ;
     fhir:PlanDefinition.action.code [
       fhir:index 0 ;
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions" ] ;
         fhir:Coding.code [ fhir:value "execute-reporting-workflow" ]
       ]
     ] ;
     fhir:PlanDefinition.action.action [
       fhir:index 0 ;
       fhir:Element.id [ fhir:value "create-cancer-report" ] ;
       fhir:PlanDefinition.action.description [ fhir:value "This action represents the creation of the cancer report." ] ;
       fhir:PlanDefinition.action.textEquivalent [ fhir:value "Central Cancer Registry Report" ] ;
       fhir:PlanDefinition.action.code [
         fhir:index 0 ;
         fhir:CodeableConcept.coding [
           fhir:index 0 ;
           fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions" ] ;
           fhir:Coding.code [ fhir:value "create-report" ]
         ]
       ] ;
       fhir:PlanDefinition.action.input [
         fhir:index 0 ;
         fhir:Element.id [ fhir:value "patient" ] ;
         fhir:DataRequirement.type [ fhir:value "Patient" ] ;
         fhir:DataRequirement.profile [
           fhir:value "http://hl7.org/fhir/us/central-cancer-registry-reporting/StructureDefinition/central-cancer-registry-reporting-patient" ;
           fhir:index 0 ;
           fhir:link <http://hl7.org/fhir/us/central-cancer-registry-reporting/StructureDefinition/central-cancer-registry-reporting-patient>
         ]
       ], [
         fhir:index 1 ;
         fhir:Element.id [ fhir:value "condition" ] ;
         fhir:DataRequirement.type [ fhir:value "Condition" ] ;
         fhir:DataRequirement.profile [
           fhir:value "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-primary-cancer-condition" ;
           fhir:index 0 ;
           fhir:link <http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-primary-cancer-condition>
         ]
       ], [
         fhir:index 2 ;
         fhir:Element.id [ fhir:value "encounter" ] ;
         fhir:DataRequirement.type [ fhir:value "Encounter" ] ;
         fhir:DataRequirement.profile [
           fhir:value "http://hl7.org/fhir/us/central-cancer-registry-reporting/StructureDefinition/central-cancer-registry-reporting-encounter" ;
           fhir:index 0 ;
           fhir:link <http://hl7.org/fhir/us/central-cancer-registry-reporting/StructureDefinition/central-cancer-registry-reporting-encounter>
         ]
       ], [
         fhir:index 3 ;
         fhir:Element.id [ fhir:value "mr" ] ;
         fhir:DataRequirement.type [ fhir:value "MedicationRequest" ] ;
         fhir:DataRequirement.profile [
           fhir:value "http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-cancer-related-medication-request" ;
           fhir:index 0 ;
           fhir:link <http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-cancer-related-medication-request>
         ]
       ], [
         fhir:index 4 ;
         fhir:Element.id [ fhir:value "vitals" ] ;
         fhir:DataRequirement.type [ fhir:value "Observation" ] ;
         fhir:DataRequirement.profile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/vitalsigns" ;
           fhir:index 0 ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/vitalsigns>
         ]
       ], [
         fhir:index 5 ;
         fhir:Element.id [ fhir:value "labs" ] ;
         fhir:DataRequirement.type [ fhir:value "Observation" ] ;
         fhir:DataRequirement.profile [
           fhir:value "http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab|6.1.0" ;
           fhir:index 0 ;
           fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab|6.1.0>
         ]
       ] ;
       fhir:PlanDefinition.action.output [
         fhir:index 0 ;
         fhir:Element.id [ fhir:value "cancer-report" ] ;
         fhir:DataRequirement.type [ fhir:value "Bundle" ] ;
         fhir:DataRequirement.profile [
           fhir:value "http://hl7.org/fhir/us/central-cancer-registry-reporting/StructureDefinition/ccrr-reporting-bundle" ;
           fhir:index 0 ;
           fhir:link <http://hl7.org/fhir/us/central-cancer-registry-reporting/StructureDefinition/ccrr-reporting-bundle>
         ]
       ] ;
       fhir:PlanDefinition.action.relatedAction [
         fhir:index 0 ;
         fhir:PlanDefinition.action.relatedAction.actionId [ fhir:value "validate-report" ] ;
         fhir:PlanDefinition.action.relatedAction.relationship [ fhir:value "before-start" ]
       ]
     ], [
       fhir:index 1 ;
       fhir:Element.id [ fhir:value "validate-cancer-report" ] ;
       fhir:PlanDefinition.action.description [ fhir:value "This action represents the validation of the cancer report." ] ;
       fhir:PlanDefinition.action.textEquivalent [ fhir:value "Validate Report" ] ;
       fhir:PlanDefinition.action.code [
         fhir:index 0 ;
         fhir:CodeableConcept.coding [
           fhir:index 0 ;
           fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions" ] ;
           fhir:Coding.code [ fhir:value "validate-report" ]
         ]
       ] ;
       fhir:PlanDefinition.action.input [
         fhir:index 0 ;
         fhir:Element.id [ fhir:value "created-cancer-report" ] ;
         fhir:DataRequirement.type [ fhir:value "Bundle" ] ;
         fhir:DataRequirement.profile [
           fhir:value "http://hl7.org/fhir/us/central-cancer-registry-reporting/StructureDefinition/ccrr-reporting-bundle" ;
           fhir:index 0 ;
           fhir:link <http://hl7.org/fhir/us/central-cancer-registry-reporting/StructureDefinition/ccrr-reporting-bundle>
         ]
       ] ;
       fhir:PlanDefinition.action.output [
         fhir:index 0 ;
         fhir:Element.id [ fhir:value "validated-cancer-report" ] ;
         fhir:DataRequirement.type [ fhir:value "Bundle" ] ;
         fhir:DataRequirement.profile [
           fhir:value "http://hl7.org/fhir/us/central-cancer-registry-reporting/StructureDefinition/ccrr-reporting-bundle" ;
           fhir:index 0 ;
           fhir:link <http://hl7.org/fhir/us/central-cancer-registry-reporting/StructureDefinition/ccrr-reporting-bundle>
         ]
       ] ;
       fhir:PlanDefinition.action.relatedAction [
         fhir:index 0 ;
         fhir:PlanDefinition.action.relatedAction.actionId [ fhir:value "submit-report" ] ;
         fhir:PlanDefinition.action.relatedAction.relationship [ fhir:value "before-start" ]
       ]
     ], [
       fhir:index 2 ;
       fhir:Element.id [ fhir:value "route-and-send-cancer-report" ] ;
       fhir:PlanDefinition.action.description [ fhir:value "This action represents the routing and sending of the cancer report." ] ;
       fhir:PlanDefinition.action.textEquivalent [ fhir:value "Route and send cancer report" ] ;
       fhir:PlanDefinition.action.code [
         fhir:index 0 ;
         fhir:CodeableConcept.coding [
           fhir:index 0 ;
           fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-plandefinition-actions" ] ;
           fhir:Coding.code [ fhir:value "submit-report" ]
         ]
       ] ;
       fhir:PlanDefinition.action.input [
         fhir:index 0 ;
         fhir:Element.id [ fhir:value "val-cancer-report" ] ;
         fhir:DataRequirement.type [ fhir:value "Bundle" ] ;
         fhir:DataRequirement.profile [
           fhir:value "http://hl7.org/fhir/us/central-cancer-registry-reporting/StructureDefinition/ccrr-reporting-bundle" ;
           fhir:index 0 ;
           fhir:link <http://hl7.org/fhir/us/central-cancer-registry-reporting/StructureDefinition/ccrr-reporting-bundle>
         ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/PlanDefinition/plandefinition-central-cancer-registry-reporting-example.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl ;
  owl:versionIRI <http://build.fhir.org/PlanDefinition/plandefinition-central-cancer-registry-reporting-example.ttl> .