<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="d1f32da9-3c7f-4bc8-b9e0-6b0a7c0bc779" />
  <url value="https://health.gov.on.ca/sadie/fhir/StructureDefinition/RequestPDF" />
  <version value="1.0.0" />
  <name value="RequestPDF" />
  <title value="Request PDF" />
  <status value="active" />
  <description value="This is used to the PDF version of the request.   It is referenced by ServiceRequest.supportingInfo." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <mapping>
    <identity value="fhircomposition" />
    <uri value="http://hl7.org/fhir/composition" />
    <name value="FHIR Composition" />
  </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>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="xds" />
    <uri value="http://ihe.net/xds" />
    <name value="XDS metadata equivalent" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="DocumentReference" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DocumentReference" />
  <derivation value="constraint" />
  <differential>
    <element id="DocumentReference">
      <path value="DocumentReference" />
      <comment value="#### **_`FOR SADIE USE:  This is used to store the PDF version of the Request.`_** &#xA;&#xA;&#xA;Usually, this is used for documents other than those defined by FHIR." />
    </element>
    <element id="DocumentReference.masterIdentifier">
      <path value="DocumentReference.masterIdentifier" />
      <max value="0" />
    </element>
    <element id="DocumentReference.identifier">
      <path value="DocumentReference.identifier" />
      <definition value="#### **_`FOR SADIE USE:  This is an identifier the client gives to this request pdf.`_**" />
    </element>
    <element id="DocumentReference.identifier.use">
      <path value="DocumentReference.identifier.use" />
      <max value="0" />
    </element>
    <element id="DocumentReference.identifier.type">
      <path value="DocumentReference.identifier.type" />
      <max value="0" />
    </element>
    <element id="DocumentReference.identifier.type.coding">
      <path value="DocumentReference.identifier.type.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="DocumentReference.identifier.type.coding.code">
      <path value="DocumentReference.identifier.type.coding.code" />
      <min value="1" />
    </element>
    <element id="DocumentReference.identifier.system">
      <path value="DocumentReference.identifier.system" />
      <definition value="#### **_`FOR SADIE USE:  The system element is bound the to the FlexForms-IdentifierSystems Value Set`_**&#xA;&#xA;Establishes the namespace for the value - that is, a URL that describes a set values that are unique." />
      <min value="1" />
      <binding>
        <strength value="required" />
        <valueSet value="http://health.gov.on.ca/sadie/fhir/ValueSet/FlexForms-IdentifierSystems" />
      </binding>
    </element>
    <element id="DocumentReference.identifier.value">
      <path value="DocumentReference.identifier.value" />
      <min value="1" />
    </element>
    <element id="DocumentReference.identifier.period">
      <path value="DocumentReference.identifier.period" />
      <max value="0" />
    </element>
    <element id="DocumentReference.identifier.assigner">
      <path value="DocumentReference.identifier.assigner" />
      <max value="0" />
    </element>
    <element id="DocumentReference.status">
      <path value="DocumentReference.status" />
      <definition value="#### **_`FOR SADIE USE:  This is a FHIR mandatory field , it should always be  'current'.`_**&#xA;&#xA;The status of this document reference." />
      <fixedCode value="current" />
    </element>
    <element id="DocumentReference.docStatus">
      <path value="DocumentReference.docStatus" />
      <max value="0" />
    </element>
    <element id="DocumentReference.type">
      <path value="DocumentReference.type" />
      <definition value="#### **_`FOR SADIE USE:  This has a fixed value of 'RequestPDF'`_**&#xA;&#xA;Specifies the particular kind of document referenced  (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the document referenced." />
      <min value="1" />
    </element>
    <element id="DocumentReference.type.coding.system">
      <path value="DocumentReference.type.coding.system" />
      <min value="1" />
      <fixedString value="https://health.gov.on.ca/sadie/fhir/CodeSystem/FlexForms-Internal-Complete" />
    </element>
    <element id="DocumentReference.type.coding.version">
      <path value="DocumentReference.type.coding.version" />
      <max value="0" />
    </element>
    <element id="DocumentReference.type.coding.code">
      <path value="DocumentReference.type.coding.code" />
      <fixedCode value="RequestPDF" />
      <binding>
        <strength value="required" />
        <valueSet value="http://health.gov.on.ca/sadie/fhir/ValueSet/FlexForms-DocumentReference-Types" />
      </binding>
    </element>
    <element id="DocumentReference.type.coding.display">
      <path value="DocumentReference.type.coding.display" />
      <max value="0" />
    </element>
    <element id="DocumentReference.type.coding.userSelected">
      <path value="DocumentReference.type.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="DocumentReference.type.text">
      <path value="DocumentReference.type.text" />
      <max value="0" />
    </element>
    <element id="DocumentReference.category">
      <path value="DocumentReference.category" />
      <max value="0" />
    </element>
    <element id="DocumentReference.subject">
      <path value="DocumentReference.subject" />
      <max value="0" />
    </element>
    <element id="DocumentReference.date">
      <path value="DocumentReference.date" />
      <max value="0" />
    </element>
    <element id="DocumentReference.author">
      <path value="DocumentReference.author" />
      <definition value="#### **_`FOR SADIE USE:  This is the Requestor Role that owns the related Request. This is used by the security interceptor.`_**" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://health.gov.on.ca/sadie/fhir/StructureDefinition/FlexFormsRole" />
      </type>
    </element>
    <element id="DocumentReference.authenticator">
      <path value="DocumentReference.authenticator" />
      <max value="0" />
    </element>
    <element id="DocumentReference.custodian">
      <path value="DocumentReference.custodian" />
      <max value="0" />
    </element>
    <element id="DocumentReference.relatesTo">
      <path value="DocumentReference.relatesTo" />
      <max value="0" />
    </element>
    <element id="DocumentReference.description">
      <path value="DocumentReference.description" />
      <max value="0" />
    </element>
    <element id="DocumentReference.securityLabel">
      <path value="DocumentReference.securityLabel" />
      <max value="0" />
    </element>
    <element id="DocumentReference.content">
      <path value="DocumentReference.content" />
      <definition value="#### **_`FOR SADIE USE:  This is the PDF'.`_**&#xA;&#xA;The document and format referenced. There may be multiple content element repetitions, each with a different format." />
      <max value="1" />
    </element>
    <element id="DocumentReference.content.attachment">
      <path value="DocumentReference.content.attachment" />
      <definition value="#### **_`FOR SADIE USE:  This is the PDF'.`_**&#xA;&#xA;The document or URL of the document along with critical metadata to prove content has integrity." />
    </element>
    <element id="DocumentReference.content.attachment.contentType">
      <path value="DocumentReference.content.attachment.contentType" />
      <definition value="#### **_`FOR SADIE USE: For PDFs it's application/pdf.`_**&#xA;&#xA;A location where the data can be accessed." />
    </element>
    <element id="DocumentReference.content.attachment.language">
      <path value="DocumentReference.content.attachment.language" />
      <max value="0" />
    </element>
    <element id="DocumentReference.content.attachment.data">
      <path value="DocumentReference.content.attachment.data" />
      <max value="0" />
    </element>
    <element id="DocumentReference.content.attachment.url">
      <path value="DocumentReference.content.attachment.url" />
      <definition value="#### **_`FOR SADIE USE:  This is the URL of the Binary.`_**&#xA;&#xA;A location where the data can be accessed." />
    </element>
    <element id="DocumentReference.content.attachment.size">
      <path value="DocumentReference.content.attachment.size" />
    </element>
    <element id="DocumentReference.content.attachment.creation">
      <path value="DocumentReference.content.attachment.creation" />
      <max value="0" />
    </element>
    <element id="DocumentReference.content.format">
      <path value="DocumentReference.content.format" />
      <max value="0" />
    </element>
    <element id="DocumentReference.context">
      <path value="DocumentReference.context" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>