Create a clinical reference
auto_scribe.clinical_references.create(ClinicalReferenceCreateParams**kwargs) -> ClinicalReference
POST/v1/autoScribe/clinicalReferences
Creates a canonical clinical reference value for study workflow pickers and normalization.
Create a clinical reference
import os
from avara import Avara
client = Avara(
api_key=os.environ.get("AVARA_API_KEY"), # This is the default and can be omitted
)
clinical_reference = client.auto_scribe.clinical_references.create(
name="City Medical Center",
type="facility",
)
print(clinical_reference.clinical_reference_id){
"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"
}
}