2nd DSTU Draft For Comment

This page is part of the FHIR Specification (v0.4.0: DSTU 2 Draft). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Careplan.questionnaire.xml

Raw XML (canonical form)

Generated Questionnaire for CarePlan

<?xml version="1.0" encoding="UTF-8"?>

<Questionnaire xmlns="http://hl7.org/fhir">
  <id value="qs1"/>
  <contained>
    <ValueSet>
      <id value="vs2"/>
      <url value="urn:uuid:1221953d-7f3b-43b1-884c-b78489353539"/>
      <name value="Type options for CarePlan.participant.member"/>
      <description value="Type options for CarePlan.participant.member"/>
      <status value="active"/>
      <expansion>
        <timestamp value="2015-02-23T09:18:56+11:00"/>
        <contains>
          <system value="http://hl7.org/fhir/resource-types"/>
          <code value="Practitioner"/>
          <display value="Practitioner"/>
        </contains>
        <contains>
          <system value="http://hl7.org/fhir/resource-types"/>
          <code value="RelatedPerson"/>
          <display value="RelatedPerson"/>
        </contains>
        <contains>
          <system value="http://hl7.org/fhir/resource-types"/>
          <code value="Patient"/>
          <display value="Patient"/>
        </contains>
        <contains>
          <system value="http://hl7.org/fhir/resource-types"/>
          <code value="Organization"/>
          <display value="Organization"/>
        </contains>
      </expansion>
    </ValueSet>
  </contained>
  <contained>
    <ValueSet>
      <id value="vs3"/>
      <url value="urn:uuid:db3503c0-2df8-4b07-85f1-82cbca8632a2"/>
      <name value="Type options for CarePlan.activity.detail"/>
      <description value="Type options for CarePlan.activity.detail"/>
      <status value="active"/>
      <expansion>
        <timestamp value="2015-02-23T09:18:56+11:00"/>
        <contains>
          <system value="http://hl7.org/fhir/resource-types"/>
          <code value="Procedure"/>
          <display value="Procedure"/>
        </contains>
        <contains>
          <system value="http://hl7.org/fhir/resource-types"/>
          <code value="MedicationPrescription"/>
          <display value="MedicationPrescription"/>
        </contains>
        <contains>
          <system value="http://hl7.org/fhir/resource-types"/>
          <code value="DiagnosticOrder"/>
          <display value="DiagnosticOrder"/>
        </contains>
        <contains>
          <system value="http://hl7.org/fhir/resource-types"/>
          <code value="Encounter"/>
          <display value="Encounter"/>
        </contains>
        <contains>
          <system value="http://hl7.org/fhir/resource-types"/>
          <code value="Supply"/>
          <display value="Supply"/>
        </contains>
      </expansion>
    </ValueSet>
  </contained>
  <contained>
    <ValueSet>
      <id value="vs4"/>
      <url value="urn:uuid:dc730d23-0a53-48bc-a268-868c4c0250ea"/>
      <name value="Type options for CarePlan.activity.simple.scheduled[x]"/>
      <description value="Type options for CarePlan.activity.simple.scheduled[x]"/>
      <status value="active"/>
      <expansion>
        <timestamp value="2015-02-23T09:18:56+11:00"/>
        <contains>
          <system value="http://hl7.org/fhir/data-types"/>
          <code value="Timing"/>
          <display value="Timing"/>
        </contains>
        <contains>
          <system value="http://hl7.org/fhir/data-types"/>
          <code value="Period"/>
          <display value="Period"/>
        </contains>
        <contains>
          <system value="http://hl7.org/fhir/data-types"/>
          <code value="string"/>
          <display value="string"/>
        </contains>
      </expansion>
    </ValueSet>
  </contained>
  <contained>
    <ValueSet>
      <id value="vs5"/>
      <url value="urn:uuid:07e1c91b-a46b-49ab-9b03-f0a7dc07b2cd"/>
      <name value="Type options for CarePlan.activity.simple.performer"/>
      <description value="Type options for CarePlan.activity.simple.performer"/>
      <status value="active"/>
      <expansion>
        <timestamp value="2015-02-23T09:18:56+11:00"/>
        <contains>
          <system value="http://hl7.org/fhir/resource-types"/>
          <code value="Practitioner"/>
          <display value="Practitioner"/>
        </contains>
        <contains>
          <system value="http://hl7.org/fhir/resource-types"/>
          <code value="Organization"/>
          <display value="Organization"/>
        </contains>
        <contains>
          <system value="http://hl7.org/fhir/resource-types"/>
          <code value="RelatedPerson"/>
          <display value="RelatedPerson"/>
        </contains>
        <contains>
          <system value="http://hl7.org/fhir/resource-types"/>
          <code value="Patient"/>
          <display value="Patient"/>
        </contains>
      </expansion>
    </ValueSet>
  </contained>
  <contained>
    <ValueSet>
      <id value="vs6"/>
      <url value="urn:uuid:ea90acab-dd45-4c69-9f2e-2ac16209f786"/>
      <name value="Type options for CarePlan.activity.simple.product"/>
      <description value="Type options for CarePlan.activity.simple.product"/>
      <status value="active"/>
      <expansion>
        <timestamp value="2015-02-23T09:18:56+11:00"/>
        <contains>
          <system value="http://hl7.org/fhir/resource-types"/>
          <code value="Medication"/>
          <display value="Medication"/>
        </contains>
        <contains>
          <system value="http://hl7.org/fhir/resource-types"/>
          <code value="Substance"/>
          <display value="Substance"/>
        </contains>
      </expansion>
    </ValueSet>
  </contained>
  <identifier>
    <system value="urn:ietf:rfc:3986"/>
  </identifier>
  <status value="draft"/>
  <date value="2015-02-23T09:07:27+11:00"/>
  <publisher value="HL7 FHIR Project (Patient Care)"/>
  <group>
    <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
      <valueString value="Describes the intention of how one or more practitioners intend to deliver care for a particular patient for a period of time, possibly limited to care for a specific condition or set of conditions."/>
    </extension>
    <linkId value="CarePlan"/>
    <title value="Healthcare plan for patient"/>
    <required value="true"/>
    <repeats value="false"/>
    <group>
      <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
        <valueString value="The logical id of the resource, as used in the url for the resoure. Once assigned, this value never changes. The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID."/>
      </extension>
      <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
        <valueString value="string"/>
      </extension>
      <linkId value="CarePlan.id"/>
      <required value="false"/>
      <repeats value="true"/>
      <question>
        <linkId value="CarePlan.id.value"/>
        <text value="Logical id of this artefact"/>
        <type value="string"/>
        <required value="false"/>
        <repeats value="false"/>
      </question>
    </group>
    <group>
      <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
        <valueString value="The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource."/>
      </extension>
      <linkId value="CarePlan.meta"/>
      <text value="Metadata about the resource"/>
      <required value="false"/>
      <repeats value="true"/>
    </group>
    <group>
      <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
        <valueString value="A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element as much as possible."/>
      </extension>
      <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
        <valueString value="uri"/>
      </extension>
      <linkId value="CarePlan.implicitRules"/>
      <required value="false"/>
      <repeats value="true"/>
      <question>
        <linkId value="CarePlan.implicitRules.value"/>
        <text value="A set of rules under which this content was created"/>
        <type value="string"/>
        <required value="false"/>
        <repeats value="false"/>
      </question>
    </group>
    <group>
      <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
        <valueString value="The base language in which the resource is written. Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource

Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)."/>
      </extension>
      <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
        <valueString value="code"/>
      </extension>
      <linkId value="CarePlan.language"/>
      <required value="false"/>
      <repeats value="true"/>
      <question>
        <linkId value="CarePlan.language.value"/>
        <text value="language"/>
        <type value="choice"/>
        <required value="false"/>
        <repeats value="false"/>
      </question>
    </group>
    <group>
      <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
        <valueString value="A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it &quot;clinically safe&quot; for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety. Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative."/>
      </extension>
      <linkId value="CarePlan.text"/>
      <text value="Text summary of the resource, for human interpretation"/>
      <required value="false"/>
      <repeats value="true"/>
    </group>
    <group>
      <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
        <valueString value="These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope. This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again."/>
      </extension>
      <linkId value="CarePlan.contained"/>
      <text value="Contained, inline Resources"/>
      <required value="false"/>
      <repeats value="true"/>
    </group>
    <group>
      <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
        <valueString value="This records identifiers associated with this care plan that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)."/>
      </extension>
      <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
        <valueString value="Identifier"/>
      </extension>
      <linkId value="CarePlan.identifier"/>
      <text value="External Ids for this plan"/>
      <required value="false"/>
      <repeats value="true"/>
      <question>
        <linkId value="CarePlan.identifier.label"/>
        <text value="label:"/>
        <type value="string"/>
        <required value="false"/>
        <repeats value="false"/>
      </question>
      <question>
        <linkId value="CarePlan.identifier.system"/>
        <text value="system:"/>
        <type value="string"/>
        <required value="false"/>
        <repeats value="false"/>
      </question>
      <question>
        <linkId value="CarePlan.identifier.value"/>
        <text value="value:"/>
        <type value="string"/>
        <required value="false"/>
        <repeats value="false"/>
      </question>
    </group>
    <group>
      <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
        <valueString value="Identifies the patient/subject whose intended care is described by the plan."/>
      </extension>
      <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
        <valueString value="Reference"/>
      </extension>
      <linkId value="CarePlan.patient"/>
      <required value="false"/>
      <repeats value="true"/>
      <question>
        <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#reference">
          <valueString value="/Patient?subject=$subj&amp;patient=$subj&amp;encounter=$encounter"/>
        </extension>
        <linkId value="CarePlan.patient.value"/>
        <text value="Who care plan is for"/>
        <type value="reference"/>
        <required value="false"/>
        <repeats value="false"/>
      </question>
    </group>
    <group>
      <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
        <valueString value="Indicates whether the plan is currently being acted upon, represents future intentions or is now just historical record."/>
      </extension>
      <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
        <valueString value="code"/>
      </extension>
      <linkId value="CarePlan.status"/>
      <required value="true"/>
      <repeats value="true"/>
      <question>
        <linkId value="CarePlan.status.value"/>
        <text value="status"/>
        <type value="choice"/>
        <required value="false"/>
        <repeats value="false"/>
      </question>
    </group>
    <group>
      <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
        <valueString value="Indicates when the plan did (or is intended to) come into effect and end. Any activities scheduled as part of the plan should be constrained to the specified period."/>
      </extension>
      <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
        <valueString value="Period"/>
      </extension>
      <linkId value="CarePlan.period"/>
      <text value="Time period plan covers"/>
      <required value="false"/>
      <repeats value="true"/>
      <question>
        <linkId value="CarePlan.period.low"/>
        <text value="start:"/>
        <type value="dateTime"/>
        <required value="false"/>
        <repeats value="false"/>
      </question>
      <question>
        <linkId value="CarePlan.period.end"/>
        <text value="end:"/>
        <type value="dateTime"/>
        <required value="false"/>
        <repeats value="false"/>
      </question>
    </group>
    <group>
      <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
        <valueString value="Identifies the most recent date on which the plan has been revised."/>
      </extension>
      <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
        <valueString value="datetime"/>
      </extension>
      <linkId value="CarePlan.modified"/>
      <required value="false"/>
      <repeats value="true"/>
      <question>
        <linkId value="CarePlan.modified.value"/>
        <text value="When last updated"/>
        <type value="dateTime"/>
        <required value="false"/>
        <repeats value="false"/>
      </question>
    </group>
    <group>
      <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
        <valueString value="Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan."/>
      </extension>
      <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
        <valueString value="Reference"/>
      </extension>
      <linkId value="CarePlan.concern"/>
      <required value="false"/>
      <repeats value="true"/>
      <question>
        <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#reference">
          <valueString value="/Condition?subject=$subj&amp;patient=$subj&amp;encounter=$encounter"/>
        </extension>
        <linkId value="CarePlan.concern.value"/>
        <text value="Health issues this plan addresses"/>
        <type value="reference"/>
        <required value="false"/>
        <repeats value="false"/>
      </question>
    </group>
    <group>
      <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
        <valueString value="Identifies all people and organizations who are expected to be involved in the care envisioned by this plan."/>
      </extension>
      <linkId value="CarePlan.participant"/>
      <title value="Who&#39;s involved in plan?"/>
      <required value="false"/>
      <repeats value="true"/>
      <group>
        <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
          <valueString value="unique id for the element within a resource (for internal references)."/>
        </extension>
        <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
          <valueString value="string"/>
        </extension>
        <linkId value="CarePlan.participant.id"/>
        <required value="false"/>
        <repeats value="true"/>
        <question>
          <linkId value="CarePlan.participant.id.value"/>
          <text value="xml:id (or equivalent in JSON)"/>
          <type value="string"/>
          <required value="false"/>
          <repeats value="false"/>
        </question>
      </group>
      <group>
        <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
          <valueString value="Indicates specific responsibility of an individual within the care plan.  E.g. &quot;Primary physician&quot;, &quot;Team coordinator&quot;, &quot;Caregiver&quot;, etc. Roles may sometimes be inferred by type of Practitioner.  These are relationships that hold only within the context of the care plan.  General relationships should be handled as properties of the Patient resource directly."/>
        </extension>
        <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
          <valueString value="CodeableConcept"/>
        </extension>
        <linkId value="CarePlan.participant.role"/>
        <text value="Type of involvement"/>
        <required value="false"/>
        <repeats value="true"/>
        <question>
          <linkId value="CarePlan.participant.role.coding"/>
          <text value="code:"/>
          <type value="open-choice"/>
          <required value="false"/>
          <repeats value="false"/>
        </question>
        <question>
          <linkId value="CarePlan.participant.role.text"/>
          <text value="text:"/>
          <type value="string"/>
          <required value="false"/>
          <repeats value="false"/>
        </question>
      </group>
      <group>
        <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
          <valueString value="The specific person or organization who is participating/expected to participate in the care plan. Patient only needs to be listed if they have a role other than &quot;subject of care&quot;."/>
        </extension>
        <linkId value="CarePlan.participant.member"/>
        <text value="Who is involved"/>
        <required value="true"/>
        <repeats value="true"/>
        <question>
          <linkId value="CarePlan.participant.member._type"/>
          <text value="type"/>
          <type value="choice"/>
          <required value="false"/>
          <repeats value="false"/>
          <options>
            <reference value="#vs2"/>
          </options>
          <group>
            <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
              <valueString value="Reference"/>
            </extension>
            <linkId value="CarePlan.participant.member._Practitioner"/>
            <question>
              <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#reference">
                <valueString value="/Practitioner?subject=$subj&amp;patient=$subj&amp;encounter=$encounter"/>
              </extension>
              <linkId value="CarePlan.participant.member._Practitioner.value"/>
              <text value="Practitioner"/>
              <type value="reference"/>
              <required value="false"/>
              <repeats value="false"/>
            </question>
          </group>
          <group>
            <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
              <valueString value="Reference"/>
            </extension>
            <linkId value="CarePlan.participant.member._RelatedPerson"/>
            <question>
              <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#reference">
                <valueString value="/RelatedPerson?subject=$subj&amp;patient=$subj&amp;encounter=$encounter"/>
              </extension>
              <linkId value="CarePlan.participant.member._RelatedPerson.value"/>
              <text value="RelatedPerson"/>
              <type value="reference"/>
              <required value="false"/>
              <repeats value="false"/>
            </question>
          </group>
          <group>
            <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
              <valueString value="Reference"/>
            </extension>
            <linkId value="CarePlan.participant.member._Patient"/>
            <question>
              <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#reference">
                <valueString value="/Patient?subject=$subj&amp;patient=$subj&amp;encounter=$encounter"/>
              </extension>
              <linkId value="CarePlan.participant.member._Patient.value"/>
              <text value="Patient"/>
              <type value="reference"/>
              <required value="false"/>
              <repeats value="false"/>
            </question>
          </group>
          <group>
            <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
              <valueString value="Reference"/>
            </extension>
            <linkId value="CarePlan.participant.member._Organization"/>
            <question>
              <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#reference">
                <valueString value="/Organization?subject=$subj&amp;patient=$subj&amp;encounter=$encounter"/>
              </extension>
              <linkId value="CarePlan.participant.member._Organization.value"/>
              <text value="Organization"/>
              <type value="reference"/>
              <required value="false"/>
              <repeats value="false"/>
            </question>
          </group>
        </question>
      </group>
    </group>
    <group>
      <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
        <valueString value="Describes the intended objective(s) of carrying out the Care Plan."/>
      </extension>
      <linkId value="CarePlan.goal"/>
      <title value="Desired outcome of plan"/>
      <text value="Goal can be achieving a particular change or merely maintaining a current state or even slowing a decline."/>
      <required value="false"/>
      <repeats value="true"/>
      <group>
        <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
          <valueString value="unique id for the element within a resource (for internal references)."/>
        </extension>
        <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
          <valueString value="string"/>
        </extension>
        <linkId value="CarePlan.goal.id"/>
        <required value="false"/>
        <repeats value="true"/>
        <question>
          <linkId value="CarePlan.goal.id.value"/>
          <text value="xml:id (or equivalent in JSON)"/>
          <type value="string"/>
          <required value="false"/>
          <repeats value="false"/>
        </question>
      </group>
      <group>
        <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
          <valueString value="Human-readable description of a specific desired objective of the care plan."/>
        </extension>
        <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
          <valueString value="string"/>
        </extension>
        <linkId value="CarePlan.goal.description"/>
        <required value="true"/>
        <repeats value="true"/>
        <question>
          <linkId value="CarePlan.goal.description.value"/>
          <text value="What&#39;s the desired outcome?"/>
          <type value="string"/>
          <required value="false"/>
          <repeats value="false"/>
        </question>
      </group>
      <group>
        <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
          <valueString value="Indicates whether the goal has been reached and is still considered relevant."/>
        </extension>
        <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
          <valueString value="code"/>
        </extension>
        <linkId value="CarePlan.goal.status"/>
        <required value="false"/>
        <repeats value="true"/>
        <question>
          <linkId value="CarePlan.goal.status.value"/>
          <text value="status"/>
          <type value="choice"/>
          <required value="false"/>
          <repeats value="false"/>
        </question>
      </group>
      <group>
        <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
          <valueString value="Any comments related to the goal. May be used for progress notes, concerns or other related information that doesn&#39;t actually describe the goal itself."/>
        </extension>
        <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
          <valueString value="string"/>
        </extension>
        <linkId value="CarePlan.goal.notes"/>
        <required value="false"/>
        <repeats value="true"/>
        <question>
          <linkId value="CarePlan.goal.notes.value"/>
          <text value="Comments about the goal"/>
          <type value="string"/>
          <required value="false"/>
          <repeats value="false"/>
        </question>
      </group>
      <group>
        <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
          <valueString value="The identified conditions that this goal relates to - the condition that caused it to be created, or that it is intended to address. The concerns do not also need to be listed under CarePlan.concern, but may be."/>
        </extension>
        <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
          <valueString value="Reference"/>
        </extension>
        <linkId value="CarePlan.goal.concern"/>
        <required value="false"/>
        <repeats value="true"/>
        <question>
          <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#reference">
            <valueString value="/Condition?subject=$subj&amp;patient=$subj&amp;encounter=$encounter"/>
          </extension>
          <linkId value="CarePlan.goal.concern.value"/>
          <text value="Health issues this goal addresses"/>
          <type value="reference"/>
          <required value="false"/>
          <repeats value="false"/>
        </question>
      </group>
    </group>
    <group>
      <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
        <valueString value="Identifies a planned action to occur as part of the plan.  For example, a medication to be used, lab tests to perform, self-monitoring, education, etc."/>
      </extension>
      <linkId value="CarePlan.activity"/>
      <title value="Action to occur as part of plan"/>
      <required value="false"/>
      <repeats value="true"/>
      <group>
        <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
          <valueString value="unique id for the element within a resource (for internal references)."/>
        </extension>
        <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
          <valueString value="string"/>
        </extension>
        <linkId value="CarePlan.activity.id"/>
        <required value="false"/>
        <repeats value="true"/>
        <question>
          <linkId value="CarePlan.activity.id.value"/>
          <text value="xml:id (or equivalent in JSON)"/>
          <type value="string"/>
          <required value="false"/>
          <repeats value="false"/>
        </question>
      </group>
      <group>
        <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
          <valueString value="Internal reference that identifies the goals that this activity is intended to contribute towards meeting."/>
        </extension>
        <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
          <valueString value="uri"/>
        </extension>
        <linkId value="CarePlan.activity.goal"/>
        <required value="false"/>
        <repeats value="true"/>
        <question>
          <linkId value="CarePlan.activity.goal.value"/>
          <text value="Goals this activity relates to"/>
          <type value="string"/>
          <required value="false"/>
          <repeats value="false"/>
        </question>
      </group>
      <group>
        <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
          <valueString value="Identifies what progress is being made for the specific activity. Some aspects of Status can be inferred based on the resources linked in actionTaken.  Note that &quot;status&quot; is only as current as the plan was most recently updated."/>
        </extension>
        <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
          <valueString value="code"/>
        </extension>
        <linkId value="CarePlan.activity.status"/>
        <required value="false"/>
        <repeats value="true"/>
        <question>
          <linkId value="CarePlan.activity.status.value"/>
          <text value="status"/>
          <type value="choice"/>
          <required value="false"/>
          <repeats value="false"/>
        </question>
      </group>
      <group>
        <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
          <valueString value="If true, indicates that the described activity is one that must NOT be engaged in when following the plan."/>
        </extension>
        <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
          <valueString value="boolean"/>
        </extension>
        <linkId value="CarePlan.activity.prohibited"/>
        <required value="true"/>
        <repeats value="true"/>
        <question>
          <linkId value="CarePlan.activity.prohibited.value"/>
          <text value="Do NOT do"/>
          <type value="boolean"/>
          <required value="false"/>
          <repeats value="false"/>
        </question>
      </group>
      <group>
        <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
          <valueString value="Resources that describe follow-on actions resulting from the plan, such as drug prescriptions, encounter records, appointments, etc."/>
        </extension>
        <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
          <valueString value="Reference"/>
        </extension>
        <linkId value="CarePlan.activity.actionResulting"/>
        <required value="false"/>
        <repeats value="true"/>
        <question>
          <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#reference">
            <valueString value="/_search?subject=$subj&amp;patient=$subj&amp;encounter=$encounter"/>
          </extension>
          <linkId value="CarePlan.activity.actionResulting.value"/>
          <text value="Appointments, orders, etc."/>
          <type value="reference"/>
          <required value="false"/>
          <repeats value="false"/>
        </question>
      </group>
      <group>
        <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
          <valueString value="Notes about the execution of the activity. Doesn&#39;t describe the activity - that goes in details."/>
        </extension>
        <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
          <valueString value="string"/>
        </extension>
        <linkId value="CarePlan.activity.notes"/>
        <required value="false"/>
        <repeats value="true"/>
        <question>
          <linkId value="CarePlan.activity.notes.value"/>
          <text value="Comments about the activity"/>
          <type value="string"/>
          <required value="false"/>
          <repeats value="false"/>
        </question>
      </group>
      <group>
        <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
          <valueString value="The details of the proposed activity represented in a specific resource."/>
        </extension>
        <linkId value="CarePlan.activity.detail"/>
        <text value="Activity details defined in specific resource"/>
        <required value="false"/>
        <repeats value="true"/>
        <question>
          <linkId value="CarePlan.activity.detail._type"/>
          <text value="type"/>
          <type value="choice"/>
          <required value="false"/>
          <repeats value="false"/>
          <options>
            <reference value="#vs3"/>
          </options>
          <group>
            <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
              <valueString value="Reference"/>
            </extension>
            <linkId value="CarePlan.activity.detail._Procedure"/>
            <question>
              <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#reference">
                <valueString value="/Procedure?subject=$subj&amp;patient=$subj&amp;encounter=$encounter"/>
              </extension>
              <linkId value="CarePlan.activity.detail._Procedure.value"/>
              <text value="Procedure"/>
              <type value="reference"/>
              <required value="false"/>
              <repeats value="false"/>
            </question>
          </group>
          <group>
            <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
              <valueString value="Reference"/>
            </extension>
            <linkId value="CarePlan.activity.detail._MedicationPrescription"/>
            <question>
              <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#reference">
                <valueString value="/MedicationPrescription?subject=$subj&amp;patient=$subj&amp;encounter=$encounter"/>
              </extension>
              <linkId value="CarePlan.activity.detail._MedicationPrescription.value"/>
              <text value="MedicationPrescription"/>
              <type value="reference"/>
              <required value="false"/>
              <repeats value="false"/>
            </question>
          </group>
          <group>
            <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
              <valueString value="Reference"/>
            </extension>
            <linkId value="CarePlan.activity.detail._DiagnosticOrder"/>
            <question>
              <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#reference">
                <valueString value="/DiagnosticOrder?subject=$subj&amp;patient=$subj&amp;encounter=$encounter"/>
              </extension>
              <linkId value="CarePlan.activity.detail._DiagnosticOrder.value"/>
              <text value="DiagnosticOrder"/>
              <type value="reference"/>
              <required value="false"/>
              <repeats value="false"/>
            </question>
          </group>
          <group>
            <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
              <valueString value="Reference"/>
            </extension>
            <linkId value="CarePlan.activity.detail._Encounter"/>
            <question>
              <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#reference">
                <valueString value="/Encounter?subject=$subj&amp;patient=$subj&amp;encounter=$encounter"/>
              </extension>
              <linkId value="CarePlan.activity.detail._Encounter.value"/>
              <text value="Encounter"/>
              <type value="reference"/>
              <required value="false"/>
              <repeats value="false"/>
            </question>
          </group>
          <group>
            <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
              <valueString value="Reference"/>
            </extension>
            <linkId value="CarePlan.activity.detail._Supply"/>
            <question>
              <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#reference">
                <valueString value="/Supply?subject=$subj&amp;patient=$subj&amp;encounter=$encounter"/>
              </extension>
              <linkId value="CarePlan.activity.detail._Supply.value"/>
              <text value="Supply"/>
              <type value="reference"/>
              <required value="false"/>
              <repeats value="false"/>
            </question>
          </group>
        </question>
      </group>
      <group>
        <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
          <valueString value="A simple summary of details suitable for a general care plan system (e.g. form driven) that doesn&#39;t know about specific resources such as procedure etc."/>
        </extension>
        <linkId value="CarePlan.activity.simple"/>
        <title value="Activity details summarised here"/>
        <required value="false"/>
        <repeats value="false"/>
        <group>
          <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
            <valueString value="unique id for the element within a resource (for internal references)."/>
          </extension>
          <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
            <valueString value="string"/>
          </extension>
          <linkId value="CarePlan.activity.simple.id"/>
          <required value="false"/>
          <repeats value="true"/>
          <question>
            <linkId value="CarePlan.activity.simple.id.value"/>
            <text value="xml:id (or equivalent in JSON)"/>
            <type value="string"/>
            <required value="false"/>
            <repeats value="false"/>
          </question>
        </group>
        <group>
          <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
            <valueString value="High-level categorization of the type of activity in a care plan."/>
          </extension>
          <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
            <valueString value="code"/>
          </extension>
          <linkId value="CarePlan.activity.simple.category"/>
          <required value="true"/>
          <repeats value="true"/>
          <question>
            <linkId value="CarePlan.activity.simple.category.value"/>
            <text value="category"/>
            <type value="choice"/>
            <required value="false"/>
            <repeats value="false"/>
          </question>
        </group>
        <group>
          <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
            <valueString value="Detailed description of the type of activity.  E.g. What lab test, what procedure, what kind of encounter. Tends to be less relevant for activities involving particular products.  Codes should not convey negation - use &quot;prohibited&quot; instead."/>
          </extension>
          <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
            <valueString value="CodeableConcept"/>
          </extension>
          <linkId value="CarePlan.activity.simple.code"/>
          <text value="Detail type of activity"/>
          <required value="false"/>
          <repeats value="true"/>
          <question>
            <linkId value="CarePlan.activity.simple.code.coding"/>
            <text value="code:"/>
            <type value="open-choice"/>
            <required value="false"/>
            <repeats value="false"/>
          </question>
          <question>
            <linkId value="CarePlan.activity.simple.code.text"/>
            <text value="text:"/>
            <type value="string"/>
            <required value="false"/>
            <repeats value="false"/>
          </question>
        </group>
        <group>
          <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
            <valueString value="The period, timing or frequency upon which the described activity is to occur."/>
          </extension>
          <linkId value="CarePlan.activity.simple.scheduled[x]"/>
          <text value="When activity is to occur"/>
          <required value="false"/>
          <repeats value="true"/>
          <question>
            <linkId value="CarePlan.activity.simple.scheduled[x]._type"/>
            <text value="type"/>
            <type value="choice"/>
            <required value="false"/>
            <repeats value="false"/>
            <options>
              <reference value="#vs4"/>
            </options>
            <group>
              <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
                <valueString value="Schedule"/>
              </extension>
              <linkId value="CarePlan.activity.simple.scheduled[x]._Timing"/>
              <text value="Timing"/>
            </group>
            <group>
              <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
                <valueString value="Period"/>
              </extension>
              <linkId value="CarePlan.activity.simple.scheduled[x]._Period"/>
              <text value="Period"/>
              <question>
                <linkId value="CarePlan.activity.simple.scheduled[x]._Period.low"/>
                <text value="start:"/>
                <type value="dateTime"/>
                <required value="false"/>
                <repeats value="false"/>
              </question>
              <question>
                <linkId value="CarePlan.activity.simple.scheduled[x]._Period.end"/>
                <text value="end:"/>
                <type value="dateTime"/>
                <required value="false"/>
                <repeats value="false"/>
              </question>
            </group>
            <group>
              <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
                <valueString value="string"/>
              </extension>
              <linkId value="CarePlan.activity.simple.scheduled[x]._string"/>
              <question>
                <linkId value="CarePlan.activity.simple.scheduled[x]._string.value"/>
                <text value="string"/>
                <type value="string"/>
                <required value="false"/>
                <repeats value="false"/>
              </question>
            </group>
          </question>
        </group>
        <group>
          <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
            <valueString value="Identifies the facility where the activity will occur.  E.g. home, hospital, specific clinic, etc. May reference a specific clinical location or may just identify a type of location."/>
          </extension>
          <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
            <valueString value="Reference"/>
          </extension>
          <linkId value="CarePlan.activity.simple.location"/>
          <required value="false"/>
          <repeats value="true"/>
          <question>
            <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#reference">
              <valueString value="/Location?subject=$subj&amp;patient=$subj&amp;encounter=$encounter"/>
            </extension>
            <linkId value="CarePlan.activity.simple.location.value"/>
            <text value="Where it should happen"/>
            <type value="reference"/>
            <required value="false"/>
            <repeats value="false"/>
          </question>
        </group>
        <group>
          <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
            <valueString value="Identifies who&#39;s expected to be involved in the activity. A performer MAY also be a participant in the care plan."/>
          </extension>
          <linkId value="CarePlan.activity.simple.performer"/>
          <text value="Who&#39;s responsible?"/>
          <required value="false"/>
          <repeats value="true"/>
          <question>
            <linkId value="CarePlan.activity.simple.performer._type"/>
            <text value="type"/>
            <type value="choice"/>
            <required value="false"/>
            <repeats value="false"/>
            <options>
              <reference value="#vs5"/>
            </options>
            <group>
              <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
                <valueString value="Reference"/>
              </extension>
              <linkId value="CarePlan.activity.simple.performer._Practitioner"/>
              <question>
                <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#reference">
                  <valueString value="/Practitioner?subject=$subj&amp;patient=$subj&amp;encounter=$encounter"/>
                </extension>
                <linkId value="CarePlan.activity.simple.performer._Practitioner.value"/>
                <text value="Practitioner"/>
                <type value="reference"/>
                <required value="false"/>
                <repeats value="false"/>
              </question>
            </group>
            <group>
              <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
                <valueString value="Reference"/>
              </extension>
              <linkId value="CarePlan.activity.simple.performer._Organization"/>
              <question>
                <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#reference">
                  <valueString value="/Organization?subject=$subj&amp;patient=$subj&amp;encounter=$encounter"/>
                </extension>
                <linkId value="CarePlan.activity.simple.performer._Organization.value"/>
                <text value="Organization"/>
                <type value="reference"/>
                <required value="false"/>
                <repeats value="false"/>
              </question>
            </group>
            <group>
              <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
                <valueString value="Reference"/>
              </extension>
              <linkId value="CarePlan.activity.simple.performer._RelatedPerson"/>
              <question>
                <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#reference">
                  <valueString value="/RelatedPerson?subject=$subj&amp;patient=$subj&amp;encounter=$encounter"/>
                </extension>
                <linkId value="CarePlan.activity.simple.performer._RelatedPerson.value"/>
                <text value="RelatedPerson"/>
                <type value="reference"/>
                <required value="false"/>
                <repeats value="false"/>
              </question>
            </group>
            <group>
              <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
                <valueString value="Reference"/>
              </extension>
              <linkId value="CarePlan.activity.simple.performer._Patient"/>
              <question>
                <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#reference">
                  <valueString value="/Patient?subject=$subj&amp;patient=$subj&amp;encounter=$encounter"/>
                </extension>
                <linkId value="CarePlan.activity.simple.performer._Patient.value"/>
                <text value="Patient"/>
                <type value="reference"/>
                <required value="false"/>
                <repeats value="false"/>
              </question>
            </group>
          </question>
        </group>
        <group>
          <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
            <valueString value="Identifies the food, drug or other product being consumed or supplied in the activity."/>
          </extension>
          <linkId value="CarePlan.activity.simple.product"/>
          <text value="What&#39;s administered/supplied"/>
          <required value="false"/>
          <repeats value="true"/>
          <question>
            <linkId value="CarePlan.activity.simple.product._type"/>
            <text value="type"/>
            <type value="choice"/>
            <required value="false"/>
            <repeats value="false"/>
            <options>
              <reference value="#vs6"/>
            </options>
            <group>
              <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
                <valueString value="Reference"/>
              </extension>
              <linkId value="CarePlan.activity.simple.product._Medication"/>
              <question>
                <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#reference">
                  <valueString value="/Medication?subject=$subj&amp;patient=$subj&amp;encounter=$encounter"/>
                </extension>
                <linkId value="CarePlan.activity.simple.product._Medication.value"/>
                <text value="Medication"/>
                <type value="reference"/>
                <required value="false"/>
                <repeats value="false"/>
              </question>
            </group>
            <group>
              <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
                <valueString value="Reference"/>
              </extension>
              <linkId value="CarePlan.activity.simple.product._Substance"/>
              <question>
                <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#reference">
                  <valueString value="/Substance?subject=$subj&amp;patient=$subj&amp;encounter=$encounter"/>
                </extension>
                <linkId value="CarePlan.activity.simple.product._Substance.value"/>
                <text value="Substance"/>
                <type value="reference"/>
                <required value="false"/>
                <repeats value="false"/>
              </question>
            </group>
          </question>
        </group>
        <group>
          <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
            <valueString value="Identifies the quantity expected to be consumed in a given day."/>
          </extension>
          <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
            <valueString value="Quantity"/>
          </extension>
          <linkId value="CarePlan.activity.simple.dailyAmount"/>
          <text value="How much consumed/day?"/>
          <required value="false"/>
          <repeats value="true"/>
          <question>
            <linkId value="CarePlan.activity.simple.dailyAmount.comparator"/>
            <text value="comp:"/>
            <type value="choice"/>
            <required value="false"/>
            <repeats value="false"/>
          </question>
          <question>
            <linkId value="CarePlan.activity.simple.dailyAmount.value"/>
            <text value="value:"/>
            <type value="decimal"/>
            <required value="false"/>
            <repeats value="false"/>
          </question>
          <question>
            <linkId value="CarePlan.activity.simple.dailyAmount.units"/>
            <text value="units:"/>
            <type value="string"/>
            <required value="false"/>
            <repeats value="false"/>
          </question>
          <question>
            <linkId value="CarePlan.activity.simple.dailyAmount.code"/>
            <text value="coded units:"/>
            <type value="string"/>
            <required value="false"/>
            <repeats value="false"/>
          </question>
          <question>
            <linkId value="CarePlan.activity.simple.dailyAmount.system"/>
            <text value="units system:"/>
            <type value="string"/>
            <required value="false"/>
            <repeats value="false"/>
          </question>
        </group>
        <group>
          <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
            <valueString value="Identifies the quantity expected to be supplied."/>
          </extension>
          <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
            <valueString value="Quantity"/>
          </extension>
          <linkId value="CarePlan.activity.simple.quantity"/>
          <text value="How much is administered/supplied/consumed"/>
          <required value="false"/>
          <repeats value="true"/>
          <question>
            <linkId value="CarePlan.activity.simple.quantity.comparator"/>
            <text value="comp:"/>
            <type value="choice"/>
            <required value="false"/>
            <repeats value="false"/>
          </question>
          <question>
            <linkId value="CarePlan.activity.simple.quantity.value"/>
            <text value="value:"/>
            <type value="decimal"/>
            <required value="false"/>
            <repeats value="false"/>
          </question>
          <question>
            <linkId value="CarePlan.activity.simple.quantity.units"/>
            <text value="units:"/>
            <type value="string"/>
            <required value="false"/>
            <repeats value="false"/>
          </question>
          <question>
            <linkId value="CarePlan.activity.simple.quantity.code"/>
            <text value="coded units:"/>
            <type value="string"/>
            <required value="false"/>
            <repeats value="false"/>
          </question>
          <question>
            <linkId value="CarePlan.activity.simple.quantity.system"/>
            <text value="units system:"/>
            <type value="string"/>
            <required value="false"/>
            <repeats value="false"/>
          </question>
        </group>
        <group>
          <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
            <valueString value="This provides a textual description of constraints on the activity occurrence, including relation to other activities.  It may also include objectives, pre-conditions and end-conditions.  Finally, it may convey specifics about the activity such as body site, method, route, etc."/>
          </extension>
          <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
            <valueString value="string"/>
          </extension>
          <linkId value="CarePlan.activity.simple.details"/>
          <required value="false"/>
          <repeats value="true"/>
          <question>
            <linkId value="CarePlan.activity.simple.details.value"/>
            <text value="Extra info on activity occurrence"/>
            <type value="string"/>
            <required value="false"/>
            <repeats value="false"/>
          </question>
        </group>
      </group>
    </group>
    <group>
      <extension url="http://hl7.org/fhir/Profile/questionnaire-extensions#flyover">
        <valueString value="General notes about the care plan not covered elsewhere."/>
      </extension>
      <extension url="http://www.healthintersections.com.au/fhir/Profile/metadata#type">
        <valueString value="string"/>
      </extension>
      <linkId value="CarePlan.notes"/>
      <required value="false"/>
      <repeats value="true"/>
      <question>
        <linkId value="CarePlan.notes.value"/>
        <text value="Comments about the plan"/>
        <type value="string"/>
        <required value="false"/>
        <repeats value="false"/>
      </question>
    </group>
  </group>
</Questionnaire>

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.