Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Questionnaire Snippet for Cancer

This example snippet for the Questionnaire item for Cancer uses a pre-defined value set that specifies the HL7 V2 Value Set of “yesnodontknow”.

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

<Questionnaire xmlns="http://hl7.org/fhir">
.....
  <item> 
    <linkId value="9466bc38-d7c9-4503-811b-577fe77f6ef6"/> 
    <code> 
       <system value="http://snomed.info/sct"/> 
       <code value="363346000"/> 
       <display value="Malignant neoplastic disease (disorder)"/> 
    </code> 
    <type value="choice"/> 
    <answerValueSet value="http://hl7.org/fhir/ValueSet/yesnodontknow"/> 
  </item>
  ..... 
</Questionnaire> 

Questionnaire Response Snippet for Cancer

Code Block
<QuestionnaireResponse xmlns="http://hl7.org/fhir">
   ....
    <item> 
      <linkId value="9466bc38-d7c9-4503-811b-577fe77f6ef6"/> 
      <answer> 
        <valueCoding> 
          <system value="http://terminology.hl7.org/CodeSystem/v2-0136"/> 
          <code value="Y"/> 
          <display value="Yes"/> 
        </valueCoding>      
  </item>
  .....
</QuestionnaireResponse> 

Questionnaire Response for Cancer Transformed to FHIR Observation based on ANF

Even though the Diabetes and Cancer examples use two different value sets the ANF transformation to a FHIR Observation normalizes the value to the same range value.

Code Block
<?xml version="1.0" encoding="UTF-8"?>
<Observation xmlns="http://hl7.org/fhir">
  <identifier>3c4b3fb3-017c-4fc2-89b2-a5dd8bbdb3f5</identifier>
  <status value="final"/> 
  <code> 
    <coding> 
      <system value="http://snomed.info/sct"/> 
      <code value="363346000"/> 
      <display value="Malignant neoplastic disease (disorder)"/> 
    </coding> 
  </code> 
  <subject> 
    <reference value="Patient"/> 
  </subject> 
  <focus>
	<reference value=”Patient”/>
  </focus>
  <effectiveDateTime value="2020-07-06T22:33:22Z"/> 
  <performer>
    <reference value=”Practitioner”/>
  </performer>
  <valueRange> 
    <Range>
		<low>
			<value>0</value>
			<comparator value=”>”/>
			<code>
              <system value=”http://snomed.info/sct”/>
              <code value=”118595003”/>
              <display value="Quantity content"/>
            </code>
        </low>
		<high>
          <value>INF</value>
          <comparator value=”<=”/>
          <code>
            <system value=”http://snomed.info/sct”/>
			<code value=”118595003”/>
			<display value="Quantity content"/>
          </code>
        </high>
	</Range>
  </valueRange> 
</Observation>