Release 4 5

This page is part of the FHIR Specification (v4.0.1: R4 (v5.0.0: R5 - Mixed Normative and STU ) ). This is the current published version in it's permanent home (it will always be available at this URL). 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

Testreport-example.xml

Example TestReport/testreport-example (XML)

FHIR Infrastructure Work Group Maturity Level : N/A Standards Status : Informative Compartments : Not linked to any No defined compartments

Raw XML ( canonical form + also see XML Format Specification )

Jump past Narrative

General TestReport Example (id = "testreport-example")

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


  
  
    
    
  
  
  
  
    
  
  
  
  
  
  
    
    
    
  
  
    
    
    
  
  
    
      
        
        
        
      
    
    
      
        
        
        
      
    
    
      
        
        
        
      
    
    
      
        
        
        
      
    
  

  
    
    
    
      
        
        
        
      
    
    
      
        
        
        
      
    
    
      
        
        
        
      
    
    
      
        
        
        
      
    
    
      
        
        
        
      
    
    
      
        
        
        
      
    
    
      
        
        
        
      
    
    
      
        
        
        
      
    
    
      
        
        
        
      
    
    
      
        
        
                
      
    
  
  
    
      
        
        
        
      
    
  

<TestReport xmlns="http://hl7.org/fhir">
  <id value="testreport-example"/> 
  <text> <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml"><p> <b> Generated Narrative: TestReport</b> <a name="testreport-example"> </a> </p> <div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border:
       1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px">Resource TestReport &quot;testreport-example&quot; </p> </div> <p> <b> identifier</b> : id: urn:oid:1.3.6.1.4.1.21367.2005.3.7.9878</p> <p> <b> name</b> : TestReport Example for TestScript Example</p> <p> <b> status</b> : completed</p> <p> <b> testScript</b> : <a href="http://example.com/TestScript/testscript-example">http://example.com/TestScript/testscript-example</a> </p> <p> <b> result</b> : pass</p> <p> <b> score</b> : 100.0</p> <p> <b> tester</b> : HL7 Execution Engine</p> <p> <b> issued</b> : 2016-10-07T08:25:34-05:00</p> <blockquote> <p> <b> participant</b> </p> <p> <b> type</b> : test-engine</p> <p> <b> uri</b> : <a href="http://projectcrucible.org">http://projectcrucible.org</a> </p> <p> <b> display</b> : Crucible</p> </blockquote> <blockquote> <p> <b> participant</b> </p> <p> <b> type</b> : server</p> <p> <b> uri</b> : <a href="http://fhir3.healthintersections.com.au/open">http://fhir3.healthintersections.com.au/open</a> </p> <p> <b> display</b> : HealthIntersections STU3</p> </blockquote> <blockquote> <p> <b> setup</b> </p> <blockquote> <p> <b> action</b> </p> <h3> Operations</h3> <table class="grid"><tr> <td> -</td> <td> <b> Result</b> </td> <td> <b> Message</b> </td> <td> <b> Detail</b> </td> </tr> <tr> <td> *</td> <td> pass</td> <td> DELETE Patient</td> <td> <a href="http://projectcrucible.org/permalink/1">http://projectcrucible.org/permalink/1</a> </td> </tr> </table> </blockquote> <blockquote> <p> <b> action</b> </p> <h3> Asserts</h3> <table class="grid"><tr> <td> -</td> <td> <b> Result</b> </td> <td> <b> Message</b> </td> <td> <b> Detail</b> </td> </tr> <tr> <td> *</td> <td> pass</td> <td> HTTP 204</td> <td> http://projectcrucible.org/permalink/1</td> </tr> </table> </blockquote> <blockquote> <p> <b> action</b> </p> <h3> Operations</h3> <table class="grid"><tr> <td> -</td> <td> <b> Result</b> </td> <td> <b> Message</b> </td> <td> <b> Detail</b> </td> </tr> <tr> <td> *</td> <td> pass</td> <td> POST Patient/fixture-patient-create</td> <td> <a href="http://projectcrucible.org/permalink/1">http://projectcrucible.org/permalink/1</a> </td> </tr> </table> </blockquote> <blockquote> <p> <b> action</b> </p> <h3> Asserts</h3> <table class="grid"><tr> <td> -</td> <td> <b> Result</b> </td> <td> <b> Message</b> </td> <td> <b> Detail</b> </td> </tr> <tr> <td> *</td> <td> pass</td> <td> HTTP 201</td> <td> http://projectcrucible.org/permalink/1</td> </tr> </table> </blockquote> </blockquote> <blockquote> <p> <b> test</b> </p> <p> <b> name</b> : Read Patient</p> <p> <b> description</b> : Read a Patient and validate response.</p> <blockquote> <p> <b> action</b> </p> <h3> Operations</h3> <table class="grid"><tr> <td> -</td> <td> <b> Result</b> </td> <td> <b> Message</b> </td> <td> <b> Detail</b> </td> </tr> <tr> <td> *</td> <td> pass</td> <td> GET Patient/fixture-patient-create</td> <td> <a href="http://projectcrucible.org/permalink/2">http://projectcrucible.org/permalink/2</a> </td> </tr> </table> </blockquote> <blockquote> <p> <b> action</b> </p> <h3> Asserts</h3> <table class="grid"><tr> <td> -</td> <td> <b> Result</b> </td> <td> <b> Message</b> </td> <td> <b> Detail</b> </td> </tr> <tr> <td> *</td> <td> pass</td> <td> HTTP 200</td> <td> http://projectcrucible.org/permalink/2</td> </tr> </table> </blockquote> <blockquote> <p> <b> action</b> </p> <h3> Asserts</h3> <table class="grid"><tr> <td> -</td> <td> <b> Result</b> </td> <td> <b> Message</b> </td> <td> <b> Detail</b> </td> </tr> <tr> <td> *</td> <td> pass</td> <td> Last-Modified Present</td> <td> http://projectcrucible.org/permalink/2</td> </tr> </table> </blockquote> <blockquote> <p> <b> action</b> </p> <h3> Asserts</h3> <table class="grid"><tr> <td> -</td> <td> <b> Result</b> </td> <td> <b> Message</b> </td> <td> <b> Detail</b> </td> </tr> <tr> <td> *</td> <td> pass</td> <td> Response is Patient</td> <td> http://projectcrucible.org/permalink/2</td> </tr> </table> </blockquote> <blockquote> <p> <b> action</b> </p> <h3> Asserts</h3> <table class="grid"><tr> <td> -</td> <td> <b> Result</b> </td> <td> <b> Message</b> </td> <td> <b> Detail</b> </td> </tr> <tr> <td> *</td> <td> pass</td> <td> Response validates</td> <td> http://projectcrucible.org/permalink/2</td> </tr> </table> </blockquote> <blockquote> <p> <b> action</b> </p> <h3> Asserts</h3> <table class="grid"><tr> <td> -</td> <td> <b> Result</b> </td> <td> <b> Message</b> </td> <td> <b> Detail</b> </td> </tr> <tr> <td> *</td> <td> pass</td> <td> Patient.name.family 'Chalmers'</td> <td> http://projectcrucible.org/permalink/2</td> </tr> </table> </blockquote> <blockquote> <p> <b> action</b> </p> <h3> Asserts</h3> <table class="grid"><tr> <td> -</td> <td> <b> Result</b> </td> <td> <b> Message</b> </td> <td> <b> Detail</b> </td> </tr> <tr> <td> *</td> <td> pass</td> <td> Patient.name.given 'Peter'</td> <td> http://projectcrucible.org/permalink/2</td> </tr> </table> </blockquote> <blockquote> <p> <b> action</b> </p> <h3> Asserts</h3> <table class="grid"><tr> <td> -</td> <td> <b> Result</b> </td> <td> <b> Message</b> </td> <td> <b> Detail</b> </td> </tr> <tr> <td> *</td> <td> pass</td> <td> Patient.name.family 'Chalmers'</td> <td> http://projectcrucible.org/permalink/2</td> </tr> </table> </blockquote> <blockquote> <p> <b> action</b> </p> <h3> Asserts</h3> <table class="grid"><tr> <td> -</td> <td> <b> Result</b> </td> <td> <b> Message</b> </td> <td> <b> Detail</b> </td> </tr> <tr> <td> *</td> <td> pass</td> <td> Patient.name.family 'Chalmers'</td> <td> http://projectcrucible.org/permalink/2</td> </tr> </table> </blockquote> <blockquote> <p> <b> action</b> </p> <h3> Asserts</h3> <table class="grid"><tr> <td> -</td> <td> <b> Result</b> </td> <td> <b> Message</b> </td> <td> <b> Detail</b> </td> </tr> <tr> <td> *</td> <td> pass</td> <td> Patient expected values.</td> <td> http://projectcrucible.org/permalink/2</td> </tr> </table> </blockquote> </blockquote> <blockquote> <p> <b> teardown</b> </p> <blockquote> <p> <b> action</b> </p> <h3> Operations</h3> <table class="grid"><tr> <td> -</td> <td> <b> Result</b> </td> <td> <b> Message</b> </td> <td> <b> Detail</b> </td> </tr> <tr> <td> *</td> <td> pass</td> <td> DELETE Patient/fixture-patient-create.</td> <td> <a href="http://projectcrucible.org/permalink/3">http://projectcrucible.org/permalink/3</a> </td> </tr> </table> </blockquote> </blockquote> </div> </text> <identifier> 
    <system value="urn:ietf:rfc:3986"/>     <value value="urn:oid:1.3.6.1.4.1.21367.2005.3.7.9878"/>   </identifier>   <name value="TestReport Example for TestScript Example"/>   <status value="completed"/>   <testScript value="http://example.com/TestScript/testscript-example"/>   <result value="pass"/>   <score value="100.0"/>   <tester value="HL7 Execution Engine"/>   <issued value="2016-10-07T08:25:34-05:00"/>   <participant>     <type value="test-engine"/>     <uri value="http://projectcrucible.org"/>     <display value="Crucible"/>   </participant>   <participant>     <type value="server"/>     <uri value="http://fhir3.healthintersections.com.au/open"/>     <display value="HealthIntersections STU3"/>   </participant>   <setup>     <action>       <operation>         <result value="pass"/>         <message value="DELETE Patient"/>         <detail value="http://projectcrucible.org/permalink/1"/>       </operation>     </action>     <action>       <assert>         <result value="pass"/>         <message value="HTTP 204"/>         <detail value="http://projectcrucible.org/permalink/1"/>       </assert>     </action>     <action>       <operation>         <result value="pass"/>         <message value="POST Patient/fixture-patient-create"/>         <detail value="http://projectcrucible.org/permalink/1"/>       </operation>     </action>     <action>       <assert>         <result value="pass"/>         <message value="HTTP 201"/>         <detail value="http://projectcrucible.org/permalink/1"/>       </assert>     </action>   </setup>   <test id="01-ReadPatient">    <name value="Read Patient"/>     <description value="Read a Patient and validate response."/>     <action>       <operation>         <result value="pass"/>         <message value="GET Patient/fixture-patient-create"/>         <detail value="http://projectcrucible.org/permalink/2"/>       </operation>     </action>     <action>       <assert>         <result value="pass"/>         <message value="HTTP 200"/>         <detail value="http://projectcrucible.org/permalink/2"/>       </assert>     </action>     <action>       <assert>         <result value="pass"/>         <message value="Last-Modified Present"/>         <detail value="http://projectcrucible.org/permalink/2"/>       </assert>     </action>     <action>       <assert>         <result value="pass"/>         <message value="Response is Patient"/>         <detail value="http://projectcrucible.org/permalink/2"/>       </assert>     </action>     <action>       <assert>         <result value="pass"/>         <message value="Response validates"/>         <detail value="http://projectcrucible.org/permalink/2"/>       </assert>     </action>     <action>       <assert>         <result value="pass"/>         <message value="Patient.name.family 'Chalmers'"/>         <detail value="http://projectcrucible.org/permalink/2"/>       </assert>     </action>     <action>       <assert>         <result value="pass"/>         <message value="Patient.name.given 'Peter'"/>         <detail value="http://projectcrucible.org/permalink/2"/>       </assert>     </action>     <action>       <assert>         <result value="pass"/>         <message value="Patient.name.family 'Chalmers'"/>         <detail value="http://projectcrucible.org/permalink/2"/>       </assert>     </action>     <action>       <assert>         <result value="pass"/>         <message value="Patient.name.family 'Chalmers'"/>         <detail value="http://projectcrucible.org/permalink/2"/>       </assert>     </action>     <action>       <assert>         <result value="pass"/>         <message value="Patient expected values."/>         <detail value="http://projectcrucible.org/permalink/2"/>               </assert>     </action>   </test>   <teardown>     <action>       <operation>         <result value="pass"/>         <message value="DELETE Patient/fixture-patient-create."/>         <detail value="http://projectcrucible.org/permalink/3"/>       </operation>     </action>   </teardown> 


</

TestReport

>



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.