---
title: "Entity: Attachment"
canonical: "https://wiki.patientsknowbest.com/space/api/3750363137/Entity%3A%20Attachment"
format: markdown
---
> Macro (toc)

# Mappings

|  |  |  |  |  |
| --- | --- | --- | --- | --- |
| ** ** | **HL7 API** | **FHIR API**<br>(Customer boxes support full CRUD) | **Web** | **Custom REST API** |
|  |  | **Facade (STU3)** | **Aggregated (R4)** |  |  |
| **Summary of interactions** |
| Create | [T02/document](https://dev.patientsknowbest.com/home/hl7-api/messages/mdm-t02/document)  
[R01/radiology](https://dev.patientsknowbest.com/home/hl7-api/messages/oru-r01/radiology) |  |  |  |  |
| Read |  |  |  | Various, depending on data type | [/attachments/[id]](https://sandbox.patientsknowbest.com/api/index.html#!/Attachments/getAttachment) |
| Update | [T02/document](https://dev.patientsknowbest.com/home/hl7-api/messages/mdm-t02/document)  
[R01/radiology](https://dev.patientsknowbest.com/home/hl7-api/messages/oru-r01/radiology) |  |  | Various, depending on data type |  |
| Delete |  |  |  | Various, depending on data type |  |
| **Attributes** |
| **Public ID** `String`<br>The ID of the attachment. |  |  |  |  |  |
| **Filename** `String`<br>The filename of the attachment. | [OBX-3.2 (ORU R01/radiology)](https://dev.patientsknowbest.com/home/hl7-api/messages/oru-r01/radiology)  
[OBX-3.5 (ORU R01/radiology)](https://dev.patientsknowbest.com/home/hl7-api/messages/oru-r01/radiology)  
[TXA-16.1 (MDM T02/document)](https://dev.patientsknowbest.com/home/hl7-api/messages/mdm-t02/document) |  |  | Various, depending on data type |  |
| **Content** `Binary`<br>The content of the attachment. | [OBX-5.5 (ORU R01/radiology)](https://dev.patientsknowbest.com/home/hl7-api/messages/oru-r01/radiology)  
[OBX-5.5 (MDM T02/document)](https://dev.patientsknowbest.com/home/hl7-api/messages/mdm-t02/document) |  |  | Various, depending on data type | Returned in the download stream |
| **Media Type** `String`<br>The type of media contained in the content. | [OBX-5.3 (ORU R01/radiology)](https://dev.patientsknowbest.com/home/hl7-api/messages/oru-r01/radiology) |  |  |  |  |