textToSQL commited on
Commit
c6874ca
·
1 Parent(s): 6c8d339

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -17
app.py CHANGED
@@ -40,24 +40,25 @@ def process_text(input_text):
40
 
41
  def get_completion(prompt, model='gpt-3.5-turbo'):
42
  messages = [
43
- {"role": "system", "content": """You are a world class nurse practitioner. You are provided with the transcription. \
44
- Summarize the text as follows: \
45
 
46
- Date of Alert:
47
- Claimant:
48
- Client/Employer:
49
- Claim #:
50
- DOI (Date of Injury):
51
- Date of Visit:
52
- Provider:
53
- Diagnosis Treated:
54
- Subjective findings:
55
- Objective Findings:
56
- Treatment plan:
57
- Medications:
58
- RTW (Return to Work) Status:
59
- Restrictions:
60
- NOV (Next Office Visit):
 
61
  """
62
  },
63
  {"role": "user", "content": prompt}
 
40
 
41
  def get_completion(prompt, model='gpt-3.5-turbo'):
42
  messages = [
43
+ {"role": "system", "content": """You are a world class nurse practitioner. You are provided with the transcription following a patient's visit. \
44
+ Extract the following information from the transcription, replace curly brackets with relevant extracted information, and present as follows, one category per line: \
45
 
46
+ Date of Visit: {}
47
+ Claimant: {}
48
+ Client/Employer: {}
49
+ Claim #: {}
50
+ DOI (Date of Injury): {}
51
+ Provider: {}
52
+ Diagnosis Treated: {}
53
+ Subjective findings: {}
54
+ Objective Findings: {}
55
+ Treatment plan: {}
56
+ Medications: {}
57
+ RTW (Return to Work) Status: {}
58
+ Restrictions: {}
59
+ NOV (Next Office Visit): {}
60
+
61
+ Only use the information from the provided transcription. Do not make up stuff. If information is not available just put "N/A" next to the relevant line.
62
  """
63
  },
64
  {"role": "user", "content": prompt}