POST
/
v1
/
textify
/
analyzer
curl --request POST \
--url https://api.argosidentity.com/v1/textify/analyzer \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"fileExtension": "pdf",
"docuType": "InvoiceMedical",
"fileData": "base64-encoded-medical-invoice-pdf"
}'
{
"status": "success",
"data": {
"document": {
"patientInfo": {
"name": "John Smith",
"patientId": "P12345",
"dateOfBirth": "1985-03-15",
"contactNumber": "+1-555-0123"
},
"medicalProvider": {
"name": "City General Hospital",
"providerId": "H789",
"address": "123 Medical Center Dr, City, State 12345"
},
"billingDetails": {
"invoiceNumber": "INV-2024-001",
"serviceDate": "2024-01-15",
"dueDate": "2024-02-15",
"totalAmount": 1250,
"insuranceCoverage": 1000,
"patientResponsibility": 250
},
"medicalServices": [
{
"service": "Cardiology Consultation",
"code": "99204",
"amount": 350
},
{
"service": "EKG Test",
"code": "93000",
"amount": 150
},
{
"service": "Blood Work",
"code": "80048",
"amount": 750
}
]
},
"confidence": 0.95
}
}
The Medical Invoices template extracts structured data from medical bills and healthcare invoices, including patient information, medical services, costs, and billing details.

Template Features

Extracts the following information from medical invoices:
  • Patient information and demographics
  • Medical provider details
  • Billing information and payment terms
  • Medical services and procedures
  • Insurance coverage and patient responsibility
  • Diagnosis codes and medical terminology

Usage Example

{
  "fileExtension": "pdf",
  "docuType": "InvoiceMedical",
  "fileData": "base64-encoded-medical-invoice-data"
}

Response Format

The template returns structured medical invoice data including:

Patient Information

  • Patient Name: Full name of the patient
  • Patient ID: Unique patient identifier
  • Date of Birth: Patient’s birth date
  • Contact Information: Phone number and address

Medical Provider Details

  • Provider Name: Hospital, clinic, or medical facility
  • Provider ID: Unique provider identifier
  • Address: Complete provider address
  • Contact Information: Phone and email

Billing Information

  • Invoice Number: Unique invoice identifier
  • Service Date: Date of medical services
  • Due Date: Payment deadline
  • Total Amount: Total cost of services
  • Insurance Coverage: Amount covered by insurance
  • Patient Responsibility: Amount patient must pay

Medical Services

  • Service Description: Medical procedures performed
  • CPT Codes: Current Procedural Terminology codes
  • Service Amount: Cost of individual services
  • Diagnosis Codes: ICD-10 diagnosis codes

Sample Response

{
  "status": "success",
  "data": {
    "document": {
      "patientInfo": {
        "name": "John Smith",
        "patientId": "P12345",
        "dateOfBirth": "1985-03-15",
        "contactNumber": "+1-555-0123"
      },
      "medicalProvider": {
        "name": "City General Hospital",
        "providerId": "H789",
        "address": "123 Medical Center Dr, City, State 12345"
      },
      "billingDetails": {
        "invoiceNumber": "INV-2024-001",
        "serviceDate": "2024-01-15",
        "dueDate": "2024-02-15",
        "totalAmount": 1250.00,
        "insuranceCoverage": 1000.00,
        "patientResponsibility": 250.00
      },
      "medicalServices": [
        {
          "service": "Cardiology Consultation",
          "code": "99204",
          "amount": 350.00
        },
        {
          "service": "EKG Test",
          "code": "93000",
          "amount": 150.00
        },
        {
          "service": "Blood Work",
          "code": "80048",
          "amount": 750.00
        }
      ]
    },
    "confidence": 0.95
  }
}

Supported Medical Invoice Types

  • Hospital Bills
  • Doctor’s Office Invoices
  • Laboratory Test Bills
  • Imaging Service Invoices
  • Pharmacy Bills
  • Dental Invoices
  • Specialist Consultation Bills
  • Emergency Room Bills
  • Outpatient Procedure Bills
  • Medical Equipment Rental Invoices

Authorizations

X-API-Key
string
header
required

Body

application/json
fileExtension
enum<string>
required

File extension of the uploaded document (e.g., 'pdf', 'jpg', 'png')

Available options:
pdf,
jpg,
jpeg,
png
docuType
enum<string>
required

The type of document to be analyzed. This determines the extraction model and data structure used for analysis.

Supported Document Types:

  • InvoiceMedical: Medical invoices and bills from healthcare providers, hospitals, clinics, and medical facilities. Extracts patient information, medical services, costs, and billing details.
  • BusinessRegistration: Official business registration documents, corporate certificates, and company formation papers. Extracts business name, registration number, business type, and address information.
  • InvoiceGeneral: Standard commercial invoices from businesses and service providers. Extracts invoice number, customer details, items/services, and payment information.
  • MedicalObservation: Medical reports, patient records, and clinical observation documents. Extracts patient data, medical findings, diagnosis, and treatment information.
  • Contract: Legal contracts, agreements, and binding documents between parties. Extracts contract terms, parties involved, dates, and legal obligations.
  • ArrivalNotice: Shipping and logistics arrival notifications, delivery confirmations. Extracts shipment details, arrival dates, and delivery information.
  • BillofLading: Transportation documents for cargo and freight shipments. Extracts shipping details, cargo information, and transport terms.
  • Jobapplication: Employment applications, resumes, and job-related documents. Extracts applicant information, qualifications, and employment history.
  • BalanceCertificate_KR: Korean bank balance certificates and financial statements. Extracts account information, balance details, and banking data.
  • ProofOfAddress: Address verification documents, utility bills, and residence certificates. Extracts address information and verification details.
Available options:
InvoiceMedical,
BusinessRegistration,
InvoiceGeneral,
MedicalObservation,
Contract,
ArrivalNotice,
BillofLading,
Jobapplication,
BalanceCertificate_KR,
ProofOfAddress
fileData
file
required

Base64 encoded file data

Response

Successful analysis

status
string

Analysis status

data
object

Extracted structured data from the document. The structure varies based on the document type.