{
    "resourceType": "Bundle",
    "id": "1.2.840.1.113883.3.564.8096328554195978031.10.1673253019762.912",
    "meta": {
        "lastUpdated": "2023-01-09T16:30:19.762+08:00"
    },
    "type": "searchset",
    "total": 1,
    "link": [
        {
            "relation": "self",
            "url": "https://apsandbox.fhirapi.athenahealth.com/demoAPIServer/fhir/r4/DocumentReference?_id=Example2&includeContent=true"
        }
    ],
    "entry": [
        {
            "fullUrl": "https://apsandbox.fhirapi.athenahealth.com/demoAPIServer/fhir/r4/DocumentReference/Example2",
            "resource": {
                "resourceType": "DocumentReference",
                "id": "Example2",
                "meta": {
                    "lastUpdated": "2001-10-26T15:26:31.000+08:00",
                    "profile": [
                        "http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference",
                        "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-documentref-profile"
                    ],
                    "security": [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality",
                            "code": "N",
                            "display": "Normal"
                        }
                    ],
                    "tag": [
                        {
                            "system": "https://docs.mydata.athenahealth.com/fhir-r4/codesystem/athenaFlex/EditTags",
                            "code": "New",
                            "display": "New"
                        },
                        {
                            "system": "https://docs.mydata.athenahealth.com/fhir-r4/codesystem/athenaFlex/EditTags",
                            "code": "Pen",
                            "display": "Pen"
                        },
                        {
                            "system": "https://docs.mydata.athenahealth.com/fhir-r4/codesystem/athenaFlex/EditTags",
                            "code": "NewPen",
                            "display": "New Pen"
                        }
                    ]
                },
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table width=\"100%\"><caption><a href=\"Patient/1266220111061990\">Patient/1266220111061990</a></caption><tbody><tr><td width=\"25%\"><span class=\"text-muted\">Clinical Notes (clinical-note US-CORE-DOCUMENTREFERENCE-CATEGORY)</span></td><td width=\"8%\"><span class=\"text-muted\">2001/10/23</span></td><td width=\"25%\"> -- <a href=\"Practitioner/-3\">Practitioner/-3</a>, <a href=\"Practitioner/1187261235000800\">Practitioner/1187261235000800</a>, <a href=\"Practitioner/1187277210000740\">Practitioner/1187277210000740</a><span> 2001/10/26</span></td></tr></tbody></table></div>"
                },
                "extension": [
                    {
                        "url": "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-documentref-extension-pubtime",
                        "valueDateTime": "2001-10-25T09:18:12+08:00"
                    }
                ],
                "masterIdentifier": {
                    "type": {
                        "coding": [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                                "code": "U",
                                "display": "Unspecified Identifier"
                            }
                        ],
                        "text": "Unspecified Identifier"
                    },
                    "system": "https://docs.mydata.athenahealth.com/fhir-r4/athenaFlex/namingsystem/DocumentReferenceId/BLRT-345",
                    "value": "DOC-Example2"
                },
                "identifier": [
                    {
                        "type": {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                                    "code": "U",
                                    "display": "Unspecified Identifier"
                                }
                            ],
                            "text": "Unspecified Identifier"
                        },
                        "system": "https://docs.mydata.athenahealth.com/fhir-r4/athenaFlex/namingsystem/DocumentReferenceId/BLRT-345",
                        "value": "DOC-Example2"
                    }
                ],
                "status": "current",
                "_status": {
                    "extension": [
                        {
                            "url": "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-originalCode",
                            "valueCoding": {
                                "system": "https://docs.mydata.athenahealth.com/fhir-r4/athenaFlex/codesystem/documentreferencestatus",
                                "code": "C",
                                "display": "Current"
                            }
                        }
                    ]
                },
                "docStatus": "final",
                "_docStatus": {
                    "extension": [
                        {
                            "url": "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-originalCode",
                            "valueCoding": {
                                "system": "https://docs.mydata.athenahealth.com/fhir-r4/athenaFlex/codesystem/docstatus",
                                "code": "S",
                                "display": "signed"
                            }
                        }
                    ]
                },
                "type": {
                    "extension": [
                        {
                            "url": "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-originalCode",
                            "valueCoding": {
                                "system": "https://docs.mydata.athenahealth.com/fhir-r4/athenaFlex/codesystem/documenttype",
                                "code": "20",
                                "display": "External Other"
                            }
                        }
                    ],
                    "coding": [
                        {
                            "system": "http://loinc.org",
                            "code": "34765-8",
                            "display": "General medicine Note"
                        }
                    ],
                    "text": "General medicine Note"
                },
                "category": [
                    {
                        "coding": [
                            {
                                "system": "http://hl7.org/fhir/us/core/CodeSystem/us-core-documentreference-category",
                                "code": "clinical-note",
                                "display": "Clinical Notes"
                            },
                            {
                                "system": "http://loinc.org",
                                "code": "34765-8",
                                "display": "General medicine Note"
                            }
                        ],
                        "text": "Clinical Notes"
                    }
                ],
                "subject": {
                    "reference": "Patient/Example1"
                },
                "date": "2001-10-23T14:23:01.000+08:00",
                "author": [
                    {
                        "reference": "Practitioner/Example1"
                    },
                    {
                        "reference": "Practitioner/Example1"
                    },
                    {
                        "reference": "Practitioner/Example1"
                    }
                ],
                "authenticator": {
                    "reference": "Practitioner/Example1"
                },
                "custodian": {
                    "reference": "Organization/Example1"
                },
                "description": "CNQMK VL",
                "content": [
                    {
                        "attachment": {
                            "contentType": "text/rtf",
                            "language": "en",
                            "url": "Binary/DOC-Example4"
                        },
                        "format": {
                            "system": "urn:oid:1.3.6.1.4.1.19376.1.2.3",
                            "code": "urn:ihe:iti:xds:2017:mimeTypeSufficient",
                            "display": "MimeType Sufficient"
                        }
                    },
                    {
                        "attachment": {
                            "language": "en",
                            "url": "Binary/EXT-Example5"
                        },
                        "format": {
                            "system": "http://ihe.net/fhir/ValueSet/IHE.FormatCode.codesystem",
                            "code": "urn:ihe:iti:notSpecialized",
                            "display": "No specific FormatCode is known, follow mimetype alone"
                        }
                    }
                ],
                "context": {
                    "encounter": [
                        {
                            "reference": "Encounter/Example2"
                        }
                    ],
                    "period": {
                        "start": "2001-10-23T00:00:00+08:00",
                        "end": "2001-10-23T00:00:00+08:00"
                    },
                    "sourcePatientInfo": {
                        "reference": "Patient/Example1"
                    }
                }
            },
            "search": {
                "mode": "match"
            }
        },
        {
            "fullUrl": "https://apsandbox.fhirapi.athenahealth.com/demoAPIServer/fhir/r4/Binary/EXT-Example5",
            "resource": {
                "resourceType": "Binary",
                "id": "Example5",
                "meta": {
                    "profile": [
                        "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-binary-profile"
                    ]
                },
                "contentType": "text/plain",
                "data": "aHR0cDovLzE5Mi4xMC4xMC40L2RvY3VtZW50cy9kb2N1bWVudHMvMjAwMVwxMFxNXE9cTU9VU0VfTUlOTklFX18yMDAwLTAxLTAxXzIwMDEtMTAtMjNfMWQxLnBkZg=="
            },
            "search": {
                "mode": "include"
            }
        },
        {
            "fullUrl": "https://apsandbox.fhirapi.athenahealth.com/demoAPIServer/fhir/r4/Binary/DOC-Example4",
            "resource": {
                "resourceType": "Binary",
                "id": "DOC-Example4",
                "meta": {
                    "profile": [
                        "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-binary-profile"
                    ]
                },
                "contentType": "text/rtf",
                "data": "UGF0aWVudDogSmVmZiAgQWJiZXkNCklEOiBMYWJRdWVzdCA0OA0KTm90ZTogQWxsIHJlc3VsdCBzdGF0dXNlcyBhcmUgRmluYWwgdW5sZXNzIG90aGVyd2lzZSBub3RlZC4NCg0KVGVzdHM6ICgxKSBMaXBpZHMgKE1MLTExTElQSUQpDQoNClRlc3RzOiAoMikgTGlwaWRzIChNTC0xMUxJUElEKQ0KICBDSE9MRVNURVJPTCAgICAgICAgICBbTF0gIDE1MCBtZy9kbCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICoxDQogIEhETCAgICAgICAgICAgICAgICAgICAgICAgNjAgbWcvZGwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKjINCiAgVFJJR0xZQ0VSSURFICAgICAgICAgICAgICAxMDAgbWcvZEwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqMw0KDQpOb3RlOiBBbiBleGNsYW1hdGlvbiBtYXJrICghKSBpbmRpY2F0ZXMgYSByZXN1bH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NCkZpbGxlciBPcmRlciBOdW1iZXI6IA0KTGFiIHNpdGU6IHRlc3RsYWIyMg0KUHJvZHVjZXIgSUQgKjE6MjINClByb2R1Y2VyIElEICoyOjIyDQpQcm9kdWNlciBJRCAqMzoyMg0K"
            },
            "search": {
                "mode": "include"
            }
        }
    ]
}