Tross
ECLINICALWORKS

Write billing codes

Add CPT billing codes and their diagnoses to an encounter.

POSThttps://api.ontross.com/api/integrations/ecw/write-billing-codes
Request Fields
input.encounterId
string
required
Encounter the codes are billed on, from fetch-appointments.
Example
"1870494"
input.patientId
string
Patient chart the encounter belongs to, from fetch-patients.
Example
"407069"
Default
""
input.codes
array
Billing codes to add to the encounter.
input.codes[].code
string
CPT code as the practice's catalogue lists it.
Example
"99491"
input.codes[].units
string
Units billed for this code.
Example
"1.00"
Default
"1.00"
input.codes[].modifiers
array
Billing modifiers applied to this code, up to four.
Example
["25"]
input.codes[].icd_codes
array
Diagnosis codes this charge is billed against, up to four.
Example
["E11.9"]
input.allow_duplicates
boolean
Adds a code the encounter already carries instead of leaving it alone.
Example
false
Default
false
auth_id
string
required
Saved connection to run this operation through, from the Authentication page. It decides which practice and login the call uses.
Example
"00000000-0000-4000-8000-000000000000"
Output Fields
encounterId
string
Encounter whose billing was changed.
Example
"1870494"
added
array
Codes this call added; already-present ones are not repeated.
Example
["99491"]
codes
array
Every billing line on the encounter after the write.
codes[].code
string
CPT code on the encounter's billing line.
Example
"99491"
codes[].name
string
Procedure wording the practice stores for the code.
Example
"CHRNC CARE MGMT SVC 30 MIN"
codes[].units
string
Units billed on this line.
Example
"1.00"
codes[].billingId
string
Identifier eCW assigned to this billing line.
Example
"186599"
codes[].modifiers
array
Billing modifiers set on this line.
Example
["25"]
codes[].icd_codes
array
Diagnosis codes this line is billed against.
Example
["E11.9"]
Code
curl --request POST \
  --url https://api.ontross.com/api/integrations/ecw/write-billing-codes \
  --header 'X-API-Key: REPLACE_KEY_VALUE' \
  --header 'content-type: application/json' \
  --data '{"input":{"patientId":"407069","encounterId":"1870494","codes":[],"allow_duplicates":false},"auth_id":"auth_uuid_here"}'
Request BODY
{
  "input": {
    "patientId": "407069",
    "encounterId": "1870494",
    "codes": [],
    "allow_duplicates": false
  },
  "auth_id": "auth_uuid_here"
}
Response BODY
{
  "id": "string",
  "workflow_id": "string",
  "auth_id": "string",
  "status": "string",
  "input": {},
  "output": {
    "encounterId": "1870494",
    "added": [
      "99491"
    ],
    "codes": [
      {
        "code": "99491",
        "name": "CHRNC CARE MGMT SVC 30 MIN",
        "units": "1.00",
        "billingId": "186599",
        "modifiers": [
          "25"
        ],
        "icd_codes": [
          "E11.9"
        ]
      }
    ]
  },
  "files": null,
  "created_at": "2019-08-24T14:15:22Z",
  "started_at": "2019-08-24T14:15:22Z",
  "completed_at": "2019-08-24T14:15:22Z"
}