@ctchealth/plato-sdk 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -31
- package/package.json +1 -1
- package/src/lib/plato-sdk.js +1 -1
package/README.md
CHANGED
|
@@ -34,41 +34,52 @@ const client = new PlatoApiClient({
|
|
|
34
34
|
|
|
35
35
|
// Create a simulation
|
|
36
36
|
const simulation = await client.createSimulation({
|
|
37
|
-
persona: {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
practiceSettings: "
|
|
41
|
-
yearOfExperience:
|
|
42
|
-
specialityAndDepartment: "Cardiology"
|
|
43
|
-
location: "New York"
|
|
37
|
+
"persona": {
|
|
38
|
+
"professionalProfile": {
|
|
39
|
+
"location": "City Hospital, New York",
|
|
40
|
+
"practiceSettings": "Outpatient Clinic",
|
|
41
|
+
"yearOfExperience": 12,
|
|
42
|
+
"specialityAndDepartment": "Cardiology"
|
|
44
43
|
},
|
|
45
|
-
segment:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
44
|
+
"segment": SegmentType.CostConsciousPrescriber,
|
|
45
|
+
"assistantGender": AssistantVoiceGender.Male,
|
|
46
|
+
"name": "Dr Vegapunk",
|
|
47
|
+
"personalityAndBehaviour": {
|
|
48
|
+
"riskTolerance": 40,
|
|
49
|
+
"researchOrientation": 70,
|
|
50
|
+
"recognitionNeed": 60,
|
|
51
|
+
"brandLoyalty": 55,
|
|
52
|
+
"patientEmpathy": 80,
|
|
53
|
+
"trainingDifficulty": 50,
|
|
54
|
+
"friendliness": 75
|
|
54
55
|
},
|
|
55
|
-
context: {
|
|
56
|
-
subSpecialityOrTherapyFocus: "
|
|
57
|
-
typicalPatientMix: "Elderly
|
|
58
|
-
keyClinicalDrivers: "
|
|
59
|
-
}
|
|
60
|
-
assistantGender: "Male"
|
|
56
|
+
"context": {
|
|
57
|
+
"subSpecialityOrTherapyFocus": "Hypertension management",
|
|
58
|
+
"typicalPatientMix": "Elderly with comorbidities",
|
|
59
|
+
"keyClinicalDrivers": "Reducing cardiovascular risk"
|
|
60
|
+
}
|
|
61
61
|
},
|
|
62
|
-
product: {
|
|
63
|
-
name: "
|
|
64
|
-
description: "
|
|
62
|
+
"product": {
|
|
63
|
+
"name": "Ibuprofen 1000mg",
|
|
64
|
+
"description": "A nonsteroidal anti-inflammatory drug used to reduce pain, inflammation, and fever"
|
|
65
65
|
},
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
66
|
+
"presentation": "Oral tablets, 10 tablets per pack",
|
|
67
|
+
"scenario": "Discussing treatment options for an elderly patient with chronic arthritis",
|
|
68
|
+
"objectives": [
|
|
69
|
+
"Demonstrate efficacy of Ibuprofen in pain management",
|
|
70
|
+
"Highlight safety profile and contraindications",
|
|
71
|
+
"Encourage patient adherence"
|
|
72
|
+
],
|
|
73
|
+
"anticipatedObjections": [
|
|
74
|
+
"Concerns about gastrointestinal side effects",
|
|
75
|
+
"Preference for lower-cost generic alternatives",
|
|
76
|
+
"Potential interactions with other medications"
|
|
77
|
+
],
|
|
78
|
+
"trainingConfiguration": {
|
|
79
|
+
"trainingDifficulty": 70,
|
|
80
|
+
"communicationFormality": 75,
|
|
81
|
+
"friendlinessLevel": 65,
|
|
82
|
+
"subjectMatterExpertise": 80
|
|
72
83
|
}
|
|
73
84
|
});
|
|
74
85
|
|
package/package.json
CHANGED
package/src/lib/plato-sdk.js
CHANGED
|
@@ -113,7 +113,7 @@ class PlatoApiClient {
|
|
|
113
113
|
this.eventsAttached = false;
|
|
114
114
|
}
|
|
115
115
|
async startCall(simulationId) {
|
|
116
|
-
this.callControllerInstance = new web_1.default('
|
|
116
|
+
this.callControllerInstance = new web_1.default('f07d17ec-d4e6-487d-a0b9-0539c01aecbb', 'https://d1pcpyriexmvjj.cloudfront.net');
|
|
117
117
|
if (!this.eventsAttached) {
|
|
118
118
|
this.attachEvents();
|
|
119
119
|
}
|