Skip to content

Improve syntax error reporting #2525

@MartinBernstorff

Description

@MartinBernstorff

E.g. for this query:

video_appointments_with_patient = (
    delta_lake.view(
        resource="Appointment",
        select=[
            {
                "column": [
                    {"name": "app_id", "path": "getResourceKey()"},
                    {"name": "profile", "path": "meta.profile.first()"},
                    {"name": "patient", "path": "participant.first()"},
                ]
            }
        ],
    ).head(5)
)

I get:

UnsupportedOperationException: Cannot obtain value for non-primitive collection of FHIR type: BACKBONEELEMENT

I'd love if the error was something like:

UnsupportedOperationException: Column definition of "patient" with path "participant.first()" cannot obtain value for non-primitive collection of FHIR type: BACKBONEELEMENT.

Definitely a QoL, but hope the feedback is useful :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions