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