Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

Version 1 Current »

Questionnaire Snippet

In this example snippet of xml from the Questionnaire we embed a value set definition within the Questionnaire using codes from SNOMED CT.

<Questionnaire xmlns="http://hl7.org/fhir">
  <contained>
    <ValueSet>
    <id value="Yes_No_Unknown"/>
    <name value="SNOMED CT Yes No Unknown Value Set"/>
    <status value="active"/>
      <compose>
        <include>
          <system value="http://snomed.info/sct"/>
          <concept>
            <code value="373066001"/>
            <display value="Yes"/>
          </concept>
          <concept>
            <code value="373067005"/>
            <display value="No"/>
          </concept>
          <concept>
            <code value="261665006"/>
            <display value="Unknown"/>
          </concept>
        </include>
      </compose>
    </ValueSet>
  </contained>
…….
  <item>
    <linkId value=”def38978-c6be-11ea-87d0-0242ac130003”/>
        <code>
           <system value=”http://snomed.info/sct”/>
           <code value=”413839001”/>
           <display value="Chronic lung disease"/>
        </code>
        <text>Does the patient have chronic lung disease?</text>                
        <type value=”choice”/>
        <answerValueSet value=”#Yes_No_Unknown” />
</item>
……..
</Questionnaire>

Questionnaire Response

 

<QuestionnaireResponse xmlns="http://hl7.org/fhir">
…….
  <item>
    <linkId>def38978-c6be-11ea-87d0-0242ac130003</linkId>
    <text>Does the patient have chronic lung disease?</text>
    <answer>
       <valueCoding>
          <system value=”http://snomed.info/sct”/>
          <code value=”373067005”/>
          <display value=”No”/>
       </valueCoding>
   </answer>
</item>
……..
</QuestionnaireResponse>

Questionnaire Response Transformed to FHIR Observation based on ANF

 The “No” answer to the Questionnaire is transformed in the FHIR Observation as a Range of > 0 and <= INF based on the ANF specification.

<?xml version="1.0" encoding="UTF-8"?>
<Observation xmlns="http://hl7.org/fhir">
  <identifier>1691bcb0-c6ba-11ea-87d0-0242ac130003</identifier>
  <status value="final"/>
  <code>
    <coding>
      <system value="http://snomed.info/sct"/>
      <code value="413839001"/>
      <display value="Chronic lung disease"/>
    </coding>
  </code>
  <subject>
    <reference value="Patient"/>
  </subject>
  <focus>
    <reference value=”Patient”/>
  </focus>
  <effectiveDateTime value="Time of observation"/>
  <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>

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.