<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="EPLabPrescriptionBundle-5b2f2e66-99cc-4d42-af64-0a6d87845468" />
  <url value="https://www.esante.lu/fhir-spec/StructureDefinition/EPLabPrescriptionBundle" />
  <version value="1.2.0" />
  <name value="EPLabPrescriptionBundle" />
  <status value="active" />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="cda" />
    <uri value="http://hl7.org/v3/cda" />
    <name value="CDA (R2)" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Bundle" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Bundle" />
  <derivation value="constraint" />
  <differential>
    <element id="Bundle">
      <path value="Bundle" />
      <condition value="val-SameDateLabPresc" />
      <constraint>
        <key value="val-SameDateLabPresc" />
        <severity value="error" />
        <human value="The dates on the prescription shall be coherent" />
        <expression value="Bundle.entry.resource.select(ofType(CarePlan).created|ofType(DocumentReference).date|ofType(CarePlan).period.start|ofType(ServiceRequest).authoredOn|ofType(CommunicationRequest).authoredOn|ofType(Consent).dateTime).select(toString().substring(0,10)).distinct().count() = 1" />
        <source value="https://www.esante.lu/fhir-spec/StructureDefinition/EPLabPrescriptionBundle" />
      </constraint>
    </element>
    <element id="Bundle.id">
      <path value="Bundle.id" />
      <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.&#xD;&#xA;Is assigned by the server, do not provide a value." />
    </element>
    <element id="Bundle.meta">
      <path value="Bundle.meta" />
      <min value="1" />
    </element>
    <element id="Bundle.meta.id">
      <path value="Bundle.meta.id" />
      <max value="0" />
    </element>
    <element id="Bundle.meta.versionId">
      <path value="Bundle.meta.versionId" />
      <max value="0" />
    </element>
    <element id="Bundle.meta.lastUpdated">
      <path value="Bundle.meta.lastUpdated" />
      <max value="0" />
    </element>
    <element id="Bundle.meta.source">
      <path value="Bundle.meta.source" />
      <max value="0" />
    </element>
    <element id="Bundle.meta.profile">
      <path value="Bundle.meta.profile" />
      <min value="1" />
      <max value="1" />
      <fixedCanonical value="https://www.esante.lu/fhir-spec/StructureDefinition/EPLabPrescriptionBundle" />
    </element>
    <element id="Bundle.meta.security">
      <path value="Bundle.meta.security" />
      <max value="0" />
    </element>
    <element id="Bundle.meta.tag">
      <path value="Bundle.meta.tag" />
      <max value="0" />
    </element>
    <element id="Bundle.implicitRules">
      <path value="Bundle.implicitRules" />
      <max value="0" />
    </element>
    <element id="Bundle.language">
      <path value="Bundle.language" />
      <max value="0" />
    </element>
    <element id="Bundle.identifier">
      <path value="Bundle.identifier" />
      <max value="0" />
    </element>
    <element id="Bundle.type">
      <path value="Bundle.type" />
      <definition value="Constant value" />
      <fixedCode value="transaction" />
    </element>
    <element id="Bundle.timestamp">
      <path value="Bundle.timestamp" />
      <max value="0" />
    </element>
    <element id="Bundle.total">
      <path value="Bundle.total" />
      <max value="0" />
    </element>
    <element id="Bundle.link">
      <path value="Bundle.link" />
      <max value="0" />
    </element>
    <element id="Bundle.entry">
      <path value="Bundle.entry" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="resource.meta.profile" />
        </discriminator>
        <rules value="closed" />
      </slicing>
      <min value="5" />
    </element>
    <element id="Bundle.entry:prescription">
      <path value="Bundle.entry" />
      <sliceName value="prescription" />
      <short value="The prescription" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Bundle.entry:prescription.id">
      <path value="Bundle.entry.id" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:prescription.link">
      <path value="Bundle.entry.link" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:prescription.fullUrl">
      <path value="Bundle.entry.fullUrl" />
      <short value="UUID of the resource" />
      <definition value="This is a UUID to identify the element inside the Bundle.&#xD;&#xA;It SHALL start with urn:uuid: and then an UUID version 4 randomly generated. Its scope is only the Bundle, it is not linked outside from it and not saved." />
      <min value="1" />
      <example>
        <label value="Valid example" />
        <valueUri value="urn:uuid:d00069b7-1fc8-4397-bc7c-c9571319d890" />
      </example>
      <condition value="val-uuid" />
      <constraint>
        <key value="val-uuid" />
        <severity value="error" />
        <human value="SHALL be a v4 UUID prefixed by urn:uuid:" />
        <expression value="startsWith('urn:uuid:') and length()=45" />
        <source value="https://www.esante.lu/fhir-spec/StructureDefinition/EPLabPrescriptionBundle" />
      </constraint>
    </element>
    <element id="Bundle.entry:prescription.resource">
      <path value="Bundle.entry.resource" />
      <short value="The prescription" />
      <min value="1" />
      <type>
        <code value="CarePlan" />
        <profile value="https://www.esante.lu/fhir-spec/StructureDefinition/EPLabPrescription" />
      </type>
    </element>
    <element id="Bundle.entry:prescription.search">
      <path value="Bundle.entry.search" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:prescription.request">
      <path value="Bundle.entry.request" />
      <min value="1" />
    </element>
    <element id="Bundle.entry:prescription.request.id">
      <path value="Bundle.entry.request.id" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:prescription.request.method">
      <path value="Bundle.entry.request.method" />
      <definition value="Constant" />
      <fixedCode value="POST" />
    </element>
    <element id="Bundle.entry:prescription.request.url">
      <path value="Bundle.entry.request.url" />
      <short value="Constant" />
      <fixedUri value="CarePlan" />
    </element>
    <element id="Bundle.entry:prescription.request.ifNoneMatch">
      <path value="Bundle.entry.request.ifNoneMatch" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:prescription.request.ifModifiedSince">
      <path value="Bundle.entry.request.ifModifiedSince" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:prescription.request.ifMatch">
      <path value="Bundle.entry.request.ifMatch" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:prescription.request.ifNoneExist">
      <path value="Bundle.entry.request.ifNoneExist" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:prescription.response">
      <path value="Bundle.entry.response" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:prescriptionLine">
      <path value="Bundle.entry" />
      <sliceName value="prescriptionLine" />
      <short value="Prescription lines" />
      <min value="1" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:prescriptionLine.id">
      <path value="Bundle.entry.id" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:prescriptionLine.link">
      <path value="Bundle.entry.link" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:prescriptionLine.fullUrl">
      <path value="Bundle.entry.fullUrl" />
      <short value="UUID of the resource" />
      <definition value="This is a UUID to identify the element inside the Bundle.&#xD;&#xA;It SHALL start with urn:uuid: and then an UUID version 4 randomly generated. Its scope is only the Bundle, it is not linked outside from it and not saved." />
      <min value="1" />
      <condition value="val-uuid" />
      <constraint>
        <key value="val-uuid" />
        <severity value="error" />
        <human value="SHALL be a v4 UUID prefixed by urn:uuid:" />
        <expression value="startsWith('urn:uuid:') and length()=45" />
        <source value="https://www.esante.lu/fhir-spec/StructureDefinition/EPLabPrescriptionBundle" />
      </constraint>
    </element>
    <element id="Bundle.entry:prescriptionLine.resource">
      <path value="Bundle.entry.resource" />
      <short value="A prescription line" />
      <min value="1" />
      <type>
        <code value="ServiceRequest" />
        <profile value="https://www.esante.lu/fhir-spec/StructureDefinition/EPLabPrescriptionLine" />
      </type>
    </element>
    <element id="Bundle.entry:prescriptionLine.search">
      <path value="Bundle.entry.search" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:prescriptionLine.request">
      <path value="Bundle.entry.request" />
      <min value="1" />
    </element>
    <element id="Bundle.entry:prescriptionLine.request.id">
      <path value="Bundle.entry.request.id" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:prescriptionLine.request.method">
      <path value="Bundle.entry.request.method" />
      <definition value="Constant" />
      <fixedCode value="POST" />
    </element>
    <element id="Bundle.entry:prescriptionLine.request.url">
      <path value="Bundle.entry.request.url" />
      <short value="Constant" />
      <fixedUri value="ServiceRequest" />
    </element>
    <element id="Bundle.entry:prescriptionLine.request.ifNoneMatch">
      <path value="Bundle.entry.request.ifNoneMatch" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:prescriptionLine.request.ifModifiedSince">
      <path value="Bundle.entry.request.ifModifiedSince" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:prescriptionLine.request.ifMatch">
      <path value="Bundle.entry.request.ifMatch" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:prescriptionLine.request.ifNoneExist">
      <path value="Bundle.entry.request.ifNoneExist" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:prescriptionLine.response">
      <path value="Bundle.entry.response" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:pdfDocument">
      <path value="Bundle.entry" />
      <sliceName value="pdfDocument" />
      <short value="The PDF representing this prescription" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Bundle.entry:pdfDocument.id">
      <path value="Bundle.entry.id" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:pdfDocument.link">
      <path value="Bundle.entry.link" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:pdfDocument.fullUrl">
      <path value="Bundle.entry.fullUrl" />
      <short value="UUID of the resource" />
      <definition value="This is a UUID to identify the element inside the Bundle.&#xD;&#xA;It SHALL start with urn:uuid: and then an UUID version 4 randomly generated. Its scope is only the Bundle, it is not linked outside from it and not saved." />
      <min value="1" />
      <condition value="val-uuid" />
      <constraint>
        <key value="val-uuid" />
        <severity value="error" />
        <human value="SHALL be a v4 UUID prefixed by urn:uuid:" />
        <expression value="startsWith('urn:uuid:') and length()=45" />
        <source value="https://www.esante.lu/fhir-spec/StructureDefinition/EPLabPrescriptionBundle" />
      </constraint>
    </element>
    <element id="Bundle.entry:pdfDocument.resource">
      <path value="Bundle.entry.resource" />
      <short value="The PDF document" />
      <min value="1" />
      <type>
        <code value="DocumentReference" />
        <profile value="https://www.esante.lu/fhir-spec/StructureDefinition/EPLabDocumentRef" />
      </type>
    </element>
    <element id="Bundle.entry:pdfDocument.search">
      <path value="Bundle.entry.search" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:pdfDocument.request">
      <path value="Bundle.entry.request" />
      <min value="1" />
    </element>
    <element id="Bundle.entry:pdfDocument.request.id">
      <path value="Bundle.entry.request.id" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:pdfDocument.request.method">
      <path value="Bundle.entry.request.method" />
      <definition value="Constant" />
      <fixedCode value="POST" />
    </element>
    <element id="Bundle.entry:pdfDocument.request.url">
      <path value="Bundle.entry.request.url" />
      <definition value="Constant" />
      <fixedUri value="DocumentReference" />
    </element>
    <element id="Bundle.entry:pdfDocument.request.ifNoneMatch">
      <path value="Bundle.entry.request.ifNoneMatch" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:pdfDocument.request.ifModifiedSince">
      <path value="Bundle.entry.request.ifModifiedSince" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:pdfDocument.request.ifMatch">
      <path value="Bundle.entry.request.ifMatch" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:pdfDocument.request.ifNoneExist">
      <path value="Bundle.entry.request.ifNoneExist" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:pdfDocument.response">
      <path value="Bundle.entry.response" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:copies">
      <path value="Bundle.entry" />
      <sliceName value="copies" />
      <short value="The copy of the result" />
      <definition value="The prescriber by default gets a copy, there is no need to write it here" />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Bundle.entry:copies.id">
      <path value="Bundle.entry.id" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:copies.link">
      <path value="Bundle.entry.link" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:copies.fullUrl">
      <path value="Bundle.entry.fullUrl" />
      <short value="UUID of the resource" />
      <definition value="This is a UUID to identify the element inside the Bundle.&#xD;&#xA;It SHALL start with urn:uuid: and then an UUID version 4 randomly generated. Its scope is only the Bundle, it is not linked outside from it and not saved." />
      <min value="1" />
      <example>
        <label value="Valid example" />
        <valueUri value="urn:uuid:d00069b7-1fc8-4397-bc7c-c9571319d890" />
      </example>
      <condition value="val-uuid" />
      <constraint>
        <key value="val-uuid" />
        <severity value="error" />
        <human value="SHALL be a v4 UUID prefixed by urn:uuid:" />
        <expression value="startsWith('urn:uuid:') and length()=45" />
        <source value="https://www.esante.lu/fhir-spec/StructureDefinition/EPLabPrescriptionBundle" />
      </constraint>
    </element>
    <element id="Bundle.entry:copies.resource">
      <path value="Bundle.entry.resource" />
      <short value="The communication request for copies" />
      <min value="1" />
      <type>
        <code value="CommunicationRequest" />
        <profile value="https://www.esante.lu/fhir-spec/StructureDefinition/EPCommunicationRequest" />
      </type>
    </element>
    <element id="Bundle.entry:copies.search">
      <path value="Bundle.entry.search" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:copies.request">
      <path value="Bundle.entry.request" />
      <min value="1" />
    </element>
    <element id="Bundle.entry:copies.request.id">
      <path value="Bundle.entry.request.id" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:copies.request.method">
      <path value="Bundle.entry.request.method" />
      <definition value="Constant" />
      <fixedCode value="POST" />
    </element>
    <element id="Bundle.entry:copies.request.url">
      <path value="Bundle.entry.request.url" />
      <fixedUri value="CommunicationRequest" />
    </element>
    <element id="Bundle.entry:copies.request.ifNoneMatch">
      <path value="Bundle.entry.request.ifNoneMatch" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:copies.request.ifModifiedSince">
      <path value="Bundle.entry.request.ifModifiedSince" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:copies.request.ifMatch">
      <path value="Bundle.entry.request.ifMatch" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:copies.request.ifNoneExist">
      <path value="Bundle.entry.request.ifNoneExist" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:copies.response">
      <path value="Bundle.entry.response" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:unknownPract">
      <path value="Bundle.entry" />
      <sliceName value="unknownPract" />
      <short value="A prescripber not known by its eHealthID and in copy of results" />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:unknownPract.id">
      <path value="Bundle.entry.id" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:unknownPract.link">
      <path value="Bundle.entry.link" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:unknownPract.fullUrl">
      <path value="Bundle.entry.fullUrl" />
      <short value="UUID of the resource" />
      <definition value="This is a UUID to identify the element inside the Bundle.&#xD;&#xA;It SHALL start with urn:uuid: and then an UUID version 4 randomly generated. Its scope is only the Bundle, it is not linked outside from it and not saved." />
      <min value="1" />
      <example>
        <label value="Valid example" />
        <valueUri value="urn:uuid:d00069b7-1fc8-4397-bc7c-c9571319d890" />
      </example>
      <condition value="val-uuid" />
      <constraint>
        <key value="val-uuid" />
        <severity value="error" />
        <human value="SHALL be a v4 UUID prefixed by urn:uuid:" />
        <expression value="startsWith('urn:uuid:') and length()=45" />
        <source value="https://www.esante.lu/fhir-spec/StructureDefinition/EPLabPrescriptionBundle" />
      </constraint>
    </element>
    <element id="Bundle.entry:unknownPract.resource">
      <path value="Bundle.entry.resource" />
      <short value="The practitioner" />
      <min value="1" />
      <type>
        <code value="Practitioner" />
        <profile value="https://www.esante.lu/fhir-spec/StructureDefinition/EPPractitionerUnk" />
      </type>
    </element>
    <element id="Bundle.entry:unknownPract.search">
      <path value="Bundle.entry.search" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:unknownPract.request">
      <path value="Bundle.entry.request" />
      <min value="1" />
    </element>
    <element id="Bundle.entry:unknownPract.request.id">
      <path value="Bundle.entry.request.id" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:unknownPract.request.method">
      <path value="Bundle.entry.request.method" />
      <definition value="Constant" />
      <fixedCode value="POST" />
    </element>
    <element id="Bundle.entry:unknownPract.request.url">
      <path value="Bundle.entry.request.url" />
      <fixedUri value="Practitioner" />
    </element>
    <element id="Bundle.entry:unknownPract.request.ifNoneMatch">
      <path value="Bundle.entry.request.ifNoneMatch" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:unknownPract.request.ifModifiedSince">
      <path value="Bundle.entry.request.ifModifiedSince" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:unknownPract.request.ifMatch">
      <path value="Bundle.entry.request.ifMatch" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:unknownPract.request.ifNoneExist">
      <path value="Bundle.entry.request.ifNoneExist" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:unknownPract.response">
      <path value="Bundle.entry.response" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:patient">
      <path value="Bundle.entry" />
      <sliceName value="patient" />
      <short value="The patient" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Bundle.entry:patient.id">
      <path value="Bundle.entry.id" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:patient.link">
      <path value="Bundle.entry.link" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:patient.fullUrl">
      <path value="Bundle.entry.fullUrl" />
      <short value="UUID of the resource" />
      <definition value="This is a UUID to identify the element inside the Bundle.&#xD;&#xA;It SHALL start with urn:uuid: and then an UUID version 4 randomly generated. Its scope is only the Bundle, it is not linked outside from it and not saved." />
      <min value="1" />
      <example>
        <label value="Valid example" />
        <valueUri value="urn:uuid:d00069b7-1fc8-4397-bc7c-c9571319d890" />
      </example>
      <condition value="val-uuid" />
      <constraint>
        <key value="val-uuid" />
        <severity value="error" />
        <human value="SHALL be a v4 UUID prefixed by urn:uuid:" />
        <expression value="startsWith('urn:uuid:') and length()=45" />
        <source value="https://www.esante.lu/fhir-spec/StructureDefinition/EPLabPrescriptionBundle" />
      </constraint>
    </element>
    <element id="Bundle.entry:patient.resource">
      <path value="Bundle.entry.resource" />
      <short value="The patient" />
      <min value="1" />
      <type>
        <code value="Patient" />
        <profile value="https://www.esante.lu/fhir-spec/StructureDefinition/EPPatient" />
      </type>
    </element>
    <element id="Bundle.entry:patient.search">
      <path value="Bundle.entry.search" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:patient.request">
      <path value="Bundle.entry.request" />
      <min value="1" />
    </element>
    <element id="Bundle.entry:patient.request.id">
      <path value="Bundle.entry.request.id" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:patient.request.method">
      <path value="Bundle.entry.request.method" />
      <definition value="Constant" />
      <fixedCode value="POST" />
    </element>
    <element id="Bundle.entry:patient.request.url">
      <path value="Bundle.entry.request.url" />
      <short value="Constant" />
      <fixedUri value="Patient" />
    </element>
    <element id="Bundle.entry:patient.request.ifNoneMatch">
      <path value="Bundle.entry.request.ifNoneMatch" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:patient.request.ifModifiedSince">
      <path value="Bundle.entry.request.ifModifiedSince" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:patient.request.ifMatch">
      <path value="Bundle.entry.request.ifMatch" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:patient.request.ifNoneExist">
      <path value="Bundle.entry.request.ifNoneExist" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:patient.response">
      <path value="Bundle.entry.response" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:consent">
      <path value="Bundle.entry" />
      <sliceName value="consent" />
      <short value="The consent" />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Bundle.entry:consent.id">
      <path value="Bundle.entry.id" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:consent.link">
      <path value="Bundle.entry.link" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:consent.fullUrl">
      <path value="Bundle.entry.fullUrl" />
      <short value="UUID of the resource" />
      <definition value="This is a UUID to identify the element inside the Bundle.&#xD;&#xA;It SHALL start with urn:uuid: and then an UUID version 4 randomly generated. Its scope is only the Bundle, it is not linked outside from it and not saved." />
      <min value="1" />
      <example>
        <label value="Valid example" />
        <valueUri value="urn:uuid:d00069b7-1fc8-4397-bc7c-c9571319d890" />
      </example>
      <condition value="val-uuid" />
      <constraint>
        <key value="val-uuid" />
        <severity value="error" />
        <human value="SHALL be a v4 UUID prefixed by urn:uuid:" />
        <expression value="startsWith('urn:uuid:') and length()=45" />
        <source value="https://www.esante.lu/fhir-spec/StructureDefinition/EPLabPrescriptionBundle" />
      </constraint>
    </element>
    <element id="Bundle.entry:consent.resource">
      <path value="Bundle.entry.resource" />
      <short value="The consent" />
      <min value="1" />
      <type>
        <code value="Consent" />
        <profile value="https://www.esante.lu/fhir-spec/StructureDefinition/SendLabResultSubContConsent" />
      </type>
    </element>
    <element id="Bundle.entry:consent.search">
      <path value="Bundle.entry.search" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:consent.request">
      <path value="Bundle.entry.request" />
      <min value="1" />
    </element>
    <element id="Bundle.entry:consent.request.id">
      <path value="Bundle.entry.request.id" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:consent.request.method">
      <path value="Bundle.entry.request.method" />
      <definition value="Constant" />
      <fixedCode value="POST" />
    </element>
    <element id="Bundle.entry:consent.request.url">
      <path value="Bundle.entry.request.url" />
      <short value="Constant" />
      <fixedUri value="Consent" />
    </element>
    <element id="Bundle.entry:consent.request.ifNoneMatch">
      <path value="Bundle.entry.request.ifNoneMatch" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:consent.request.ifModifiedSince">
      <path value="Bundle.entry.request.ifModifiedSince" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:consent.request.ifMatch">
      <path value="Bundle.entry.request.ifMatch" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:consent.request.ifNoneExist">
      <path value="Bundle.entry.request.ifNoneExist" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:consent.response">
      <path value="Bundle.entry.response" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:practitioner">
      <path value="Bundle.entry" />
      <sliceName value="practitioner" />
      <short value="The author" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Bundle.entry:practitioner.id">
      <path value="Bundle.entry.id" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:practitioner.link">
      <path value="Bundle.entry.link" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:practitioner.fullUrl">
      <path value="Bundle.entry.fullUrl" />
      <short value="UUID of the resource" />
      <definition value="This is a UUID to identify the element inside the Bundle.&#xD;&#xA;It SHALL start with urn:uuid: and then an UUID version 4 randomly generated. Its scope is only the Bundle, it is not linked outside from it and not saved." />
      <min value="1" />
      <example>
        <label value="Valid example" />
        <valueUri value="urn:uuid:d00069b7-1fc8-4397-bc7c-c9571319d890" />
      </example>
      <condition value="val-uuid" />
      <constraint>
        <key value="val-uuid" />
        <severity value="error" />
        <human value="SHALL be a v4 UUID prefixed by urn:uuid:" />
        <expression value="startsWith('urn:uuid:') and length()=45" />
        <source value="https://www.esante.lu/fhir-spec/StructureDefinition/EPLabPrescriptionBundle" />
      </constraint>
    </element>
    <element id="Bundle.entry:practitioner.resource">
      <path value="Bundle.entry.resource" />
      <short value="The author" />
      <min value="1" />
      <type>
        <code value="Practitioner" />
        <profile value="https://www.esante.lu/fhir-spec/StructureDefinition/EPPractitioner" />
      </type>
    </element>
    <element id="Bundle.entry:practitioner.search">
      <path value="Bundle.entry.search" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:practitioner.request">
      <path value="Bundle.entry.request" />
      <min value="1" />
    </element>
    <element id="Bundle.entry:practitioner.request.id">
      <path value="Bundle.entry.request.id" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:practitioner.request.method">
      <path value="Bundle.entry.request.method" />
      <definition value="Constant" />
      <fixedCode value="POST" />
    </element>
    <element id="Bundle.entry:practitioner.request.url">
      <path value="Bundle.entry.request.url" />
      <short value="Constant" />
      <fixedUri value="Practitioner" />
    </element>
    <element id="Bundle.entry:practitioner.request.ifNoneMatch">
      <path value="Bundle.entry.request.ifNoneMatch" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:practitioner.request.ifModifiedSince">
      <path value="Bundle.entry.request.ifModifiedSince" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:practitioner.request.ifMatch">
      <path value="Bundle.entry.request.ifMatch" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:practitioner.request.ifNoneExist">
      <path value="Bundle.entry.request.ifNoneExist" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:practitioner.response">
      <path value="Bundle.entry.response" />
      <max value="0" />
    </element>
    <element id="Bundle.signature">
      <path value="Bundle.signature" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>