Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -294,20 +294,6 @@ def create_care_team(name: str, provider_names: List[str]) -> CareTeam:
|
|
294 |
|
295 |
return care_team
|
296 |
|
297 |
-
def create_task(title: str, description: str, assignee: str) -> Task:
|
298 |
-
"""
|
299 |
-
Creates and returns a FHIR Task resource representing a task with the given title, description, and assignee.
|
300 |
-
"""
|
301 |
-
task = SmartTask()
|
302 |
-
task.status = "draft"
|
303 |
-
task.intent = "order"
|
304 |
-
task.title = title
|
305 |
-
task.description = description
|
306 |
-
task.requester = {"reference": "Practitioner/example-requester"}
|
307 |
-
task.owner = {"reference": f"Practitioner/{assignee}"}
|
308 |
-
|
309 |
-
return task
|
310 |
-
|
311 |
def create_activity_definition(title: str, description: str, category: str, code: str) -> ActivityDefinition:
|
312 |
"""
|
313 |
Creates and returns a FHIR ActivityDefinition resource representing an activity definition with the given title, description, category, and code.
|
|
|
294 |
|
295 |
return care_team
|
296 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
297 |
def create_activity_definition(title: str, description: str, category: str, code: str) -> ActivityDefinition:
|
298 |
"""
|
299 |
Creates and returns a FHIR ActivityDefinition resource representing an activity definition with the given title, description, category, and code.
|