﻿<?xml version="1.0" encoding="UTF-8"?>
<difference>
   <type name="DocumentReference" status="changed">
      <element binding-status="changed"
               binding-valueset-changed="true"
               path="DocumentReference.status">
         <old-binding reference="http://hl7.org/fhir/ValueSet/document-reference-status"
                      strength="required"/>
         <new-binding reference="http://hl7.org/fhir/ValueSet/document-reference-status|4.0.1"
                      strength="required"/>
      </element>
      <element binding-status="changed"
               binding-valueset-changed="true"
               path="DocumentReference.docStatus">
         <old-binding reference="http://hl7.org/fhir/ValueSet/composition-status"
                      strength="required"/>
         <new-binding reference="http://hl7.org/fhir/ValueSet/composition-status|4.0.1"
                      strength="required"/>
      </element>
      <element new-min="0" old-min="1" path="DocumentReference.type"/>
      <element new-max="*"
               old-max="1"
               old-name="class"
               path="DocumentReference.category"/>
      <element path="DocumentReference.date" status="new"/>
      <element path="DocumentReference.author">
         <removed-type name="Reference(Practitioner | Organization | Device | Patient | RelatedPerson)"/>
         <added-type name="Reference(Practitioner | PractitionerRole | Organization | Device | Patient | RelatedPerson)"/>
      </element>
      <element path="DocumentReference.authenticator">
         <removed-type name="Reference(Practitioner | Organization)"/>
         <added-type name="Reference(Practitioner | PractitionerRole | Organization)"/>
      </element>
      <element modifier="removed" path="DocumentReference.relatesTo"/>
      <element binding-status="changed"
               binding-valueset-changed="true"
               path="DocumentReference.relatesTo.code">
         <old-binding reference="http://hl7.org/fhir/ValueSet/document-relationship-type"
                      strength="required"/>
         <new-binding reference="http://hl7.org/fhir/ValueSet/document-relationship-type|4.0.1"
                      strength="required"/>
      </element>
      <element new-max="*" old-max="1" path="DocumentReference.context.encounter">
         <removed-type name="Reference(Encounter)"/>
         <added-type name="Reference(Encounter | EpisodeOfCare)"/>
      </element>
      <element path="DocumentReference.context.related">
         <removed-type name="BackboneElement"/>
         <added-type name="Reference(Resource)"/>
      </element>
      <element path="DocumentReference.created" status="deleted"/>
      <element path="DocumentReference.indexed" status="deleted"/>
      <element path="DocumentReference.context.related.identifier" status="deleted"/>
      <element path="DocumentReference.context.related.ref" status="deleted"/>
   </type>
</difference>
