{
  "resourceType" : "Bundle",
  "id" : "ex-BundleX",
  "meta" : {
    "profile" : ["http://johnmoehrke.github.io/testbundle/StructureDefinition/BundleX"],
    "security" : [{
      "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
      "code" : "DELAU"
    },
    {
      "system" : "http://terminology.hl7.org/CodeSystem/v3-Confidentiality",
      "code" : "R"
    }]
  },
  "type" : "transaction",
  "timestamp" : "2020-11-24T23:50:50-05:00",
  "entry" : [{
    "fullUrl" : "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00000000002",
    "resource" : {
      "resourceType" : "List",
      "id" : "aaaaaaaa-bbbb-cccc-dddd-e00000000002",
      "meta" : {
        "profile" : ["http://johnmoehrke.github.io/testbundle/StructureDefinition/ListX"]
      },
      "text" : {
        "status" : "extensions",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"List_aaaaaaaa-bbbb-cccc-dddd-e00000000002\"> </a>hello world</div>"
      },
      "status" : "current",
      "mode" : "working",
      "subject" : {
        "reference" : "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00000000003"
      },
      "entry" : [{
        "item" : {
          "reference" : "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00000000001"
        }
      },
      {
        "item" : {
          "reference" : "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00000000003"
        }
      }]
    },
    "request" : {
      "method" : "POST",
      "url" : "List"
    }
  },
  {
    "fullUrl" : "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00000000003",
    "resource" : {
      "resourceType" : "Patient",
      "id" : "aaaaaaaa-bbbb-cccc-dddd-e00000000003",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Patient_aaaaaaaa-bbbb-cccc-dddd-e00000000003\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Patient aaaaaaaa-bbbb-cccc-dddd-e00000000003</b></p><a name=\"aaaaaaaa-bbbb-cccc-dddd-e00000000003\"> </a><a name=\"hcaaaaaaaa-bbbb-cccc-dddd-e00000000003\"> </a><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">Dumb Schmidt  (no stated gender), DoB Unknown</p><hr/></div>"
      },
      "name" : [{
        "family" : "Schmidt",
        "given" : ["Dumb"]
      }]
    },
    "request" : {
      "method" : "POST",
      "url" : "Patient"
    }
  },
  {
    "fullUrl" : "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00000000001",
    "resource" : {
      "resourceType" : "DocumentReference",
      "id" : "aaaaaaaa-bbbb-cccc-dddd-e00000000001",
      "meta" : {
        "profile" : ["http://johnmoehrke.github.io/testbundle/StructureDefinition/DocumentReferenceX"],
        "security" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
          "code" : "ETHUD"
        },
        {
          "system" : "http://terminology.hl7.org/CodeSystem/v3-Confidentiality",
          "code" : "R"
        }]
      },
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"DocumentReference_aaaaaaaa-bbbb-cccc-dddd-e00000000001\"> </a><p class=\"res-header-id\"><b>Generated Narrative: DocumentReference aaaaaaaa-bbbb-cccc-dddd-e00000000001</b></p><a name=\"aaaaaaaa-bbbb-cccc-dddd-e00000000001\"> </a><a name=\"hcaaaaaaaa-bbbb-cccc-dddd-e00000000001\"> </a><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\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-DocumentReferenceX.html\">DocumentReference X profile</a></p><p style=\"margin-bottom: 0px\">Security Labels: alcohol use disorder information sensitivity (Details: ActCode code ETHUD = 'alcohol use disorder information sensitivity'), restricted (Details: Confidentiality code R = 'restricted')</p></div><p><b>status</b>: Current</p><p><b>subject</b>: <a href=\"Bundle-ex-Bundle-mixed.html#urn-uuid-aaaaaaaa-bbbb-cccc-dddd-e00000000003\">Dumb Schmidt  (no stated gender), DoB Unknown</a></p><p><b>author</b>: <a href=\"#hcaaaaaaaa-bbbb-cccc-dddd-e00000000001/in-practitioner\">Practitioner: telecom = JohnMoehrke@gmail.com</a></p><p><b>securityLabel</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ActCode ETHUD}\">alcohol use disorder information sensitivity</span>, <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-Confidentiality R}\">restricted</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>Title</b></td></tr><tr><td style=\"display: none\">*</td><td>text/plain</td><td>Hello World</td></tr></table></blockquote><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: Practitioner #in-practitioner</b></p><a name=\"aaaaaaaa-bbbb-cccc-dddd-e00000000001/in-practitioner\"> </a><a name=\"hcaaaaaaaa-bbbb-cccc-dddd-e00000000001/in-practitioner\"> </a><p><b>telecom</b>: <a href=\"mailto:JohnMoehrke@gmail.com\">JohnMoehrke@gmail.com</a></p></blockquote></div>"
      },
      "contained" : [{
        "resourceType" : "Practitioner",
        "id" : "in-practitioner",
        "telecom" : [{
          "system" : "email",
          "value" : "JohnMoehrke@gmail.com"
        }]
      }],
      "status" : "current",
      "subject" : {
        "reference" : "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00000000003"
      },
      "author" : [{
        "reference" : "#in-practitioner"
      }],
      "securityLabel" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
          "code" : "ETHUD"
        }]
      },
      {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/v3-Confidentiality",
          "code" : "R"
        }]
      }],
      "content" : [{
        "attachment" : {
          "contentType" : "text/plain",
          "title" : "Hello World"
        }
      }]
    },
    "request" : {
      "method" : "POST",
      "url" : "DocumentReference"
    }
  }]
}