Saving StructureDefinitions with snapshots fails to external references with quantity-comparator valueset #534

Closed
eevaturkka opened this Issue Dec 29, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@eevaturkka

eevaturkka commented Dec 29, 2016

I tested this with the 2.2 Hapi JPA-server example project clean build (without any configurations or anything, empty derby database) by trying to upload the attached profile with the hapi tester ui. Attached is a sample profile this can be reproduced with, also normal profiles that have snapshots with them cause this problem.

The operation outcome is:

<OperationOutcome xmlns="http://hl7.org/fhir">
   <text>
      <status value="generated"/>
      <div xmlns="http://www.w3.org/1999/xhtml">
         <h1>Operation Outcome</h1>
         <table border="0">
            <tr>
               <td style="font-weight: bold;">error</td>
               <td>[]</td>
               <td>
                  <pre>Resource contains external reference to URL &quot;http://hl7.org/fhir/ValueSet/quantity-comparator&quot; but this server is not configured to allow external references</pre>
               </td> 
            </tr> 
         </table> 
      </div>
   </text>
   <issue>
      <severity value="error"/>
      <code value="processing"/>
      <diagnostics value="Resource contains external reference to URL &quot;http://hl7.org/fhir/ValueSet/quantity-comparator&quot; but this server is not configured to allow external references"/>
   </issue>
</OperationOutcome>

If we remove the checkboxes "Resource reference" in Forge from Reference range Forge includes the value set inline and the profile is accepted. But I believe the quantity-comparator is a core value set and?

Uploading the value set to server doesn't seem to help either, I added the valueset from hl7.org to the server and tried to upload the profile again with the same results.

The quantity comparator seems to be required value set in the standard:
http://hl7.org/fhir/valueset-quantity-comparator.html

Another similar problem with valuesets occur when trying to load a profile with full snapshot (without the quantities) (profile also attached):

<OperationOutcome xmlns="http://hl7.org/fhir">
   <text>
      <status value="generated"/>
      <div xmlns="http://www.w3.org/1999/xhtml">
         <h1>Operation Outcome</h1>
         <table border="0">
            <tr>
               <td style="font-weight: bold;">error</td>
               <td>[]</td>
               <td>
                  <pre>Resource contains external reference to URL &quot;http://hl7.org/fhir/ValueSet/security-labels&quot; but this server is not configured to allow external references</pre>
               </td> 
            </tr> 
         </table> 
      </div>
   </text>
   <issue>
      <severity value="error"/>
      <code value="processing"/>
      <diagnostics value="Resource contains external reference to URL &quot;http://hl7.org/fhir/ValueSet/security-labels&quot; but this server is not configured to allow external references"/>
   </issue>
</OperationOutcome>

Should we set some configuration option to allow these value sets? Allowing all external references isn't really an option.

example_profile.xml.txt
bw_profile_snapshot.xml.txt

jamesagnew added a commit that referenced this issue Mar 27, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment