samaresh55 commited on
Commit
f3d245e
·
verified ·
1 Parent(s): 96e8702

Upload prompts.py

Browse files
Files changed (1) hide show
  1. prompts.py +347 -0
prompts.py ADDED
@@ -0,0 +1,347 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ################################################## PROMPT ################################################
3
+ def get_prompts_emea():
4
+ system_prompt = '''An entity is a person(name), age, gender, title, named organization, city, state, country, address, zipcode, dates, site_ids, subject id, email, phone number, height, weight, Race, ethnicity, smoking habits, drinking habits, non-particiant, Social Security Number, Account Number, Medical Record Number, Medical History, Health Insurance Beneficiary Number, Certificate License Number, IP Address, Website URL, Vehicle Identifier.
5
+ All entities should strictly get extracted, but don't extract incorrect entities.
6
+ Entity present in any part of the paragraph should be detected.
7
+ Names/Person : Names of persons mentioned in the input sentence or paragraph.ile
8
+ Age: Age of a person should get detected. Some examples are 12 yo, 15 years old, 11 months old, 79 years, 51 yrs, 18-year-old, > 13 Years, <14 years
9
+ Date: All dates should get detected as Dates. Some examples are 10-1-2021, 23-01-2022, 27th June, June 29, 10-09-2007, 4/5/67, 7/67, 31-12-2000. start_date, end_date should get detected as Date itself.
10
+ Gender: Consider instances of "Male," "Female," "male," "female," "She," "He," "women," and "man" as gender references, note don't extract other than these instances
11
+ Study_day: Day 2, Day 5, day 9, day 11 of study, 3rd day of study, etc.,
12
+ Height: six feet tall, 5 feet 7 inches, 8 feet 1 inch, 170 centimeters tall, 188 centimeters, 189cm, 140.73 cm, etc., should be detected as Height.
13
+ Weight: some of the examples are 100 pounds, 50 pounds, 77.4 pounds, 66 kgs, 78.9 kilograms, 88 kilograms, etc.,should be detected as Weight.
14
+ Race: some of the examples of Race are caucasian, Asian, Black, White, African Amercian, Hispanic descent, mixed race heritage, Native American, etc., should be detected as Race.
15
+ Phone_number: persons contact number or phone number should get detected. example format of phone numbers are +91443563223, (123)456-7890, +1(123)456-7890, (555) 123-4567, +44 20 1234 5678
16
+ Email: all emails from the paragraph should be detected.
17
+ Site_id: Site ID #56, Site ID 87, siteid #22, siteid356, at Site Y789, at site 235 etc.,
18
+ Address: Extract Address from paragraph and should detect as Address.
19
+ Country: Extract Country names from paragraph.
20
+ Non_participant: non-participant, observer, spectator etc., extract these type of entities
21
+ Smoking_habit: never smoked, smoker, non-smoker etc., extract these type of entities
22
+ Drinking_habit: never drinked, drinker, drinking, non-drinker etc., extract these type of entities
23
+ BMI: Body Mass Index value should get detected.
24
+ Social Security Number: Social Security Number should get detected from paragraph.
25
+ Medical Record Number: All Medical Record Numbers should get detected from paragraph.
26
+ If there are multiple values for same entity they should be extracted with | separation.
27
+ Random text should not get detected as any of above entities.
28
+ All entities from above should strictly be extracted.
29
+ URLs shouldn't get detected as Location or Address.
30
+ '''
31
+
32
+ example1 = '''Essentially , Mr. Cornea is a 60 year old male who noted the onset of dark urine during early January .
33
+ Answer:
34
+ Name: Mr. Cornea
35
+ Age: 60 year old
36
+ Gender: male
37
+ Date: early January
38
+ End-Answer
39
+ '''
40
+
41
+ example2 = '''In the 205 subjects with post-ofatumumab HAHA results (G2 MSD ECL assay; Section 3.5), one subject (Subject 257) tested positive for HAHA on 10-1-2021, 23-01-2022, and 185 subjects had all negative post-ofatumumab HAHA results with at least one ofatumumab plasma concentration low enough (<200 µg/mL) for the negative HAHA results to be considered conclusive. Subject 257 tested positive for HAHA at the six-month follow-up visit (titer = 16); samples at all other time points were negative.
42
+ 2 patients were released from the study due to inactivity.
43
+ Answer:
44
+ Subject_id: 257 | 257
45
+ Date: 10-1-2021 | 23-01-2022
46
+ Numper_of_patients: 2 | 205 | 185
47
+ End-Answer
48
+ '''
49
+ example3 = '''Subject 169: 54 years, Female, Pneumocystis jirovecii pneumonia, 61 days after last dose, resolved. The subject(CS3A Subject 1833-2303) was hospitalized for severe bronchopneumonia. Bronchoalveolar lavage and polymerase chain reaction (PCR) for Pneumocystis were positive for Pneumocystis jiroveci. She was hospitalized on 27th June and discharged on June 29. Two patients were on the study from 10-09-2007.
50
+ Answer:
51
+ Subject_id: 169 | 1833-2303
52
+ Age: 54 years
53
+ Gender: Female | She
54
+ Race: White
55
+ Date: 27th June | June 29 | 10-09-2007
56
+ Medical_history: Pneumocystis jirovecii pneumonia
57
+ End-Answer
58
+ '''
59
+
60
+ example4 = '''Saw Dr Oakley 4/5/67 - he was happy with results of ETT at Clarkfield. To f/u 7/67. No CP's since last admit. On Day 521, the patient was discharged.
61
+ Another patient died of cardio-respiratory arrest on Day 8.
62
+ Answer:
63
+ Name: Dr Oakley
64
+ Date: 4/5/67 | 7/67
65
+ Gender: he
66
+ Location: Clarkfield
67
+ Study_day: Day 521 | Day 8
68
+ End-Answer
69
+ '''
70
+
71
+ example5 = '''Patient 12367/2134 Oseltamivir 100 mg IV q12h for 5 days S295H/Y Patient 12367/2144 was a 57 year old male enrolled on 31-12-2000, on Day 5(03-Jan-2021) the patient was admitted.
72
+ Answer:
73
+ Patient_id: 12367/2134 | 12367/2144
74
+ Gender: male
75
+ Date: 31-12-2000 | 03-Jan-2021
76
+ Study_day: Day 5
77
+ Age: 57 year old
78
+ End-Answer'''
79
+
80
+ example6 = '''Final Clinical Study Report - NV25118: A Randomized, Multicenter, Single Blinded, Parallel Study of the Safety of 100 mg and 200 mg Oseltamivir Administered Intravenously for the Treatment of Influenza in Patients Aged > 13 Years. Report No. 1037027. June 3, 2013
81
+ Answer:
82
+ Study_id: NV25118
83
+ Age: 13 Years
84
+ Date: June 3, 2013
85
+ End-Answer'''
86
+
87
+ # example6 = '''918 Abdominal pain 2013-02-02 (8) Y Y 918-07 Abdominal pain Gastrointestinal disorders 2013-02-03 (9) Y Grade II Medical / other treatment Not suspected Suspected Recovered/resolved.
88
+ # The events resolved afterwards on Day 4 (pyrexia, vomiting) (02-Feb-2013) and Day 21 (asthenia) (19-Feb-2013).'
89
+ # Answer:
90
+ # Site_id: 918
91
+ # Subject_id: 918-07
92
+ # Study_day: Day 4 | Day 21
93
+ # Date: 2013-02-02 | 2013-02-03 | 02-Feb-2013 | 19-Feb-2013
94
+ # Medical_history: Abdominal pain | Gastrointestinal disorders
95
+ # End-Answer'''
96
+
97
+ example7 = '''The medical history included throat cancer beginning in 2011 and ending in 2011, a broken hip beginning in 2011 and ending in 2011, insertion of two stents in 2012, coronary artery bypass surgery on 25-Jun-2014, a right cerebrovascular accident on 25-Jun-2014, aortic valve replacement on 25-Jun-2014, bilateral cataracts on 15-Aug-2014.
98
+ Answer:
99
+ Medical_history: throat cancer | broken hip | insertion of two stents | coronary artery bypass surgery | right cerebrovascular accident | aortic valve replacement | bilateral cataracts.
100
+ Date: 25-Jun-2014 | 25-Jun-2014 | 25-Jun-2014 | 15-Aug-2014
101
+ End-Answer'''
102
+
103
+ example8 = '''1083\nPatient [AUS02T-0215-787043] - Death\n(disseminated intravascular coagulation),\nSAE (haemorrhage intracranial,\ndisseminated intravascular coagulation) .
104
+ Answer:
105
+ Subject_id: [AUS02T-0215-787043]
106
+ End-Answer'''
107
+
108
+
109
+ example9 = '''The accident involved Vehicle ID: ABC123 and occurred on August 15, 2023.
110
+ Answer:
111
+ Vehicle_Identifier: ABC123
112
+ Date: August 15, 2023
113
+ End-Answer
114
+ '''
115
+ example10 = '''Sarah underwent an ECHO and endoscopy at Ingree and Ot of Weamanshy Medical Center(www.wmchospital.com) on April 28 . In one patient the SAE had a fatal\noutcome.
116
+ Answer:
117
+ Name: Sarah
118
+ Location: Weamanshy Medical Center
119
+ URL: www.wmchospital.com
120
+ Date: April 28
121
+ End-Answer'''
122
+
123
+ example11 = '''The patient had never smoked and was a former drinker. The subject was accompanied by his mother. He then completed study treatment with a total of 19 doses of IV oseltamivir (10 doses standard treatment plus 9 doses of treatment extension).
124
+ Answer:
125
+ Smoking_habit: never smoked
126
+ Drinking_habit: former drinker
127
+ Gender: his | He
128
+ Non_participant: mother
129
+ End-Answer'''
130
+
131
+ example12 = '''Patient ois/51317-31580/10653 was a 54-year-old Hispanic male. he doesn't have anything to inform. He's good at writing, participated in a medical research study at Site Y789.
132
+ Answer:
133
+ Subject_id: ois/51317-31580/10653
134
+ Age: 54-year-old
135
+ Race: Hispanic
136
+ Gender: male | he | He's
137
+ Site_id: Y789
138
+ End-Answer'''
139
+ example13 = '''This Task Order CPDR001F2301 (“Task Order”) shall be binding upon the undersigned upon its execution by the duly authorized representative(s) of Novartis. ', 'It is subject to the terms of that certain General Services Agreement (GSA) between Novartis Pharmaceuticals Corporation, with an office at 59 Route 10, East Hanover, NJ 07936 and Statistics Collaborative Inc. (“SCI” or “Organization”), with an office at 1625 Massachusetts Avenue NW, Suite 600, Washington, DC 20036 dated 16 June 2016 (“Agreement”).
140
+ Answer:
141
+ Address: 59 Route 10, East Hanover, NJ 07936 | 1625 Massachusetts Avenue NW, Suite 600, Washington, DC 20036
142
+ Date: 16 June 2016
143
+ End-Answer'''
144
+
145
+ example14 = '''ATC classes are presented alphabetically; preferred terms are sorted within ATC class alphabetically. - A medication can appear with more than one ATC class. Program: CIGG013A/CIGG013A1101J/report/pgm_saf/t_cmd03.sas, 18:33 14OCT2014 Final. https://www.google.com/
146
+ Study_dates: 18 Nov 2009-28 Jun 2010
147
+ Answer:
148
+ Program: CIGG013A/CIGG013A1101J/report/pgm_saf/t_cmd03.sas
149
+ Date: 14OCT2014 | 18 Nov 2009 | 28 Jun 2010
150
+ URL: https://www.google.com/
151
+ End-Answer
152
+ '''
153
+ example15 = '''This Task Order CPDRB0081E5 (“Task Order”) shall be binding upon the undersigned upon its execution by the duly authorized representative(s) of Novartis. It is subject to the terms of that certain General Services Agreement (GSA) between Novartis Pharmaceuticals Corporation, with an office at 59 Route 10, East Hanover, NJ 07936 and Acme Inc. (“Organization”), with an office at 123 Ben Avenue NW, Suite 600, Washington, DC 20001 dated 16 June 2016 (“Agreement”).
154
+ Answer:
155
+ Address: 59 Route 10, East Hanover, NJ 07936 | 123 Ben Avenue NW, Suite 600, Washington, DC 20001
156
+ Date: 16 June 2016
157
+ End-Answer
158
+ '''
159
+ example16 ='''In a pre-clinical study day, Subject ID #235 with Medical Record Number 783-ABD has a BMI of 27.5. His name is John Doe, aged 35, residing at 123 Main St. He's a non-participant, non-smoker, and non-drinker. His medical history includes allergies. He's 6 feet tall, male, Caucasian, and his health insurance beneficiary number is 4567890. He doesn't have a social security number but has an account number 123456789. He drives a Toyota with license plate XYZ-123. contact him at john.doe@exam.com
160
+ Answer:
161
+ Subject_id: 235
162
+ Medical_Record_Number: 783-ABD
163
+ BMI: 27.5
164
+ Name: John Doe
165
+ Age: 35
166
+ Address: 123 Main St.
167
+ Non_participant: non-participant
168
+ Smoking_habit: non-smoker
169
+ Drinking_habit: non-drinker
170
+ Medical_history: allergies
171
+ Height: 6 feet
172
+ Gender: male
173
+ Race: Caucasian
174
+ Health_Insurance_Beneficiary_Number: 4567890
175
+ Account_Number: 123456789
176
+ Vehicle_Identifier: Toyota | XYZ-123
177
+ Email: john.doe@exam.com
178
+ End-Answer
179
+ '''
180
+ example17 = '''He is a non-participant, non-smoker, and non-drinker. Anyone can reach at (555) 123-4567
181
+ Answer:
182
+ Gender: He
183
+ Non_participant: non-participant
184
+ Smoking_habit: non-smoker
185
+ Drinking_habit: non-drinker
186
+ Phone_number:(555) 123-4567
187
+ End-Answer
188
+ '''
189
+ example18 = '''Dr. Sarah Miller has a valid medical license (Certificate License Number: MD12345) and practices at 789 Oak Avenue. her medical history includes allergies.
190
+ Answer:
191
+ Name: Dr. Sarah Miller
192
+ Certificate_License_Number: MD12345
193
+ Adddress: 789 Oak Avenue
194
+ Gender: her
195
+ Medical_history: allergies
196
+ End-Answer
197
+ '''
198
+ example19 = '''During a pre-clinical study day at Site ID 56, Subject ID 1234, a 40-year-old Caucasian female named Amritha, her bmi with 2.65.
199
+ Answer:
200
+ Site_id: 56
201
+ Subject_id: 1234
202
+ Age: 40-year-old
203
+ Race: Caucasian
204
+ Gender: female | her
205
+ Name: Amritha
206
+ BMI: 2.65
207
+ End-Answer
208
+ '''
209
+ example20 = '''John, a non-smoker and an occasional drinker, He importance of maintaining a healthy lifestyle. Sarah, his colleague, shares his commitment to wellness. Despite societal pressures, they prioritize their health by avoiding tobacco and moderating alcohol consumption.
210
+ Answer:
211
+ Name: John | Sarah
212
+ Drinking_habit: occasional drinker | alcohol consumption
213
+ Gender: He | his | his
214
+ Smoking_habit: non-smoker | tobacco
215
+ End-Answer
216
+ '''
217
+ example21 = '''Study Dates: First patient screened: Jan 15, 2010 Last patient visit: Sept 14, 2012
218
+ Answer:
219
+ Date: Jan 15, 2010 | Sept 14, 2012
220
+ End-Answer
221
+ '''
222
+ example22 = '''Father: Hypertension, deceased at 70 (myocardial infarction) Mother: Type 2 Diabetes Mellitus, alive, age 72
223
+ Answer:
224
+ Medical_history: Hypertension | Diabetes Mellitus
225
+ Age: 70 | 72
226
+ End-Answer
227
+ '''
228
+
229
+ whole_task = '''Given the paragraph below identify list of possible entities.
230
+ Paragraph:'''
231
+
232
+ example_list = [example1,example17,example12,example11,example13,example14, example2, example9, example3, example4, example5, example6, example15, example7, example8, example9, example10,example16, example18,example19, example20, example21, example22 ]
233
+
234
+ final_prompt = ''
235
+ for ex in example_list:
236
+ final_prompt = final_prompt+''+whole_task+'\n'
237
+ final_prompt = final_prompt+''+ex+'\n'
238
+
239
+ final_prompt = system_prompt+'\n'+final_prompt
240
+ return final_prompt, whole_task
241
+
242
+ def get_prompts_emea2():
243
+ # system_prompt = # General entities
244
+ # {"Name": "NAME", "Age": "AGE", "Gender": "GENDER", "Date": "DATE", "Location": "ADDRESS", "Country": "COUNTRY"}
245
+ system_prompt2 = '''An entity is a Organization_name, Dosage Values, Drug names, Bank Account Numbers, Bank Swift Codes, Cost Values.
246
+ All entities should strictly get extracted, but don't extract incorrect entities.
247
+ Entity present in any part of the paragraph or sentence should be detected.
248
+ Dosages: Medical Dosage values should get detected. Some examples are 500 mg, 100 mg, 1000mg, 10ml, 250mg, 20mcg, 15μg, 19μg, 21 μg, 80 μg, 800 mcg, etc.,
249
+ Drug_names : Drug names should get detected. Some examples are Adelphane-Esidrex, Afinitor, Amturnide, Anafranil, Arcapta Neohaler, Brinaldix, Clozaril, Co-Diovan, EXV8111, Fabhalta, FUB5231, JDQ443, KAE609, Kisqali, KLU1563
250
+ Organization_names: Extract Organization names from given paragraph or sentence.
251
+ Account_Number: Bank Account Numbers should get detected.
252
+ Swift_code: Bank SWIFTcodes should get detected.
253
+ Costs: Only Costs Numerical monetory values like Euro(€),rupee(₹),doller($) should get detected as costs. Some examples are €10, €1200, €10,000, $100, $70,000, ₹25
254
+ If there are multiple values for same entity they should be extracted with | separation.
255
+ Random text should not get detected as any of above entities.
256
+ All entities from above should strictly be extracted
257
+ '''
258
+ # Countries like China, US, France, India should always get detected as country. Countries like China, US, France, India, South Korea should always get detected as Country. A country can't be a Subject_id.
259
+
260
+ example1 ='''The international conference registration fee is €300 for European attendees, ₹25,000 for participants from India, and $350 for delegates from other countries. Please note that all fees are exclusive of any applicable taxes or transaction fees. Payment can be made in the respective currencies via bank transfer or credit card. For currency conversion rates, please consult your financial institution or use a reliable online currency converter. Early bird discounts are available for registrations completed before the deadline. We look forward to welcoming you to the conference!
261
+ Answer:
262
+ Costs: €300 | ₹25,000 | $350
263
+ End-Answer'''
264
+ example2 = '''The project budget for the construction of the new pharmaceutical manufacturing facility has been estimated at €10 million, with additional expenses projected in Indian rupees (INR) amounting to ₹50 crore. This budget includes the procurement of state-of-the-art equipment and machinery sourced from various suppliers worldwide, with an estimated cost of $12.5 million in US dollars. The allocation of funds across different currencies reflects the global nature of the project, ensuring that costs are managed efficiently to meet quality standards and regulatory requirements.
265
+ Answer:
266
+ Costs: €10 | ₹50 | $12.5
267
+ End-Answer'''
268
+ example3 = '''She budgeted approximately $150 per night for accommodations, €50 for meals, and ₹1,500 for daily miscellaneous expenses. This comprehensive budget allowed her to comfortably experience the beauty of European countries while managing her day-to-day spending.
269
+ Answer:
270
+ Costs: $150 | €50 | ₹1,500
271
+ End-Answer'''
272
+ example4 = '''Bank Name: ABC Bank Branch: XYZ Branch Account Holder: [Your Name] Account Number: 123-456-789 SWIFT Code: XYZABCD1234 IBAN: [Your IBAN Number] Routing Number: 987654321
273
+ Answer:
274
+ Account_number: 123-456-789
275
+ Swift_code: XYZABCD1234
276
+ End-Answer'''
277
+
278
+ example5 = '''Bank Name: DEF Bank Branch: PQR Branch Account Holder: [Your Name] Account Number: 9876543210 SWIFT Code: DEFPQR12345 IBAN: [Your IBAN Number] Routing Number: 123456789
279
+ Answer:
280
+ Account_number: 9876543210
281
+ Swift_code: DEFPQR12345
282
+ End-Answer'''
283
+ example7 = '''Prescription Label: "Take 1 tablet by mouth daily with food." "Apply a thin layer of cream to the affected area twice daily." "Administer 10 mg/mL orally every 4 hours as needed for pain."Clinical Trial Protocol: "Participants will receive 100 mg of Drug A orally once daily for 12 weeks." "Patients will be administered 50 mg/kg of Drug B intravenously every 2 weeks for 6 cycles." "Dosage escalation will occur in 25 mg increments every week until a maximum tolerated dose is reached."
284
+ Answer:
285
+ Dosages: 1 tablet | 10 mg/ml | 100 mg | 50 mg/kg | 25 mg
286
+ End-Answer'''
287
+ example6 = '''Final Clinical Study Report - NV25118: A Randomized, Multicenter, Single Blinded, Parallel Study of the Safety of 100 mg and 200 mg Oseltamivir Administered Intravenously for the Treatment of Influenza in Patients Aged > 13 Years. Report No. 1037027. June 3, 2013
288
+ Answer:
289
+ Dosages: 100 mg | 200 mg
290
+ Drug_names: Oseltamivir
291
+ End-Answer'''
292
+
293
+ example8 = '''Medication Package Insert:"Recommended dosage for adults: 500μg to 1000μg orally every 6 hours, as needed." "Pediatric dosage: 10 mg/kg orally every 8 hours for children aged 2 to 12 years." "For elderly patients (>65 years), initiate therapy at 25% of the recommended adult dosage." Hospital Discharge Instructions: "Continue taking 75 μg of Medication C orally twice daily for 10 days.""Start with 250 mg of Medication D intravenously every 6 hours, then titrate to effect." "Resume home medications: 20 mg of Medication E orally once daily at bedtime."
294
+ Answer:
295
+ Dosages: 500μg | 1000μg | 10 mg/kg | 75 μg | 250 mg | 20 mg
296
+ End-Answer'''
297
+
298
+ example9 = '''Acme Corporation, represented herein as Party A, hereby enters into a distribution agreement with Smith & Sons Enterprises, hereinafter referred to as Party B. Under the terms of this agreement, Party A agrees to supply Party B with pharmaceutical products manufactured at Novartis Pharma AG facility located in Switzerland. Party B, in turn, agrees to distribute and promote these products within the designated territories. This agreement also encompasses cooperation between Novartis Pharma Schweiz AG, a subsidiary of Novartis, and Party B for marketing activities in the Indian market. Both parties acknowledge and agree to abide by the terms and conditions outlined herein, including confidentiality provisions and dispute resolution mechanisms.
299
+ Answer:
300
+ Organization_names: Acme Corporation | Smith & Sons Enterprises| Novartis Pharma AG | Novartis Pharma Schweiz AG
301
+ End-Answer'''
302
+ example10 = '''This Research Collaboration Agreement ("Agreement") is entered into on [Date] by and between Novartis Institutes for BioMedical Research, Inc. ("Novartis"), a research organization duly organized and existing under the laws of [Country], having its principal place of business at [Address], and MedTech Innovations LLC ("MedTech"), a technology company duly organized and existing under the laws of [Country], having its principal place of business at [Address].
303
+ Answer:
304
+ Organization_names: Novartis Institutes for BioMedical Research, Inc. | MedTech Innovations LLC.
305
+ End-Answer'''
306
+ example11 = '''This Task Order CPDR001F2301 (“Task Order”) shall be binding upon the undersigned upon its execution by the duly authorized representative(s) of Novartis. ', 'It is subject to the terms of that certain General Services Agreement (GSA) between Novartis Pharmaceuticals Corporation, with an office at 59 Route 10, East Hanover, NJ 07936 and Statistics Collaborative Inc. (“SCI” or “Organization”), with an office at 1625 Massachusetts Avenue NW, Suite 600, Washington, DC 20036 dated 16 June 2016 (“Agreement”).\n
307
+ Answer:
308
+ Organization_names: Novartis Pharmaceuticals Corporation | Statistics Collaborative Inc.
309
+ End-Answer'''
310
+ example12 = '''Afinitor, Arcapta Neohaler, and Clozaril are among the pharmaceuticals frequently prescribed for a variety of medical conditions.
311
+ Answer:
312
+ Drug_names: Afinitor | Arcapta Neohaler | Clozaril
313
+ End-Answer'''
314
+ example13 = '''Femara functions as a protease-activated receptor-1 (PAR-1) antagonist, effectively inhibiting platelet activation and reducing the risk of thrombotic events in patients with a history of myocardial infarction or peripheral arterial disease. With its unique mechanism of action and demonstrated efficacy in clinical trials, this drug offers new hope for patients seeking to mitigate the devastating consequences of atherosclerosis and other cardiovascular conditions.
315
+ Answer:
316
+ Drug_names: Femara
317
+ End-Answer
318
+ '''
319
+ example14 = '''Coartem, Kisqali, and Leqvio are among the pharmaceuticals utilized in the treatment and management of diverse medical conditions. specific dosage regimen based on the patient's weight and age. 600 mg daily for 21 days, cutaneous injection at a dosage of 300 mg every six months after an initial loading dose.
320
+ Answer:
321
+ Drug_names: Coartem | Kisqali | Leqvio
322
+ Dosages: 600 mg | 300 mg
323
+ End-Answer
324
+ '''
325
+ example15 = '''This Task Order CPDRB0081E5 (“Task Order”) shall be binding upon the undersigned upon its execution by the duly authorized representative(s) of Novartis. It is subject to the terms of that certain General Services Agreement (GSA) between Novartis Pharmaceuticals Corporation, with an office at 59 Route 10, East Hanover, NJ 07936 and Acme Inc. (“Organization”), with an office at 123 Ben Avenue NW, Suite 600, Washington, DC 20001 dated 16 June 2016 (“Agreement”).
326
+ Answer:
327
+ Orgnaization_names: Novartis Pharmaceuticals Corporation | Acme Inc
328
+ End-Answer
329
+ '''
330
+ example16 = ''''Patient 25291/3280 Oseltamivir 100 mg IV q12h for 5 days H275H/Y Patient 25291/3280 was a 57 year old male enrolled on 16-09-2021 , 2 days after onset of influenza symptoms in the hospital. ', "The patient's medical history included congestive cardiac failure, cardiac murmur, aortic stenosis, aspiration pneumonia and acute respiratory failure.
331
+ Drug_names: Oseltamivir
332
+ Dosages: 100 mg
333
+ End-Answer
334
+ '''
335
+ whole_task = '''Given the paragraph below identify list of entities that are mentioned in list [Person/Name, Dosages,].
336
+ Paragraph:'''
337
+
338
+ example_list = [example1, example5, example3,example9, example4, example6, example13, example2, example7, example8, example10, example11, example12,example15,example14,example16]
339
+
340
+ final_prompt = ''
341
+ for ex in example_list:
342
+ final_prompt = final_prompt+''+whole_task+'\n'
343
+ final_prompt = final_prompt+''+ex+'\n'
344
+
345
+ final_prompt = system_prompt2+'\n'+final_prompt
346
+ return final_prompt,whole_task
347
+