awacke1 commited on
Commit
f9462db
β€’
1 Parent(s): e8db54a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -129,16 +129,16 @@ def get_patient(name: str) -> Tuple[Patient, str]:
129
  # patient.birthDate = FHIRDate(example_patient["birthdate"])
130
  patient.gender = example_patient["gender"]
131
  #patient.address = [Address()]
132
- patient.address.append(Address())
133
-
134
- patient.address[0].line = example_patient["address"]["line"]
135
- patient.address[0].city = example_patient["address"]["city"]
136
- patient.address[0].state = example_patient["address"]["state"]
137
- patient.address[0].postalCode = example_patient["address"]["postalCode"]
138
- patient.address[0].country = example_patient["address"]["country"]
139
- patient.telecom = [ContactPoint()]
140
- patient.telecom[0].system = "phone"
141
- patient.telecom[0].value = example_patient["phone"]
142
 
143
  # Create a SMART Patient model
144
  smart_patient = smart.Patient.read_from(patient.as_json())
 
129
  # patient.birthDate = FHIRDate(example_patient["birthdate"])
130
  patient.gender = example_patient["gender"]
131
  #patient.address = [Address()]
132
+ #patient.address.append(Address())
133
+
134
+ #patient.address[0].line = example_patient["address"]["line"]
135
+ #patient.address[0].city = example_patient["address"]["city"]
136
+ #patient.address[0].state = example_patient["address"]["state"]
137
+ #patient.address[0].postalCode = example_patient["address"]["postalCode"]
138
+ #patient.address[0].country = example_patient["address"]["country"]
139
+ #patient.telecom = [ContactPoint()]
140
+ #patient.telecom[0].system = "phone"
141
+ #patient.telecom[0].value = example_patient["phone"]
142
 
143
  # Create a SMART Patient model
144
  smart_patient = smart.Patient.read_from(patient.as_json())