Patient Attachment

AttachmentPresignedPost

object or null
url
string or null <uri>
{
  • "fields": {
    • "key": "string",
    • "policy": "string",
    • "x-amz-credential": "string",
    • "x-amz-signature": "string",
    • "x-amz-algorithm": "string",
    • "success_action_status": "201",
    • "acl": "private"
    },
}

PatientAttachment

Any of:
object or null
content_type
string or null

mime type

created_at
string <date-time>
description
string or null <= 255 characters
filename
string or null
id
string <int64>
object
object
pinned_at
string or null <date-time>
processed_at
string or null <date-time>
processing_completed
boolean or null
size
integer or null
updated_at
string <date-time>
object
{}

List patient attachments

get/patient_attachments
SecuritybasicAuth
Request
query Parameters
order
string
Deprecated
Enum: "asc" "desc"
page
integer
per_page
integer [ 1 .. 100 ]
q[]
Array of strings

Filter result by one or more fields.

See Filtering Results

Available filters:

Value Format
archived_at date-time
content_type string
created_at date-time
description string
filename string
id int64
patient_id int64
processed_at date-time
size integer
updated_at date-time
user_id int64
sort
Array of strings

Comma separated search fields. See: Ordering

Example: sort=created_at:desc
Responses
200

successful operation

Request samples
Response samples
application/json
{}

Create uploaded patient attachment

post/patient_attachments

To create a patient attachment, you must first generate a presigned URL, upload your file to that URL, and then supply that URL and response key in the upload_url request body parameter.

SecuritybasicAuth
Request
Request Body schema: application/json
description
string or null <= 255 characters
patient_id
string <int64>

patient id

upload_url
string <uri>

Must be a presigned URL returned by the presigned URL upload process

Responses
201

Resource was created

422

Resource could not be saved due to validation errors

Request samples
Response samples
application/json
{}

Get patient attachment

get/patient_attachments/{id}
SecuritybasicAuth
Request
path Parameters
id
required
string <int64>
query Parameters
q[]
Array of strings

Filter result by one or more fields.

See Filtering Results

Available filters:

Value Format
archived_at date-time
Responses
200

Successful operation

Request samples
Response samples
application/json
{}

Archive patient attachmentDeprecated

delete/patient_attachments/{id}
SecuritybasicAuth
Request
path Parameters
id
required
string <int64>
Responses
204

Resource was archived successfully

Request samples

Archive patient attachment

post/patient_attachments/{id}/archive
SecuritybasicAuth
Request
path Parameters
id
required
string <int64>
Responses
204

Resource was archived

Request samples

List patient attachments for patient case

get/patient_cases/{patient_case_id}/patient_attachments
SecuritybasicAuth
Request
path Parameters
patient_case_id
required
string <int64>
query Parameters
order
string
Deprecated
Enum: "asc" "desc"
page
integer
per_page
integer [ 1 .. 100 ]
q[]
Array of strings

Filter result by one or more fields.

See Filtering Results

Available filters:

Value Format
archived_at date-time
content_type string
created_at date-time
description string
filename string
id int64
patient_id int64
processed_at date-time
size integer
updated_at date-time
user_id int64
sort
Array of strings

Comma separated search fields. See: Ordering

Example: sort=created_at:desc
Responses
200

successful operation

Request samples
Response samples
application/json
{}

Get a presigned URL to upload your file to S3

get/patients/{patient_id}/attachment_presigned_post
SecuritybasicAuth
Request
path Parameters
patient_id
required
string <int64>
Example: 1
Responses
200

successful operation

Request samples
Response samples
application/json
{
  • "fields": {
    • "key": "string",
    • "policy": "string",
    • "x-amz-credential": "string",
    • "x-amz-signature": "string",
    • "x-amz-algorithm": "string",
    • "success_action_status": "201",
    • "acl": "private"
    },
}

List patient attachments for patient

get/patients/{patient_id}/patient_attachments
SecuritybasicAuth
Request
path Parameters
patient_id
required
string <int64>
query Parameters
order
string
Deprecated
Enum: "asc" "desc"
page
integer
per_page
integer [ 1 .. 100 ]
q[]
Array of strings

Filter result by one or more fields.

See Filtering Results

Available filters:

Value Format
archived_at date-time
content_type string
created_at date-time
description string
filename string
id int64
processed_at date-time
size integer
updated_at date-time
user_id int64
sort
Array of strings

Comma separated search fields. See: Ordering

Example: sort=created_at:desc
Responses
200

successful operation

Request samples
Response samples
application/json
{}