-
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.
Use aidbox $to-fromat for $assemble operations
Ref #61
- Loading branch information
1 parent
0118476
commit e66bac7
Showing
3 changed files
with
45 additions
and
22 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