Release 5 Ballot

This page is part of the FHIR Specification (v5.0.0-ballot: FHIR R5 Ballot Preview). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3

Example PlanDefinition/plandefinition-predecessor-example (Turtle)

Clinical Decision Support Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Not linked to any defined compartments

Raw Turtle (+ also see Turtle/RDF Format Specification)

Plan Definition Illustrating Predecessor Relationship

@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 -------------------------------------------------------------------

[a fhir:PlanDefinition;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "plandefinition-predecessor-example"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Id: </b>\n               </td>\n            </tr>\n            <tr>\n               <td style=\"padding-left: 25px; padding-right: 25px;\">PlanDefinition/zika-virus-intervention-initial</td>\n            </tr>\n         </table>\n         <p/>\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Identifier: </b>\n               </td>\n            </tr>\n            <tr>\n               <td style=\"padding-left: 25px; padding-right: 25px;\">\n                  <b>value: </b>\n                  <span>zika-virus-intervention</span>\n               </td>\n            </tr>\n         </table>\n         <p/>\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Title: </b>\n               </td>\n            </tr>\n            <tr>\n               <td style=\"padding-left: 25px; padding-right: 25px;\">Example Zika Virus Intervention</td>\n            </tr>\n         </table>\n         <p/>\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Status: </b>\n               </td>\n            </tr>\n            <tr>\n               <td style=\"padding-left: 25px; padding-right: 25px;\">active</td>\n            </tr>\n         </table>\n         <p/>\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Description: </b>\n               </td>\n            </tr>\n            <tr>\n               <td style=\"padding-left: 25px; padding-right: 25px;\">Zika Virus Management intervention describing the CDC Guidelines for Zika Virus Reporting and Management.</td>\n            </tr>\n         </table>\n         <p/>\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Topic: </b>\n               </td>\n            </tr>\n            <tr>\n               <td style=\"padding-left: 25px; padding-right: 25px;\">\n                  <span>\n                     <b>text: </b>\n                     <span>Zika Virus Management</span>\n                  </span>\n               </td>\n            </tr>\n         </table>\n         <p/>\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Library: </b>\n               </td>\n            </tr>\n            <tr>\n               <td style=\"padding-left: 25px; padding-right: 25px;\">\n                  <b>reference: </b>\n                  <span>Library/zika-virus-intervention-logic</span>\n               </td>\n            </tr>\n         </table>\n         <p/>\n         <h2>Actions</h2>\n         <p style=\"width: 100%;\" class=\"hierarchy\">\n            <span>\n               <b>Step: </b>\n               <br/>\n               <span style=\"padding-left: 25px;\">\n                  <b>title: </b>\n                  <span>Zika Virus Assessment</span>\n                  <br/>\n               </span>\n               <span style=\"padding-left: 25px;\">\n                  <b>condition: </b>\n                  <br/>\n                  <span style=\"padding-left: 50px;\">\n                     <b>type: </b>\n                     <span>applicability</span>\n                     <br/>\n                  </span>\n                  <span style=\"padding-left: 50px;\">\n                     <b>expression: </b>\n                     <span>Is Patient Pregnant</span>\n                     <br/>\n                  </span>\n               </span>\n               <span style=\"padding-left: 25px;\">\n                  <span>\n                     <b>Step: </b>\n                     <br/>\n                     <span style=\"padding-left: 50px;\">\n                        <b>condition: </b>\n                        <br/>\n                        <span style=\"padding-left: 75px;\">\n                           <b>type: </b>\n                           <span>applicability</span>\n                           <br/>\n                        </span>\n                        <span style=\"padding-left: 75px;\">\n                           <b>expression: </b>\n                           <span>Should Administer Zika Virus Exposure Assessment</span>\n                           <br/>\n                        </span>\n                     </span>\n                     <span style=\"padding-left: 50px;\">\n                        <b>condition: </b>\n                        <br/>\n                        <span style=\"padding-left: 75px;\">\n                           <b>reference: </b>\n                           <br/>\n                           <span style=\"padding-left: 100px;\">#administer-zika-virus-exposure-assessment</span>\n                           <br/>\n                           <span>\n							 <span style=\"padding-left: 75px;\">\n								<b>description: </b>\n								<span>Administer Zika Virus Exposure Assessment</span>\n								<br/>\n							 </span>\n							 <span style=\"padding-left: 75px;\">\n								<b>category: </b>\n								<span>procedure</span>\n								<br/>\n							 </span>\n                           </span>\n                        </span>\n                     </span>\n                     <span style=\"padding-left: 50px;\"/>\n                  </span>\n                  <span>\n                     <b>Step: </b>\n                     <br/>\n                     <span style=\"padding-left: 75px;\">\n                        <b>condition: </b>\n                        <br/>\n                        <span style=\"padding-left: 100px;\">\n                           <b>type: </b>\n                           <span>applicability</span>\n                           <br/>\n                        </span>\n                        <span style=\"padding-left: 100px;\">\n                           <b>expression: </b>\n                           <span>Should Order Serum + Urine rRT-PCR Test</span>\n                           <br/>\n                        </span>\n                     </span>\n                     <span style=\"padding-left: 75px;\">\n                        <b>condition: </b>\n                        <br/>\n                        <span style=\"padding-left: 100px;\">\n                           <b>reference: </b>\n                           <br/>\n                           <span style=\"padding-left: 125px;\">ActivityDefinition/order-serum-urine-rrt-pcr-test</span>\n                           <br/>\n                        </span>\n                     </span>\n                     <span style=\"padding-left: 50px;\"/>\n                  </span>\n                  <span>\n                     <b>Step: </b>\n                     <br/>\n                     <span style=\"padding-left: 75px;\">\n                        <b>condition: </b>\n                        <br/>\n                        <span style=\"padding-left: 100px;\">\n                           <b>type: </b>\n                           <span>applicability</span>\n                           <br/>\n                        </span>\n                        <span style=\"padding-left: 100px;\">\n                           <b>expression: </b>\n                           <span>Should Order Serum Zika Virus IgM + Dengue Virus IgM</span>\n                           <br/>\n                        </span>\n                     </span>\n                     <span style=\"padding-left: 75px;\">\n                        <b>condition: </b>\n                        <br/>\n                        <span style=\"padding-left: 100px;\">\n                           <b>reference: </b>\n                           <br/>\n                           <span style=\"padding-left: 125px;\">#order-serum-zika-dengue-virus-igm</span>\n                           <br/>\n                           <span>\n                              <span style=\"padding-left: 50px;\">\n                                 <span style=\"padding-left: 50px;\">\n                                    <b>description: </b>\n                                    <span>Order Serum Zika and Dengue Virus IgM</span>\n                                    <br/>\n                                 </span>\n                                 <span style=\"padding-left: 75px;\">\n                                    <b>related:</b>\n                                    <br/>\n                                    <span style=\"padding-left: 100px;\">\n                                       <b>type: </b>\n                                       <span>documentation</span>\n                                       <br/>\n                                    </span>\n                                    <span style=\"padding-left: 100px;\">\n                                       <b>display: </b>\n                                       <span>Explanation of diagnostic tests for Zika virus and which to use based on the patients clinical and exposure history.</span>\n                                       <br/>\n                                    </span>\n                                 </span>\n                                 <span style=\"padding-left: 100px;\">\n                                    <b>category: </b>\n                                    <span>diagnostic</span>\n                                    <br/>\n                                 </span>\n                              </span>\n                           </span>\n                           <span/>\n                        </span>\n                     </span>\n                     <span style=\"padding-left: 50px;\"/>\n                  </span>\n                  <span>\n                     <b>Step: </b>\n                     <br/>\n                     <span style=\"padding-left: 75px;\">\n                        <b>condition: </b>\n                        <br/>\n                        <span style=\"padding-left: 100px;\">\n                           <b>type: </b>\n                           <span>applicability</span>\n                           <br/>\n                        </span>\n                        <span style=\"padding-left: 100px;\">\n                           <b>expression: </b>\n                           <span>Should Consider IgM Antibody Testing</span>\n                           <br/>\n                        </span>\n                     </span>\n                     <span style=\"padding-left: 75px;\">\n                        <b>condition: </b>\n                        <br/>\n                        <span style=\"padding-left: 100px;\">\n                           <b>reference: </b>\n                           <br/>\n                           <span style=\"padding-left: 125px;\">ActivityDefinition/consider-igm-antibody-testing</span>\n                           <br/>\n                        </span>\n                     </span>\n                     <span style=\"padding-left: 50px;\"/>\n                  </span>\n                  <span>\n                     <b>Step: </b>\n                     <br/>\n                     <span style=\"padding-left: 75px;\">\n                        <b>condition: </b>\n                        <br/>\n                        <span style=\"padding-left: 100px;\">\n                           <b>type: </b>\n                           <span>applicability</span>\n                           <br/>\n                        </span>\n                        <span style=\"padding-left: 100px;\">\n                           <b>expression: </b>\n                           <span>Should Provide Mosquito Prevention and Contraception Advice</span>\n                           <br/>\n                        </span>\n                     </span>\n                     <span style=\"padding-left: 50px;\">\n                        <span>\n                           <b>Step: </b>\n                           <br/>\n                           <span style=\"padding-left: 75px;\">\n                              <b>condition: </b>\n                              <br/>\n                              <span style=\"padding-left: 100px;\">\n                                 <b>reference: </b>\n                                 <br/>\n                                 <span style=\"padding-left: 125px;\">#provide-mosquito-prevention-advice</span>\n                                 <span>\n                                    <span style=\"padding-left: 75px;\">\n                                       <br/>\n                                       <span style=\"padding-left: 100px;\">\n                                          <b>description: </b>\n                                          <span>Provide mosquito prevention advice</span>\n                                          <br/>\n                                       </span>\n                                       <span style=\"padding-left: 75px;\">\n                                          <b>related:</b>\n                                          <br/>\n                                          <span style=\"padding-left: 100px;\">\n                                             <b>type: </b>\n                                             <span>documentation</span>\n                                             <br/>\n                                          </span>\n                                          <span style=\"padding-left: 100px;\">\n                                             <b>display: </b>\n                                             <span>Advice for patients about how to avoid Mosquito bites.</span>\n                                             <br/>\n                                          </span>\n                                       </span>\n                                       <span style=\"padding-left: 75px;\">\n                                          <b>related:</b>\n                                          <br/>\n                                          <span style=\"padding-left: 100px;\">\n                                             <b>type: </b>\n                                             <span>documentation</span>\n                                             <br/>\n                                          </span>\n                                          <span style=\"padding-left: 100px;\">\n                                             <b>display: </b>\n                                             <span>Advice for patients about which mosquito repellents are effective and safe to use in pregnancy. [DEET, IF3535 and Picardin are safe during]</span>\n                                             <br/>\n                                          </span>\n                                       </span>\n                                       <span style=\"padding-left: 100px;\">\n                                          <b>category: </b>\n                                          <span>communication</span>\n                                          <br/>\n                                       </span>\n                                    </span>\n                                 </span>\n                              </span>\n                           </span>\n                           <span style=\"padding-left: 75px;\"/>\n                        </span>\n                        <span>\n                           <b>Step: </b>\n                           <br/>\n                           <span style=\"padding-left: 75px;\">\n                              <b>condition: </b>\n                              <br/>\n                              <span style=\"padding-left: 100px;\">\n                                 <b>reference: </b>\n                                 <br/>\n                                 <span style=\"padding-left: 125px;\">ActivityDefinition/provide-contraception-advice</span>\n                                 <br/>\n                              </span>\n                           </span>\n                        </span>\n                     </span>\n                  </span>\n               </span>\n            </span>\n         </p>\n      </div>"
  ];
  fhir:PlanDefinition.url [ fhir:value "http://example.org/PlanDefinition/plandefinition-predecessor-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.11.9" ]
  ], [
     fhir:index 1;
     fhir:Identifier.use [ fhir:value "official" ];
     fhir:Identifier.value [ fhir:value "plandefinition-predecessor-example" ]
  ];
  fhir:PlanDefinition.version [ fhir:value "1.0.0"];
  fhir:PlanDefinition.title [ fhir:value "Example Zika Virus Intervention"];
  fhir:PlanDefinition.status [ fhir:value "active"];
  fhir:PlanDefinition.date [ fhir:value "2016-11-14"^^xsd:date];
  fhir:PlanDefinition.description [ fhir:value "Zika Virus Management intervention describing the CDC Guidelines for Zika Virus Reporting and Management."];
  fhir:PlanDefinition.topic [
     fhir:index 0;
     fhir:CodeableConcept.text [ fhir:value "Zika Virus Management" ]
  ];
  fhir:PlanDefinition.relatedArtifact [
     fhir:index 0;
     fhir:RelatedArtifact.type [ fhir:value "derived-from" ];
     fhir:RelatedArtifact.document [
       fhir:Attachment.url [ fhir:value "https://www.cdc.gov/mmwr/volumes/65/wr/mm6539e1.htm?s_cid=mm6539e1_w" ]
     ]
  ], [
     fhir:index 1;
     fhir:RelatedArtifact.type [ fhir:value "successor" ];
     fhir:RelatedArtifact.resource [
       fhir:value "http://example.org/fhir/PlanDefinition/zika-virus-intervention";
       fhir:link <http://example.org/fhir/PlanDefinition/zika-virus-intervention>
     ]
  ];
  fhir:PlanDefinition.library [
     fhir:value "http://example.org/fhir/Library/zika-virus-intervention-logic";
     fhir:index 0;
     fhir:link <http://example.org/fhir/Library/zika-virus-intervention-logic>
  ];
  fhir:PlanDefinition.action [
     fhir:index 0;
     fhir:PlanDefinition.action.title [ fhir:value "Zika Virus Assessment" ];
     fhir:PlanDefinition.action.trigger [
       fhir:index 0;
       fhir:TriggerDefinition.type [ fhir:value "named-event" ];
       fhir:TriggerDefinition.name [ fhir:value "patient-view" ]
     ];
     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/cql" ];
         fhir:Expression.expression [ fhir:value "Is Patient Pregnant" ]
       ]
     ];
     fhir:PlanDefinition.action.action [
       fhir:index 0;
       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/cql" ];
           fhir:Expression.expression [ fhir:value "Should Administer Zika Virus Exposure Assessment" ]
         ]
       ];
       fhir:PlanDefinition.action.definitionCanonical [
         fhir:value "http://example.org/fhir/ActivityDefinition/administer-zika-virus-exposure-assessment";
         fhir:link <http://example.org/fhir/ActivityDefinition/administer-zika-virus-exposure-assessment>
       ]
     ], [
       fhir:index 1;
       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/cql" ];
           fhir:Expression.expression [ fhir:value "Should Order Serum + Urine rRT-PCR Test" ]
         ]
       ];
       fhir:PlanDefinition.action.definitionCanonical [
         fhir:value "http://example.org/fhir/ActivityDefinition/order-serum-urine-rrt-pcr-test";
         fhir:link <http://example.org/fhir/ActivityDefinition/order-serum-urine-rrt-pcr-test>
       ]
     ], [
       fhir:index 2;
       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/cql" ];
           fhir:Expression.expression [ fhir:value "Should Order Serum Zika Virus IgM + Dengue Virus IgM" ]
         ]
       ];
       fhir:PlanDefinition.action.definitionCanonical [
         fhir:value "http://example.org/fhir/ActivityDefinition/order-serum-zika-dengue-virus-igm";
         fhir:link <http://example.org/fhir/ActivityDefinition/order-serum-zika-dengue-virus-igm>
       ]
     ], [
       fhir:index 3;
       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/cql" ];
           fhir:Expression.expression [ fhir:value "Should Consider IgM Antibody Testing" ]
         ]
       ];
       fhir:PlanDefinition.action.definitionCanonical [
         fhir:value "http://example.org/fhir/ActivityDefinition/consider-igm-antibody-testing";
         fhir:link <http://example.org/fhir/ActivityDefinition/consider-igm-antibody-testing>
       ]
     ], [
       fhir:index 4;
       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/cql" ];
           fhir:Expression.expression [ fhir:value "Should Provide Mosquito Prevention and Contraception Advice" ]
         ]
       ];
       fhir:PlanDefinition.action.action [
         fhir:index 0;
         fhir:PlanDefinition.action.definitionCanonical [
           fhir:value "http://example.org/fhir/ActivityDefinition/provide-mosquito-prevention-advice";
           fhir:link <http://example.org/fhir/ActivityDefinition/provide-mosquito-prevention-advice>
         ]
       ], [
         fhir:index 1;
         fhir:PlanDefinition.action.definitionCanonical [
           fhir:value "http://example.org/fhir/ActivityDefinition/provide-contraception-advice";
           fhir:link <http://example.org/fhir/ActivityDefinition/provide-contraception-advice>
         ]
       ]
     ]
  ]] .

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

[a owl:Ontology;
  owl:imports fhir:fhir.ttl] .

# -------------------------------------------------------------------------------------


Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.