Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -212,26 +212,6 @@ def create_provider(name: str, organization_name: str) -> Tuple[Practitioner, Pr
|
|
212 |
|
213 |
return practitioner, practitioner_role, organization
|
214 |
|
215 |
-
def create_program(name: str, goal_description: str, start_date: str, end_date: str) -> Program:
|
216 |
-
"""
|
217 |
-
Creates and returns a FHIR Program resource with the given name, goal description, start date, and end date.
|
218 |
-
"""
|
219 |
-
program = Program()
|
220 |
-
program.status = "active"
|
221 |
-
program.category = [CodeableConcept()]
|
222 |
-
program.category[0].coding = [Coding()]
|
223 |
-
program.category[0].coding[0].system = "http://example.com/program-categories"
|
224 |
-
program.category[0].coding[0].code = "123456"
|
225 |
-
program.category[0].coding[0].display = "Example Category"
|
226 |
-
program.name = name
|
227 |
-
program.description = "Example Description"
|
228 |
-
program.goal = [Goal()]
|
229 |
-
program.goal[0].description = CodeableConcept()
|
230 |
-
program.goal[0].description.text = goal_description
|
231 |
-
program.start = FHIRDate(start_date)
|
232 |
-
program.end = FHIRDate(end_date)
|
233 |
-
|
234 |
-
return program
|
235 |
|
236 |
def create_fulfillment(patient_id: str, medication_name: str, quantity: int, dispense_date: str) -> MedicationStatement:
|
237 |
"""
|
|
|
212 |
|
213 |
return practitioner, practitioner_role, organization
|
214 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
|
216 |
def create_fulfillment(patient_id: str, medication_name: str, quantity: int, dispense_date: str) -> MedicationStatement:
|
217 |
"""
|