Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for fhir_code, fhir_url and fhir_resource #70

Merged
merged 11 commits into from
Mar 26, 2025

Conversation

projkov
Copy link
Contributor

@projkov projkov commented Mar 25, 2025

Ref: #69

Usage example

@sdk.operation(
    ["GET"],
    ["fhir", "Patient", {"name": "id"}, "$summary"],
    compliance={
        "fhirUrl": "http://hl7.org/fhir/uv/ips/OperationDefinition/summary",
        "fhirCode": "summary",
        "fhirResource": ["Patient"],
    },
)
async def summary_op(_operation: SDKOperation, request: SDKOperationRequest) -> web.Response:
    pass

@projkov projkov changed the title WIP: Add support for fhir_code, fhir_url and fhir_resource Add support for fhir_code, fhir_url and fhir_resource Mar 25, 2025
@@ -151,6 +152,7 @@ def operation( # noqa: PLR0913
access_policy=None,
request_schema=None,
timeout=None,
compliance_params: Optional[Dict[str, Any]] = None,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's name it compliance.

Use https://peps.python.org/pep-0589/ to define required keys in the dict.

@ir4y
Copy link
Member

ir4y commented Mar 26, 2025

Add tests

@ir4y ir4y merged commit 6b309bd into Aidbox:master Mar 26, 2025
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants