Skip to content

Commit

Permalink
Add Medication
Browse files Browse the repository at this point in the history
  • Loading branch information
bwalsh committed Jan 16, 2025
1 parent 73da0ca commit 89eb3ba
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/unit/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,17 @@ def dummy_callback(request: httpx.Request) -> Response:
},
)

if request.url.path == "/Medication":
return Response(
200,
json={
"resourceType": "Bundle",
"type": "searchset",
"entry": [
{"resource": {"resourceType": "Medication", "id": "M1"}},
],
},
)
# unexpected request
print(request.url, str(request.url.params))
assert False, f"Unexpected url:{request.url} path:{request.url.path}, params:{str(request.url.params)}"
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/test_mock_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def test_runner(tmp_path: str) -> None:
"DocumentReference": 2,
"Group": 1,
"ImagingStudy": 1,
"Medication": 1,
"MedicationAdministration": 1,
"Observation": 1,
"Patient": 3,
Expand All @@ -82,6 +83,7 @@ def test_runner(tmp_path: str) -> None:
"DocumentReference",
"Group",
"ImagingStudy",
"Medication",
"MedicationAdministration",
"Observation",
"Patient",
Expand Down

0 comments on commit 89eb3ba

Please sign in to comment.