@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 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
- name: "Dr. Smith",
39
- professionalProfile: {
40
- practiceSettings: "Hospital",
41
- yearOfExperience: 10,
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: "The Traditionalist",
46
- personalityAndBehaviour: {
47
- riskTolerance: 3,
48
- researchOrientation: 40,
49
- recognitionNeed: 2,
50
- brandLoyalty: 50,
51
- patientEmpathy: 4,
52
- trainingDifficulty: 3,
53
- friendliness: 4
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: "Heart failure",
57
- typicalPatientMix: "Elderly patients",
58
- keyClinicalDrivers: "Evidence-based medicine"
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: "CardioMed Pro",
64
- description: "Advanced cardiac medication"
62
+ "product": {
63
+ "name": "Ibuprofen 1000mg",
64
+ "description": "A nonsteroidal anti-inflammatory drug used to reduce pain, inflammation, and fever"
65
65
  },
66
- scenario: "Discussing treatment options for heart failure",
67
- trainingConfiguration: {
68
- trainingDifficulty: 3,
69
- communicationFormality: 4,
70
- friendlinessLevel: 4,
71
- subjectMatterExpertise: 5
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctchealth/plato-sdk",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "dependencies": {
5
5
  "tslib": "^2.3.0",
6
6
  "@vapi-ai/web": "2.1.8"
@@ -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('677157de-0e16-4a6e-90d8-ab53ac1dbaab', 'https://d1pcpyriexmvjj.cloudfront.net');
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
  }