Update a clinical reference
client.autoScribe.clinicalReferences.update(stringclinicalReferenceID, ClinicalReferenceUpdateParams { expressCustomerId, metadata, name } body?, RequestOptionsoptions?): ClinicalReference { clinicalReferenceId, createdAt, isActive, 6 more }
PATCH/v1/autoScribe/clinicalReferences/{clinicalReferenceId}
Updates name, metadata, and Express customer assignment. Type is immutable after create.
Update a clinical reference
import Avara from 'avara-software';
const client = new Avara({
apiKey: process.env['AVARA_API_KEY'], // This is the default and can be omitted
});
const clinicalReference = await client.autoScribe.clinicalReferences.update(
'ref_1234567890abcdef1234567890abcdef',
);
console.log(clinicalReference.clinicalReferenceId);{
"clinicalReferenceId": "ref_1234567890abcdef1234567890abcdef",
"createdAt": "2024-01-15T09:00:00Z",
"isActive": true,
"name": "City Medical Center",
"type": "facility",
"updatedAt": "2024-03-15T14:20:00Z",
"expressCustomer": {
"expressCustomerId": "cus_1234567890abcdef1234567890abcdef",
"expressCustomerName": "City Medical Center"
},
"externalReferenceId": "FAC-001",
"metadata": {
"region": "northeast"
}
}Returns Examples
{
"clinicalReferenceId": "ref_1234567890abcdef1234567890abcdef",
"createdAt": "2024-01-15T09:00:00Z",
"isActive": true,
"name": "City Medical Center",
"type": "facility",
"updatedAt": "2024-03-15T14:20:00Z",
"expressCustomer": {
"expressCustomerId": "cus_1234567890abcdef1234567890abcdef",
"expressCustomerName": "City Medical Center"
},
"externalReferenceId": "FAC-001",
"metadata": {
"region": "northeast"
}
}