Questionnaire

Created by: (anonymous)
LastUpdated: 3/24/2020 2:45:10 AM +00:00
Retrieved: https://sqlonfhir-r4.azurewebsites.net/fhir/Questionnaire/pre-pop-test/_history/7
_history latest     test    
Questionnaire Pre-Population
Status: Active
Publisher: Telstra Health

<Questionnaire >
<id value="pre-pop-test"/>
<meta >
<versionId value="7"/>
<lastUpdated value="2020-03-24T02:45:10.2833837+00:00"/>
</meta>
<text >
<status value="generated"/>
< div >
<!--
 Snipped for brevity 
 -->
  </ div>
</text>
<contained >
<Bundle >
<id value="PrePopQuery"/>
<type value="batch"/>
<entry >
<fullUrl value="urn:uuid:88f151c0-a954-468a-88bd-5ae15c08e059"/>
<request >
<method value="GET"/>
<url value="Condition?patient={{%LaunchPatient.id}}&active=true"/>
</request>
</entry>
<entry >
<fullUrl value="urn:uuid:88f151c0-a954-468a-88bd-5ae15c08e060"/>
<request >
<method value="GET"/>
<url value="MedicationStatement?patient={{%LaunchPatient.id}}&active=true"/>
</request>
</entry>
</Bundle>
</contained>
<extension url="http://fhir.telstrahealth.com/th-ncsr/StructureDefinition/ff-ext-css" >
<valueString value="https://smartq.azurewebsites.net/Content/fhir-ncsr.css"/>
</extension>
<extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext" >
<extension url="name" >
<valueId value="LaunchPatient"/>
</extension>
<extension url="type" >
<valueCode value="Patient"/>
</extension>
<extension url="description" >
<valueString value="The patient that is to be used to pre-populate the form"/>
</extension>
</extension>
<extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext" >
<extension url="name" >
<valueId value="LaunchPractitioner"/>
</extension>
<extension url="type" >
<valueCode value="Practitioner"/>
</extension>
<extension url="description" >
<valueString value="The practitioner that is to be used to pre-populate the form"/>
</extension>
</extension>
<extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-sourceQueries" >
<valueReference >
<reference value="#PrePopQuery"/>
</valueReference>
</extension>
<url value="http://fhir.telstrahealth.com/th-ncsr/Questionnaire/pre-pop-test"/>
<name value="PrePopTest"/>
<title value="Questionnaire Pre-Population"/>
<status value="active"/>
<subjectType value="Patient"/>
<date value="2017-10-17T01:39:42.162Z"/>
<publisher value="Telstra Health"/>
<item >
<linkId value="grp"/>
<type value="group"/>
<item >
<linkId value="part-details"/>
<text value="Participant details"/>
<type value="group"/>
<repeats value="false"/>
<item >
<linkId value="participant-id"/>
<text value="Participant ID number"/>
<type value="string"/>
</item>
<item >
<extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" >
<valueExpression >
<language value="text/fhirpath"/>
<expression value="%LaunchPatient.identifier.where(system='http://ns.electronichealth.net.au/id/medicare-number').value.first()"/>
</valueExpression>
</extension>
<linkId value="medicare-number"/>
<text value="Medicare number"/>
<type value="string"/>
<required value="true"/>
</item>
<item >
<extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" >
<valueExpression >
<language value="text/fhirpath"/>
<expression value="%LaunchPatient.identifier.where(system='http://ns.electronichealth.net.au/id/dva').value.first()"/>
</valueExpression>
</extension>
<linkId value="dva-number"/>
<text value="DVA number"/>
<type value="string"/>
</item>
<item >
<extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" >
<valueExpression >
<language value="text/fhirpath"/>
<expression value="%LaunchPatient.name.first().family.first()"/>
</valueExpression>
</extension>
<linkId value="family-name"/>
<text value="Family name"/>
<type value="string"/>
</item>
<item >
<extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" >
<valueExpression >
<language value="text/fhirpath"/>
<expression value="%LaunchPatient.name.first().given.first()"/>
</valueExpression>
</extension>
<linkId value="given-names"/>
<text value="Given name(s)"/>
<type value="string"/>
</item>
<item >
<extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" >
<valueExpression >
<language value="text/fhirpath"/>
<expression value="%LaunchPatient.birthDate"/>
</valueExpression>
</extension>
<linkId value="dob"/>
<text value="Date of birth"/>
<type value="date"/>
</item>
<item >
<extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" >
<valueExpression >
<language value="text/fhirpath"/>
<expression value="%LaunchPatient.gender"/>
</valueExpression>
</extension>
<linkId value="gender"/>
<text value="Gender"/>
<type value="choice"/>
<repeats value="false"/>
<answerValueSet value="https://sqlonfhir-r4.azurewebsites.net/fhir/ValueSet/administrative-gender"/>
</item>
<item >
<extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" >
<valueExpression >
<language value="text/fhirpath"/>
<expression value="%LaunchPatient.telecom.where(system='phone').select(($this.where(use='mobile') | $this.where(use='home')).first().value)"/>
</valueExpression>
</extension>
<linkId value="contact-number"/>
<text value="Contact telephone number"/>
<type value="string"/>
<item >
<linkId value="contact-number-tooltip"/>
<text value="(mobile or land line including area code)"/>
<type value="text"/>
</item>
</item>
<item >
<extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" >
<valueExpression >
<language value="text/fhirpath"/>
<expression value="%PrePopQuery.entry.first().resource.total"/>
</valueExpression>
</extension>
<linkId value="condition-count"/>
<text value="Number of active Conditions"/>
<type value="integer"/>
</item>
</item>
<item >
<linkId value="meds"/>
<text value="Medications"/>
<type value="group"/>
<repeats value="false"/>
<item >
<extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" >
<valueExpression >
<language value="text/fhirpath"/>
<expression value="PrePopQuery.entry.skip(1).first().resource"/>
</valueExpression>
</extension>
<linkId value="med-name"/>
<text value="Name"/>
<type value="string"/>
<repeats value="true"/>
</item>
</item>
<item >
<linkId value="provider-details"/>
<text value="Provider details"/>
<type value="group"/>
<repeats value="false"/>
<item >
<extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" >
<valueExpression >
<language value="text/fhirpath"/>
<expression value="%LaunchPractitioner.identifier.where(system='http://ns.electronichealth.net.au/id/hi/prn').first().value"/>
</valueExpression>
</extension>
<linkId value="provider-number"/>
<text value="Provider number for payment"/>
<type value="string"/>
</item>
<item >
<extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" >
<valueExpression >
<language value="text/fhirpath"/>
<expression value="today()"/>
</valueExpression>
</extension>
<linkId value="date-consult"/>
<text value="Date of consultation"/>
<type value="date"/>
</item>
<item >
<extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" >
<valueExpression >
<language value="text/fhirpath"/>
<expression value="%LaunchPractitioner.name.first().select(given.first() + ' ' + family.first())"/>
</valueExpression>
</extension>
<linkId value="provider-name"/>
<text value="Name"/>
<type value="string"/>
</item>
</item>
</item>
</Questionnaire>