Sending documents (records) to SmartAdvocate (POST request from Retrieval service)
Documents that a client needs to receive as a result of an order should be send in POST request to endpoint: https://sa.yourlawyer.com:4430/sasvcdev/SAWebService.svc/Retrieval/Documents
JSON structure:
Code Block | ||
---|---|---|
| ||
{
"RecordID":"473",
"SACaseNumber":"Y6009938",
"Comments":"",
"Documents":[
{
"ICDCodes":[
{
"PageNumber":"3",
"Confidence":"97.94",
"ICDCode":"V7643",
"ICDCodeFormatted":"V76.43",
"Format":"ICD9",
"Description":"Screening for malignant neoplasms of skin",
"Type":"diagnosis"
},
{
"PageNumber":"3",
"Confidence":"99.58",
"ICDCode":"70219",
"ICDCodeFormatted":"702.19",
"Format":"ICD9",
"Description":"Other seborrheic keratosis",
"Type":"diagnosis"
}
],
"DocumentType":"Medical Document",
"DocumentName":"Dermatology Associates of Virginia - Reynolds Crossing MED Davis,D.pdf",
"SADocumentSubcategoryTypeID":20,
"Document":"JVBERi0xLjYNJeLjz9MNCjk..."
}
]
} |
Fields description:
RecordID(integer) – SA record ID
SACaseNumber(string) – SmartAdvocate case number
Comments(string) – Comments added to an order
Documents (list of documents):
ICDCodes(string) – if you do not support ICD codes recognition then you don't need to include this part into Json request.
PageNumber(string) – page where ICD code identified
Confidence(string) – Confidence percentage
ICDCode(string) – ICD code
ICDCodeFormatted(string) – formatted ICD code
Format(string) – format of ICD code
Description(string) – description of ICD Code
Type – type of ICD code
DocumentType(string) – Document type
SADocumentSubcategoryTypeID(integer) – Smart advocate Document subcategory ID
DocumentName(string) – Document name
Document - The base64 encoded binary data for the file.
Large binary documents could be send to URL: https://sa.yourlawyer.com:4430/sasvcdev/SAWebService.svc/Retrieval/UploadDocument?filename={filename}&RecordID={RecordID}&SACaseNumber={SACaseNumber}
Parameters:
Filename – a name of an uploaded file
RecordID – SA record ID
SACaseNumber – SmartAdvocate case number
Update Status of Requests
PUT request should be send to endpoint: https://sa.yourlawyer.com:4430/sasvcdev/SAWebService.svc/Retrieval/MedicalRequests/StatusUpdate
Code Block |
---|
[
{
"RecordId": 1,
"Status": "Progress"
},
{
"RecordId": 2,
"Status": "Completed"
},
{
"RecordId": 3,
"Status": "Canceled"
}
]
|
Fields description:
RecordID(integer) – SA record ID (Record have to marked as Read.)
Status(string) – Status of request. Request in SA will update depends of settings.
Sending invoices to SmartAdvocate (POST request from Retrieval service)
Invoice for servicing should be send in POST request to endpoint: https://sa.yourlawyer.com:4430/sasvcdev/SAWebService.svc/Retrieval/MedicalRequests/Invoice
JSON structure:
Code Block |
---|
{
"RecordID": 30969,
"Type": "Medical Records",
"InvoiceNo": "123456P",
"InvoiceDate": "2020-05-26T00:00:00",
"Amount": 1235.99,
"Comments": ""
} |
Fields description:
RecordID(integer) – SA record ID
Type(string) – Type of record (should match with client's record otherwise default parameter will be used)
InvoiceNo(string) – Invoice number
InvoiceDate(date) – Invoice date
Amount(decimal) – Invoice Amount
Comments(string) – text comments if need to be added to invoice record
Receiving message from retrieval service (POST request from Retrieval service)
Message should be send in POST request to endpoint: https://sa.yourlawyer.com:4430/sasvcdev/SAWebService.svc/Retrieval/MedicalRequests/Message
JSON structure:
Code Block | ||
---|---|---|
| ||
[
{
"RecordID": 123465,
"Message": "test"
}
] |
Fields description:
RecordID(integer) – SA record ID
Message (string) – message