-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from beda-software/61-switch-to-aidbox-converters
#61 Use aidbox $to-format for $assemble operations
- Loading branch information
Showing
3 changed files
with
46 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
async def from_first_class_extension(fce_resource, aidbox_client): | ||
fhir_resource = await aidbox_client.execute( | ||
"/$to-format/fhir", method="post", data=fce_resource, params=None | ||
) | ||
return fhir_resource.get("resource") | ||
|
||
|
||
async def to_first_class_extension(fhir_resource, aidbox_client): | ||
fce_resource = await aidbox_client.execute( | ||
"/$to-format/aidbox", method="post", data=fhir_resource, params=None | ||
) | ||
return fce_resource.get("resource") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters