<?xml version="1.0" encoding="UTF-8"?>
<difference>
   <type name="DocumentReference" status="changed">
      <element path="DocumentReference.version" status="new"/>
      <element path="DocumentReference.basedOn" status="new"/>
      <element binding-status="changed"
               binding-valueset-changed="true"
               path="DocumentReference.status">
         <old-binding reference="http://hl7.org/fhir/ValueSet/document-reference-status|4.0.0"
                      strength="required"/>
         <new-binding reference="http://hl7.org/fhir/ValueSet/document-reference-status|6.0.0-ballot4"
                      strength="required"/>
      </element>
      <element binding-codes-changed="true"
               binding-status="changed"
               binding-valueset-changed="true"
               modifier="added"
               path="DocumentReference.docStatus">
         <removed-code code="preliminary"/>
         <added-code code="registered"/>
         <added-code code="partial"/>
         <added-code code="cancelled"/>
         <added-code code="deprecated"/>
         <added-code code="unknown"/>
         <old-binding reference="http://hl7.org/fhir/ValueSet/composition-status|4.0.0"
                      strength="required"/>
         <new-binding reference="http://hl7.org/fhir/ValueSet/composition-status|6.0.0-ballot4"
                      strength="required"/>
      </element>
      <element path="DocumentReference.modality" status="new"/>
      <element path="DocumentReference.subject">
         <removed-type name="Reference(Patient | Practitioner | Group | Device)"/>
         <added-type name="Reference(Resource)"/>
      </element>
      <element new-max="*" old-max="1" path="DocumentReference.context">
         <removed-type name="BackboneElement"/>
         <added-type name="Reference(Appointment | Encounter | EpisodeOfCare)"/>
      </element>
      <element path="DocumentReference.event" status="new"/>
      <element path="DocumentReference.related" status="new"/>
      <element path="DocumentReference.bodyStructure" status="new"/>
      <element path="DocumentReference.date">
         <removed-type name="instant"/>
         <added-type name="dateTime"/>
      </element>
      <element path="DocumentReference.author">
         <removed-type name="Reference(Practitioner | PractitionerRole | Organization | Device | Patient | RelatedPerson)"/>
         <added-type name="Reference(Practitioner | PractitionerRole | Organization | Device | Patient | RelatedPerson | CareTeam | Group)"/>
      </element>
      <element path="DocumentReference.attester" status="new"/>
      <element path="DocumentReference.attester.mode" status="new"/>
      <element path="DocumentReference.attester.time" status="new"/>
      <element path="DocumentReference.attester.party" status="new"/>
      <element binding-status="changed"
               binding-strength-changed="true"
               binding-valueset-changed="true"
               path="DocumentReference.relatesTo.code">
         <removed-type name="code"/>
         <added-type name="CodeableConcept"/>
         <old-binding reference="http://hl7.org/fhir/ValueSet/document-relationship-type|4.0.0"
                      strength="required"/>
         <new-binding reference="http://hl7.org/fhir/ValueSet/document-relationship-type"
                      strength="extensible"/>
      </element>
      <element path="DocumentReference.description">
         <removed-type name="string"/>
         <added-type name="markdown"/>
      </element>
      <element binding-status="removed" path="DocumentReference.securityLabel">
         <old-binding reference="http://hl7.org/fhir/ValueSet/security-labels"
                      strength="extensible"/>
      </element>
      <element path="DocumentReference.content.profile" status="new"/>
      <element path="DocumentReference.content.profile.value[x]" status="new"/>
      <element path="DocumentReference.masterIdentifier" status="deleted"/>
      <element path="DocumentReference.authenticator" status="deleted"/>
      <element path="DocumentReference.content.format" status="deleted"/>
      <element path="DocumentReference.context.encounter" status="deleted"/>
      <element path="DocumentReference.context.event" status="deleted"/>
      <element path="DocumentReference.context.sourcePatientInfo" status="deleted"/>
      <element path="DocumentReference.context.related" status="deleted"/>
   </type>
</difference>
