diff --git a/webapi/fhir.py b/webapi/fhir.py index cc3cfed..9462473 100644 --- a/webapi/fhir.py +++ b/webapi/fhir.py @@ -303,7 +303,7 @@ def search_condition(request: Request, domain: Domain, subject: str | None = Query(None, description=SUBJECT), _count: int | None = Query(None), _offset: int = Query(0)) -> Response: # fmt: skip - """What clinical notes diagnosed.""" + """What clinical notes diagnosed (CaMa: and each recurrence).""" def build(rows): return [f.condition(r) for r in rows] @@ -316,10 +316,11 @@ def search_procedure(request: Request, domain: Domain, subject: str | None = Query(None, description=SUBJECT), _count: int | None = Query(None), _offset: int = Query(0)) -> Response: # fmt: skip - """The procedures the domain's timeline infers (CaCu: colposcopies and treatments).""" + """The procedures the domain's timeline infers (CaCu: colposcopies and treatments; + CaMa: each treatment, by its kind).""" def build(rows): - return [f.procedure(r) for r in rows] + return [f.procedure(r, domain.value) for r in rows] return _clinical_search("procedure", build, request, domain, subject, _count, _offset)