import requests
response = requests.post(
"https://api.$environment.corti.app/v2/tools/coding/",
headers={
"Authorization": "Bearer <token>",
"Tenant-Name": "<tenant-name>",
},
json={
"system": ["icd10pcs"],
"context": [{"type": "text", "text": "Patient underwent laparoscopic appendectomy for acute appendicitis."}],
},
)
print(response.json())