Upload Patient Document
Perform Upload Patient Document through athenahealth.
athena_upload_patient_documentInputs
- Patient Id
patient_idexpressionrequiredRequired literal value or workflow expression.
- Chart Id
chart_idexpressionrequiredRequired literal value or workflow expression.
- File Path
file_pathexpressionOptional literal value or workflow expression.
- S3 Path
s3_pathexpressionOptional literal value or workflow expression.
- Source Document Id
source_document_idexpressionOptional literal value or workflow expression.
- File Name
file_nameexpressionOptional literal value or workflow expression.
- Content Type
content_typeexpressionOptional literal value or workflow expression.
- Document Label
document_labelselectrequiredRequired selected identifier or value.
Default:
"ADMIN"Options: Admin ("ADMIN"), Admin - Billing Document ("ADMIN_BILLING"), Admin - Consent ("ADMIN_CONSENT"), Admin - HIPAA/Privacy ("ADMIN_HIPAA"), Admin - Insurance Approval Notification ("ADMIN_INSURANCEAPPROVAL"), Admin - Insurance Card ("ADMIN_INSURANCECARD"), Admin - Insurance Denial Notification ("ADMIN_INSURANCEDENIAL"), Admin - Legal ("ADMIN_LEGAL"), Admin - Medical Records Request ("ADMIN_MEDICALRECORDREQ"), Admin - Referral ("ADMIN_REFERRAL"), Admin - Signed Forms & Letters ("ADMIN_SIGNEDFORMSLETTERS"), Clinical Document ("CLINICALDOCUMENT"), Clinical Document - Admission/Discharge Summary ("CLINICALDOCUMENT_ADMISSIONDISCHARGE"), Clinical Document - Consult Note ("CLINICALDOCUMENT_CONSULTNOTE"), Clinical Document - Emergency/Urgent Care ("CLINICALDOCUMENT_URGENTCARE"), Clinical Document - Mental Health Consult ("CLINICALDOCUMENT_MENTALHEALTH"), Clinical Document - Operative Note ("CLINICALDOCUMENT_OPERATIVENOTE"), Cover Sheet ("COVERSHEET"), Encounter Document - Authorization ("ENCOUNTERDOCUMENT_AUTHORIZATION"), Encounter Document - Health History Questionnaire ("ENCOUNTERDOCUMENT_PATIENTHISTORY"), Encounter Document - Image Documentation ("ENCOUNTERDOCUMENT_IMAGEDOC"), Encounter Document - Procedure Documentation ("ENCOUNTERDOCUMENT_PROCEDUREDOC"), Encounter Document - Progress Note ("ENCOUNTERDOCUMENT_PROGRESSNOTE"), Imaging/Diagnostic Result ("IMAGINGRESULT"), Lab Result ("LABRESULT"), Medical Record Document - Chart for Abstraction ("MEDICALRECORD_CHARTTOABSTRACT"), Medical Record Document - Flowsheet ("MEDICALRECORD_COUMADIN"), Medical Record Document - Growth Chart ("MEDICALRECORD_GROWTHCHART"), Medical Record Document - Historical Medical Record ("MEDICALRECORD_HISTORICAL"), Medical Record Document - Patient Diary ("MEDICALRECORD_PATIENTDIARY"), Medical Record Document - Vaccination Record ("MEDICALRECORD_VACCINATION"), Order (Already Signed) ("ORDER"), Phone Message ("PHONEMESSAGE"), Physician Authorization ("PHYSICIANAUTH"), Physician Authorization - Care Plan Oversight ("PHYSICIANAUTH_CAREPLANOVERSIGHT"), Prescription - Change ("PRESCRIPTION_CHANGE"), Prescription - Clarification ("PRESCRIPTION_CLARIFICATION"), Prescription - New ("PRESCRIPTION_NEW"), Prescription - Prior Authorization Request ("PRESCRIPTION_PRIORAUTHREQUEST"), Prescription - Renewal ("PRESCRIPTION_RENEWAL")
- Provider Username
provider_usernameselectdynamic optionsOptional selected identifier or value. Retrieve allowed values from the dynamic options endpoint.
- Order Type
order_typeremote_search_selectdynamic optionsOptional value. Retrieve allowed values from the dynamic options endpoint.
- Assigned To
assigned_toselectdynamic optionsOptional selected identifier or value. Retrieve allowed values from the dynamic options endpoint.
- Department Id
department_idselectdynamic optionsOptional selected identifier or value. Retrieve allowed values from the dynamic options endpoint.
- Action Note
action_notetextOptional text value.
- Close Document
close_documentbooleanOptional true-or-false value.
Default:
false - Write Enabled
write_enabledbooleanOptional true-or-false value.
Default:
false
Outputs
successSuccessdocument_idDocument Iddocument_classDocument Classdocument_sub_classDocument Sub Classdocument_labelDocument Labeldocument_label_nameDocument Label Namepatient_idPatient Idchart_idChart Iddepartment_idDepartment Idprovider_usernameProvider Usernameassigned_toAssigned Toorder_type_idOrder Type Idorder_type_nameOrder Type Namelabeling_appliedLabeling AppliedfilenameFilenamesource_document_idSource Document Idwrite_skippedWrite Skippedskip_reasonSkip ReasonerrorErrorerror_messageError Message
Output schema completeness: best_effort_declared
Safety
- External effect
- write
- Confirmation recommended
- No
- Retry safe
- No
- Dry run supported
- No
Schemas
These schemas are first-pass authoring guidance. Runtime validation remains authoritative.
Input schema
{
"type": "object",
"required": [
"patient_id",
"chart_id",
"document_label"
],
"properties": {
"s3_path": {
"description": "Optional literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"chart_id": {
"description": "Required literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"file_name": {
"description": "Optional literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"file_path": {
"description": "Optional literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"order_type": {
"description": "Optional value. Retrieve allowed values from the dynamic options endpoint.",
"x-dynamic-options": true,
"x-workflow-field-type": "remote_search_select"
},
"patient_id": {
"description": "Required literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"action_note": {
"type": "string",
"description": "Optional text value.",
"x-workflow-field-type": "text"
},
"assigned_to": {
"type": "string",
"description": "Optional selected identifier or value. Retrieve allowed values from the dynamic options endpoint.",
"x-dynamic-options": true,
"x-workflow-field-type": "select"
},
"content_type": {
"description": "Optional literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"department_id": {
"type": "string",
"description": "Optional selected identifier or value. Retrieve allowed values from the dynamic options endpoint.",
"x-dynamic-options": true,
"x-workflow-field-type": "select"
},
"write_enabled": {
"type": "boolean",
"default": false,
"description": "Optional true-or-false value.",
"x-workflow-field-type": "boolean"
},
"close_document": {
"type": "boolean",
"default": false,
"description": "Optional true-or-false value.",
"x-workflow-field-type": "boolean"
},
"document_label": {
"enum": [
"ADMIN",
"ADMIN_BILLING",
"ADMIN_CONSENT",
"ADMIN_HIPAA",
"ADMIN_INSURANCEAPPROVAL",
"ADMIN_INSURANCECARD",
"ADMIN_INSURANCEDENIAL",
"ADMIN_LEGAL",
"ADMIN_MEDICALRECORDREQ",
"ADMIN_REFERRAL",
"ADMIN_SIGNEDFORMSLETTERS",
"CLINICALDOCUMENT",
"CLINICALDOCUMENT_ADMISSIONDISCHARGE",
"CLINICALDOCUMENT_CONSULTNOTE",
"CLINICALDOCUMENT_URGENTCARE",
"CLINICALDOCUMENT_MENTALHEALTH",
"CLINICALDOCUMENT_OPERATIVENOTE",
"COVERSHEET",
"ENCOUNTERDOCUMENT_AUTHORIZATION",
"ENCOUNTERDOCUMENT_PATIENTHISTORY",
"ENCOUNTERDOCUMENT_IMAGEDOC",
"ENCOUNTERDOCUMENT_PROCEDUREDOC",
"ENCOUNTERDOCUMENT_PROGRESSNOTE",
"IMAGINGRESULT",
"LABRESULT",
"MEDICALRECORD_CHARTTOABSTRACT",
"MEDICALRECORD_COUMADIN",
"MEDICALRECORD_GROWTHCHART",
"MEDICALRECORD_HISTORICAL",
"MEDICALRECORD_PATIENTDIARY",
"MEDICALRECORD_VACCINATION",
"ORDER",
"PHONEMESSAGE",
"PHYSICIANAUTH",
"PHYSICIANAUTH_CAREPLANOVERSIGHT",
"PRESCRIPTION_CHANGE",
"PRESCRIPTION_CLARIFICATION",
"PRESCRIPTION_NEW",
"PRESCRIPTION_PRIORAUTHREQUEST",
"PRESCRIPTION_RENEWAL"
],
"type": "string",
"default": "ADMIN",
"description": "Required selected identifier or value.",
"x-workflow-field-type": "select"
},
"provider_username": {
"type": "string",
"description": "Optional selected identifier or value. Retrieve allowed values from the dynamic options endpoint.",
"x-dynamic-options": true,
"x-workflow-field-type": "select"
},
"source_document_id": {
"description": "Optional literal value or workflow expression.",
"x-workflow-field-type": "expression"
}
},
"additionalProperties": false
}Output schema
{
"type": "object",
"properties": {
"error": {},
"success": {},
"chart_id": {},
"filename": {},
"patient_id": {},
"assigned_to": {},
"document_id": {},
"skip_reason": {},
"department_id": {},
"error_message": {},
"order_type_id": {},
"write_skipped": {},
"document_class": {},
"document_label": {},
"order_type_name": {},
"labeling_applied": {},
"provider_username": {},
"document_sub_class": {},
"source_document_id": {},
"document_label_name": {}
},
"additionalProperties": true
}