@@ -444,6 +444,8 @@ Send a message to an agent and receive a response
444444
445445``` typescript
446446await client .agent .chat ({
447+ " X-Phenoml-On-Behalf-Of" : " Patient/550e8400-e29b-41d4-a716-446655440000" ,
448+ " X-Phenoml-Fhir-Provider" : " 550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c..." ,
447449 message: " What is the patient's current condition?" ,
448450 agent_id: " agent-123"
449451});
@@ -1272,72 +1274,6 @@ await client.construe.extractCodes({
12721274</dl >
12731275
12741276
1275- </dd >
1276- </dl >
1277- </details >
1278-
1279- <details ><summary ><code >client.construe.<a href =" /src/api/resources/construe/client/Client.ts " >cohort</a >({ ...params }) -> phenoml.ConstrueCohortResponse</code ></summary >
1280- <dl >
1281- <dd >
1282-
1283- #### 📝 Description
1284-
1285- <dl >
1286- <dd >
1287-
1288- <dl >
1289- <dd >
1290-
1291- Creates a patient cohort based on a natural language description.
1292- Translates the description into FHIR search queries and optional SQL queries.
1293- </dd >
1294- </dl >
1295- </dd >
1296- </dl >
1297-
1298- #### 🔌 Usage
1299-
1300- <dl >
1301- <dd >
1302-
1303- <dl >
1304- <dd >
1305-
1306- ``` typescript
1307- await client .construe .cohort ({
1308- text: " Between 20 and 40 years old with hyperlipidemia"
1309- });
1310-
1311- ```
1312- </dd >
1313- </dl >
1314- </dd >
1315- </dl >
1316-
1317- #### ⚙️ Parameters
1318-
1319- <dl >
1320- <dd >
1321-
1322- <dl >
1323- <dd >
1324-
1325- ** request:** ` phenoml.construe.ConstrueCohortRequest `
1326-
1327- </dd >
1328- </dl >
1329-
1330- <dl >
1331- <dd >
1332-
1333- ** requestOptions:** ` Construe.RequestOptions `
1334-
1335- </dd >
1336- </dl >
1337- </dd >
1338- </dl >
1339-
1340-
13411277</dd >
13421278</dl >
13431279</details >
@@ -1373,7 +1309,8 @@ The request is proxied to the configured FHIR server with appropriate authentica
13731309
13741310``` typescript
13751311await client .fhir .search (" 550e8400-e29b-41d4-a716-446655440000" , " Patient" , {
1376- " X-Phenoml-On-Behalf-Of" :
" [email protected] " 1312+ " X-Phenoml-On-Behalf-Of" : " Patient/550e8400-e29b-41d4-a716-446655440000" ,
1313+ " X-Phenoml-Fhir-Provider" : " 550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c..."
13771314});
13781315
13791316```
@@ -1466,7 +1403,8 @@ The request is proxied to the configured FHIR server with appropriate authentica
14661403
14671404``` typescript
14681405await client .fhir .create (" 550e8400-e29b-41d4-a716-446655440000" , " Patient" , {
1469- " X-Phenoml-On-Behalf-Of" :
" [email protected] " ,
1406+ " X-Phenoml-On-Behalf-Of" : " Patient/550e8400-e29b-41d4-a716-446655440000" ,
1407+ " X-Phenoml-Fhir-Provider" : " 550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c..." ,
14701408 body: {
14711409 resourceType: " Patient" ,
14721410 name: [
@@ -1572,7 +1510,8 @@ The request is proxied to the configured FHIR server with appropriate authentica
15721510
15731511``` typescript
15741512await client .fhir .upsert (" 550e8400-e29b-41d4-a716-446655440000" , " Patient" , {
1575- " X-Phenoml-On-Behalf-Of" :
" [email protected] " ,
1513+ " X-Phenoml-On-Behalf-Of" : " Patient/550e8400-e29b-41d4-a716-446655440000" ,
1514+ " X-Phenoml-Fhir-Provider" : " 550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c..." ,
15761515 body: {
15771516 resourceType: " Patient" ,
15781517 id: " 123" ,
@@ -1680,7 +1619,8 @@ The request is proxied to the configured FHIR server with appropriate authentica
16801619
16811620``` typescript
16821621await client .fhir .delete (" 550e8400-e29b-41d4-a716-446655440000" , " Patient" , {
1683- " X-Phenoml-On-Behalf-Of" :
" [email protected] " 1622+ " X-Phenoml-On-Behalf-Of" : " Patient/550e8400-e29b-41d4-a716-446655440000" ,
1623+ " X-Phenoml-Fhir-Provider" : " 550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c..."
16841624});
16851625
16861626```
@@ -1778,7 +1718,8 @@ The request is proxied to the configured FHIR server with appropriate authentica
17781718
17791719``` typescript
17801720await client .fhir .patch (" 550e8400-e29b-41d4-a716-446655440000" , " Patient" , {
1781- " X-Phenoml-On-Behalf-Of" :
" [email protected] " ,
1721+ " X-Phenoml-On-Behalf-Of" : " Patient/550e8400-e29b-41d4-a716-446655440000" ,
1722+ " X-Phenoml-Fhir-Provider" : " 550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c..." ,
17821723 body: [{
17831724 op: " replace" ,
17841725 path: " /name/0/family" ,
@@ -1878,7 +1819,8 @@ The request is proxied to the configured FHIR server with appropriate authentica
18781819
18791820``` typescript
18801821await client .fhir .executeBundle (" 550e8400-e29b-41d4-a716-446655440000" , {
1881- " X-Phenoml-On-Behalf-Of" :
" [email protected] " ,
1822+ " X-Phenoml-On-Behalf-Of" : " Patient/550e8400-e29b-41d4-a716-446655440000" ,
1823+ " X-Phenoml-Fhir-Provider" : " 550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c..." ,
18821824 body: {
18831825 resourceType: " Bundle" ,
18841826 entry: [{
@@ -3120,6 +3062,8 @@ Converts natural language to FHIR resource and optionally stores it in a FHIR se
31203062
31213063``` typescript
31223064await client .tools .createFhirResource ({
3065+ " X-Phenoml-On-Behalf-Of" : " Patient/550e8400-e29b-41d4-a716-446655440000" ,
3066+ " X-Phenoml-Fhir-Provider" : " 550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c..." ,
31233067 resource: " auto" ,
31243068 text: " Patient John Doe has severe asthma with acute exacerbation"
31253069});
@@ -3186,6 +3130,8 @@ Converts natural language to FHIR search parameters and executes search in FHIR
31863130
31873131``` typescript
31883132await client .tools .searchFhirResources ({
3133+ " X-Phenoml-On-Behalf-Of" : " Patient/550e8400-e29b-41d4-a716-446655440000" ,
3134+ " X-Phenoml-Fhir-Provider" : " 550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c..." ,
31893135 text: " Find all appointments for patient John Doe next week"
31903136});
31913137
@@ -3251,6 +3197,8 @@ Uses LLM to extract search concepts from natural language and builds patient coh
32513197
32523198``` typescript
32533199await client .tools .analyzeCohort ({
3200+ " X-Phenoml-On-Behalf-Of" : " Patient/550e8400-e29b-41d4-a716-446655440000" ,
3201+ " X-Phenoml-Fhir-Provider" : " 550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c..." ,
32543202 text: " female patients over 20 with diabetes but not hypertension" ,
32553203 provider: " 550e8400-e29b-41d4-a716-446655440000"
32563204});
0 commit comments