Attach PCP Referral
Perform Attach PCP Referral through eClinicalWorks.
ecw_attach_pcp_referralwriteeclinicalworks
Inputs
- Patient Id
patient_idtextrequiredRequired text value.
- Encounter Id
encounter_idtextOptional text value.
- Encounter Ids
encounter_idsjsonOptional JSON value.
- Dos
dosdaterequiredRequired date in YYYY-MM-DD format.
- Referring Provider Last Name
referring_provider_last_nametextrequiredRequired text value.
- Auth Ukey
auth_ukeytextrequiredRequired text value.
- Dx Codes
dx_codesjsonOptional JSON value.
- Auth Pdf Document Id
auth_pdf_document_idtextrequiredRequired text value.
- Eligibility Pdf Document Id
eligibility_pdf_document_idtextrequiredRequired text value.
- Auth Start Date
auth_start_datedaterequiredRequired date in YYYY-MM-DD format.
- Auth End Date
auth_end_datedaterequiredRequired date in YYYY-MM-DD format.
- Folder Name
folder_nametextOptional text value.
- Supplemental Auth Pdf Document Id
supplemental_auth_pdf_document_idtextOptional text value.
- Supplemental Procedure Codes
supplemental_procedure_codesjsonOptional JSON value.
- Supplemental Auth Ukey
supplemental_auth_ukeytextOptional text value.
- Supplemental Auth End Date
supplemental_auth_end_datetextOptional text value.
Outputs
successSuccessreferral_idReferral Id
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",
"dos",
"referring_provider_last_name",
"auth_ukey",
"auth_pdf_document_id",
"eligibility_pdf_document_id",
"auth_start_date",
"auth_end_date"
],
"properties": {
"dos": {
"type": "string",
"format": "date",
"description": "Required date in YYYY-MM-DD format.",
"x-workflow-field-type": "date"
},
"dx_codes": {
"description": "Optional JSON value.",
"x-workflow-field-type": "json"
},
"auth_ukey": {
"type": "string",
"description": "Required text value.",
"x-workflow-field-type": "text"
},
"patient_id": {
"type": "string",
"description": "Required text value.",
"x-workflow-field-type": "text"
},
"folder_name": {
"type": "string",
"description": "Optional text value.",
"x-workflow-field-type": "text"
},
"encounter_id": {
"type": "string",
"description": "Optional text value.",
"x-workflow-field-type": "text"
},
"auth_end_date": {
"type": "string",
"format": "date",
"description": "Required date in YYYY-MM-DD format.",
"x-workflow-field-type": "date"
},
"encounter_ids": {
"description": "Optional JSON value.",
"x-workflow-field-type": "json"
},
"auth_start_date": {
"type": "string",
"format": "date",
"description": "Required date in YYYY-MM-DD format.",
"x-workflow-field-type": "date"
},
"auth_pdf_document_id": {
"type": "string",
"description": "Required text value.",
"x-workflow-field-type": "text"
},
"supplemental_auth_ukey": {
"type": "string",
"description": "Optional text value.",
"x-workflow-field-type": "text"
},
"supplemental_auth_end_date": {
"type": "string",
"description": "Optional text value.",
"x-workflow-field-type": "text"
},
"eligibility_pdf_document_id": {
"type": "string",
"description": "Required text value.",
"x-workflow-field-type": "text"
},
"referring_provider_last_name": {
"type": "string",
"description": "Required text value.",
"x-workflow-field-type": "text"
},
"supplemental_procedure_codes": {
"description": "Optional JSON value.",
"x-workflow-field-type": "json"
},
"supplemental_auth_pdf_document_id": {
"type": "string",
"description": "Optional text value.",
"x-workflow-field-type": "text"
}
},
"additionalProperties": false
}Output schema
{
"type": "object",
"properties": {
"success": {},
"referral_id": {}
},
"additionalProperties": true
}