Supported formats: JPG / JPEG, PNG, BMP
Size limit: Images ≤ 10MB
All generated content is produced by AI models for reference only and does not represent the platform's position.User Agreement Privacy Policy
curl -X POST "https://maas-api.unisound.com/v1/ocr/image/extract" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "model=u2-ocr-med" \
-F "type=image" \
-F "file=data:image/png;base64,..." \
-F "prompt=Your task is to extract information from the image above and structure it into JSON.
Follow this schema exactly (if a field is missing, return an empty string):
{
\"basicInfo\": {
\"hospitalName\": \"\",
\"name\": \"\",
\"gender\": \"\",
\"age\": \"\",
\"inpatientNo\": \"\",
\"bedNo\": \"\",
\"maritalStatus\": \"\",
\"medicalRecordNo\": \"\",
\"department\": \"\",
\"admissionTime\": \"\",
\"admissionCount\": \"\",
\"recordTime\": \"\"
},
\"clinicalInfo\": {
\"admissionCondition\": \"\",
\"chiefComplaint\": \"\",
\"presentIllness\": \"\",
\"pastHistory\": \"\",
\"personalHistory\": \"\",
\"allergyHistory\": \"\",
\"maritalAndFertilityHistory\": \"\",
\"familyHistory\": \"\",
\"bloodTransfusionHistory\": \"\",
\"specialtyFindings\": \"\",
\"physicalExamination\": \"\",
\"auxiliaryExaminations\": \"\"
},
\"admissionDiagnoses\": [
{
\"diagnosisName\": \"\",
\"diagnosisType\": \"\"
}
]
}
Use only explicit field labels from the source document and do not infer missing fields.
Return List[JSON] only. All values must be strings. Do not provide any explanation."