Non-patient File Sharing (NPFS)
2.2.0 - Trial-Implementation International flag

This page is part of the Non-patient File Sharing (NPFS) (v2.2.0: Publication) based on FHIR R4. This is the current published version. For a full list of available versions, see the Directory of published versions

: Replace Document Bundle - JSON Representation

Raw json | Download


{
  "resourceType" : "Bundle",
  "id" : "ex-ReplaceDocumentBundle",
  "meta" : {
    "profile" : [
      🔗 "https://profiles.ihe.net/ITI/NPFS/StructureDefinition/IHE.NPFS.ReplaceDocumentBundle"
    ]
  },
  "type" : "transaction",
  "entry" : [
    {
      "fullUrl" : "urn:uuid:cccccccc-4444-0000-0000-000000000004",
      "resource" : {
        "resourceType" : "DocumentReference",
        "id" : "cccccccc-4444-0000-0000-000000000004",
        "meta" : {
          "profile" : [
            🔗 "https://profiles.ihe.net/ITI/NPFS/StructureDefinition/IHE.NPFS.DocumentReference"
          ],
          "security" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/v3-ActReason",
              "code" : "HTEST"
            }
          ]
        },
        "text" : {
          "status" : "generated",
          "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: DocumentReference</b><a name=\"cccccccc-4444-0000-0000-000000000004\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource DocumentReference &quot;cccccccc-4444-0000-0000-000000000004&quot; </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-IHE.NPFS.DocumentReference.html\">NPFS DocumentReference</a></p><p style=\"margin-bottom: 0px\">Security Labels: <span title=\"{http://terminology.hl7.org/CodeSystem/v3-ActReason http://terminology.hl7.org/CodeSystem/v3-ActReason}\">http://terminology.hl7.org/CodeSystem/v3-ActReason</span></p></div><p><b>masterIdentifier</b>: id:\u00a0&lt;a href=&quot;http://terminology.hl7.org/5.0.0/NamingSystem-uri.html&quot;&gt;URI&lt;/a&gt;#urn:oid:1.2.840.113556.1.8000.2554.53432.348.12973.17740.34205.4355.50220.62012</p><p><b>identifier</b>: id:\u00a0&lt;a href=&quot;http://terminology.hl7.org/5.0.0/NamingSystem-uri.html&quot;&gt;URI&lt;/a&gt;#urn:uuid:0c287d32-01e3-4d87-9953-9fcc9404eb23\u00a0(use:\u00a0OFFICIAL)</p><p><b>status</b>: current</p><p><b>type</b>: eReferral workflow <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (unknown#1.3.6.1.4.1.19376.1.5.3.1.5.1)</span></p><p><b>category</b>: Code for Workflow Definitions <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"CodeSystem-NPFSclasscode.html\">NPFS classcode</a>#WORKFLOW_DEFINITION)</span></p><p><b>date</b>: Apr 4, 2023, 11:00:00 AM</p><p><b>author</b>: <a href=\"Patient-ex-patient.html\">Patient/ex-patient</a> &quot; SCHMIDT&quot;</p><p><b>authenticator</b>: <a href=\"Practitioner-ex-practitioner.html\">Practitioner/ex-practitioner</a></p><h3>RelatesTos</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Code</b></td><td><b>Target</b></td></tr><tr><td style=\"display: none\">*</td><td>replaces</td><td><a href=\"DocumentReference-ex-DocumentReferenceMinimal.html\">DocumentReference/ex-DocumentReferenceMinimal</a></td></tr></table><p><b>description</b>: Example of a New DocumentReference resource for Replace. This is fully filled for all mandatory elements and all optional elements.</p><p><b>securityLabel</b>: low <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/5.0.0/CodeSystem-v3-Confidentiality.html\">Confidentiality</a>#L)</span></p><blockquote><p><b>content</b></p><h3>Attachments</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ContentType</b></td><td><b>Language</b></td><td><b>Url</b></td><td><b>Size</b></td><td><b>Hash</b></td><td><b>Title</b></td><td><b>Creation</b></td></tr><tr><td style=\"display: none\">*</td><td>text/plain</td><td>en-US</td><td><a href=\"http://example.com/nowhere.txt\">http://example.com/nowhere.txt</a></td><td>0</td><td>(base64 data - 40 bytes)</td><td>DocumentReference for Comprehensive minimally filled metadata</td><td>2023-04-04 11:00:00-0500</td></tr></table><p><b>format</b>: PDF (Details: urn:oid:2.16.840.1.113883.2.9.3.3.6.1.6 code PDF = 'PDF', stated as 'null')</p></blockquote><h3>Contexts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Event</b></td><td><b>Period</b></td></tr><tr><td style=\"display: none\">*</td><td>account receivable <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/5.3.0/CodeSystem-v3-ActCode.html\">ActCode</a>#ACCTRECEIVABLE)</span></td><td>2020-12-31 23:50:50-0500 --&gt; 2020-12-31 23:50:50-0500</td></tr></table></div>"
        },
        "masterIdentifier" : {
          "system" : "urn:ietf:rfc:3986",
          "value" : "urn:oid:1.2.840.113556.1.8000.2554.53432.348.12973.17740.34205.4355.50220.62012"
        },
        "identifier" : [
          {
            "use" : "official",
            "system" : "urn:ietf:rfc:3986",
            "value" : "urn:uuid:0c287d32-01e3-4d87-9953-9fcc9404eb23"
          }
        ],
        "status" : "current",
        "type" : {
          "coding" : [
            {
              "system" : "urn:oid:1.3.6.1.4.1.19376.1.5.3.1.5",
              "code" : "1.3.6.1.4.1.19376.1.5.3.1.5.1",
              "display" : "eReferral workflow"
            }
          ]
        },
        "category" : [
          {
            "coding" : [
              {
                "system" : "https://profiles.ihe.net/ITI/NPFS/CodeSystem/NPFSclasscode",
                "code" : "WORKFLOW_DEFINITION"
              }
            ]
          }
        ],
        "date" : "2023-04-04T11:00:00-05:00",
        "author" : [
          {
            🔗 "reference" : "Patient/ex-patient"
          }
        ],
        "authenticator" : {
          🔗 "reference" : "Practitioner/ex-practitioner"
        },
        "relatesTo" : [
          {
            "code" : "replaces",
            "target" : {
              🔗 "reference" : "DocumentReference/ex-DocumentReferenceMinimal"
            }
          }
        ],
        "description" : "Example of a New DocumentReference resource for Replace. This is fully filled for all mandatory elements and all optional elements.",
        "securityLabel" : [
          {
            "coding" : [
              {
                "system" : "http://terminology.hl7.org/CodeSystem/v3-Confidentiality",
                "code" : "L"
              }
            ]
          }
        ],
        "content" : [
          {
            "attachment" : {
              "contentType" : "text/plain",
              "language" : "en-US",
              "url" : "http://example.com/nowhere.txt",
              "size" : 0,
              "hash" : "ZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ==",
              "title" : "DocumentReference for Comprehensive minimally filled metadata",
              "creation" : "2023-04-04T11:00:00-05:00"
            },
            "format" : {
              "system" : "urn:oid:2.16.840.1.113883.2.9.3.3.6.1.6",
              "code" : "PDF"
            }
          }
        ],
        "context" : {
          "event" : [
            {
              "coding" : [
                {
                  "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
                  "code" : "ACCTRECEIVABLE"
                }
              ]
            }
          ],
          "period" : {
            "start" : "2020-12-31T23:50:50-05:00",
            "end" : "2020-12-31T23:50:50-05:00"
          }
        }
      },
      "request" : {
        "method" : "POST",
        "url" : "DocumentReference"
      }
    },
    {
      "fullUrl" : "urn:uuid:cccccccc-4444-0000-0000-000000000003",
      "resource" : {
        "resourceType" : "DocumentReference",
        "id" : "cccccccc-4444-0000-0000-000000000003",
        "meta" : {
          "profile" : [
            🔗 "https://profiles.ihe.net/ITI/NPFS/StructureDefinition/IHE.NPFS.DocumentReference"
          ],
          "security" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/v3-ActReason",
              "code" : "HTEST"
            }
          ]
        },
        "text" : {
          "status" : "generated",
          "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: DocumentReference</b><a name=\"cccccccc-4444-0000-0000-000000000003\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource DocumentReference &quot;cccccccc-4444-0000-0000-000000000003&quot; </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-IHE.NPFS.DocumentReference.html\">NPFS DocumentReference</a></p><p style=\"margin-bottom: 0px\">Security Labels: <span title=\"{http://terminology.hl7.org/CodeSystem/v3-ActReason http://terminology.hl7.org/CodeSystem/v3-ActReason}\">http://terminology.hl7.org/CodeSystem/v3-ActReason</span></p></div><p><b>masterIdentifier</b>: id:\u00a0&lt;a href=&quot;http://terminology.hl7.org/5.0.0/NamingSystem-uri.html&quot;&gt;URI&lt;/a&gt;#urn:oid:1.2.840.113556.1.8000.2554.53432.348.12973.17740.34205.4355.50220.62012</p><p><b>identifier</b>: id:\u00a0&lt;a href=&quot;http://terminology.hl7.org/5.0.0/NamingSystem-uri.html&quot;&gt;URI&lt;/a&gt;#urn:uuid:0c287d32-01e3-4d87-9953-9fcc9404eb22\u00a0(use:\u00a0OFFICIAL)</p><p><b>status</b>: superseded</p><p><b>type</b>: eReferral workflow <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (unknown#1.3.6.1.4.1.19376.1.5.3.1.5.1)</span></p><p><b>category</b>: Code for Workflow Definitions <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"CodeSystem-NPFSclasscode.html\">NPFS classcode</a>#WORKFLOW_DEFINITION)</span></p><p><b>date</b>: Apr 4, 2023, 11:00:00 AM</p><p><b>author</b>: <a href=\"Patient-ex-patient.html\">Patient/ex-patient</a> &quot; SCHMIDT&quot;</p><p><b>authenticator</b>: <a href=\"Practitioner-ex-practitioner.html\">Practitioner/ex-practitioner</a></p><h3>RelatesTos</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Code</b></td><td><b>Target</b></td></tr><tr><td style=\"display: none\">*</td><td>appends</td><td><a href=\"DocumentReference-ex-DocumentReferenceMinimal.html\">DocumentReference/ex-DocumentReferenceMinimal</a></td></tr></table><p><b>description</b>: Example of a Old DocumentReference resource for Replace. This is fully filled for all mandatory elements and all optional elements.</p><p><b>securityLabel</b>: low <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/5.0.0/CodeSystem-v3-Confidentiality.html\">Confidentiality</a>#L)</span></p><blockquote><p><b>content</b></p><h3>Attachments</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ContentType</b></td><td><b>Language</b></td><td><b>Url</b></td><td><b>Size</b></td><td><b>Hash</b></td><td><b>Title</b></td><td><b>Creation</b></td></tr><tr><td style=\"display: none\">*</td><td>text/plain</td><td>en-US</td><td><a href=\"http://example.com/nowhere.txt\">http://example.com/nowhere.txt</a></td><td>0</td><td>(base64 data - 40 bytes)</td><td>DocumentReference for Comprehensive minimally filled metadata</td><td>2023-04-04 11:00:00-0500</td></tr></table><p><b>format</b>: PDF (Details: urn:oid:2.16.840.1.113883.2.9.3.3.6.1.6 code PDF = 'PDF', stated as 'null')</p></blockquote><h3>Contexts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Event</b></td><td><b>Period</b></td></tr><tr><td style=\"display: none\">*</td><td>account receivable <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/5.3.0/CodeSystem-v3-ActCode.html\">ActCode</a>#ACCTRECEIVABLE)</span></td><td>2020-12-31 23:50:50-0500 --&gt; 2020-12-31 23:50:50-0500</td></tr></table></div>"
        },
        "masterIdentifier" : {
          "system" : "urn:ietf:rfc:3986",
          "value" : "urn:oid:1.2.840.113556.1.8000.2554.53432.348.12973.17740.34205.4355.50220.62012"
        },
        "identifier" : [
          {
            "use" : "official",
            "system" : "urn:ietf:rfc:3986",
            "value" : "urn:uuid:0c287d32-01e3-4d87-9953-9fcc9404eb22"
          }
        ],
        "status" : "superseded",
        "type" : {
          "coding" : [
            {
              "system" : "urn:oid:1.3.6.1.4.1.19376.1.5.3.1.5",
              "code" : "1.3.6.1.4.1.19376.1.5.3.1.5.1",
              "display" : "eReferral workflow"
            }
          ]
        },
        "category" : [
          {
            "coding" : [
              {
                "system" : "https://profiles.ihe.net/ITI/NPFS/CodeSystem/NPFSclasscode",
                "code" : "WORKFLOW_DEFINITION"
              }
            ]
          }
        ],
        "date" : "2023-04-04T11:00:00-05:00",
        "author" : [
          {
            🔗 "reference" : "Patient/ex-patient"
          }
        ],
        "authenticator" : {
          🔗 "reference" : "Practitioner/ex-practitioner"
        },
        "relatesTo" : [
          {
            "code" : "appends",
            "target" : {
              🔗 "reference" : "DocumentReference/ex-DocumentReferenceMinimal"
            }
          }
        ],
        "description" : "Example of a Old DocumentReference resource for Replace. This is fully filled for all mandatory elements and all optional elements.",
        "securityLabel" : [
          {
            "coding" : [
              {
                "system" : "http://terminology.hl7.org/CodeSystem/v3-Confidentiality",
                "code" : "L"
              }
            ]
          }
        ],
        "content" : [
          {
            "attachment" : {
              "contentType" : "text/plain",
              "language" : "en-US",
              "url" : "http://example.com/nowhere.txt",
              "size" : 0,
              "hash" : "ZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ==",
              "title" : "DocumentReference for Comprehensive minimally filled metadata",
              "creation" : "2023-04-04T11:00:00-05:00"
            },
            "format" : {
              "system" : "urn:oid:2.16.840.1.113883.2.9.3.3.6.1.6",
              "code" : "PDF"
            }
          }
        ],
        "context" : {
          "event" : [
            {
              "coding" : [
                {
                  "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
                  "code" : "ACCTRECEIVABLE"
                }
              ]
            }
          ],
          "period" : {
            "start" : "2020-12-31T23:50:50-05:00",
            "end" : "2020-12-31T23:50:50-05:00"
          }
        }
      },
      "request" : {
        "method" : "PUT",
        "url" : "DocumentReference"
      }
    },
    {
      "fullUrl" : "urn:uuid:cccccccc-4444-0000-0000-000000000002",
      "resource" : {
        "resourceType" : "Binary",
        "id" : "cccccccc-4444-0000-0000-000000000002",
        "meta" : {
          "security" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/v3-ActReason",
              "code" : "HTEST"
            }
          ]
        },
        "contentType" : "text/plain",
        "data" : "SGVsbG8gV29ybGQ="
      },
      "request" : {
        "method" : "POST",
        "url" : "Binary"
      }
    }
  ]
}