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

HAPI FHIR Public Server sending a 502 error #6483

Open
ddeveloper72 opened this issue Nov 19, 2024 · 0 comments
Open

HAPI FHIR Public Server sending a 502 error #6483

ddeveloper72 opened this issue Nov 19, 2024 · 0 comments

Comments

@ddeveloper72
Copy link

ddeveloper72 commented Nov 19, 2024

NOTE: Before filing a ticket, please see the following URL:
https://github.com/hapifhir/hapi-fhir/wiki/Getting-Help

Describe the bug
Server sending a 502 error.http://hapi.fhir.org/

To Reproduce
Steps to reproduce the behavior:
I'm using the following Python function to retrieve a list of the most recently updated patient IDs

def fhir_patient_list():
    """Get a list of patients from the HAPI server and display them to the user"""

    client = SyncFHIRClient("http://hapi.fhir.org/baseR4")
    try:
        patients = client.resources("Patient").sort("-_lastUpdated").limit(100).fetch()

        patient_list = []
        for patient in patients:
            patient_list.append(
                {
                    "id": patient.id,
                }
            )
            # print(patient_list)

        return render_template("fhir_patient_list.html", patients=patient_list)
    except Exception as e:
        flash("Error fetching patient list: " + str(e), "alert-danger")
        return redirect(url_for("index"))

The server returns an error I'm rendering in jinja:
Error fetching patient list: { "resourceType": "OperationOutcome", "issue": [ { "severity": "fatal", "code": "invalid", "diagnostics": "Error" } ], "text": { "status": "generated", "div": "Something went wrong" } }

Expected behavior
I was expecting to be able to get a list of the last 100 most recently updated patient IDs from the HAPI FHIR Server

Screenshots
image

Environment (please complete the following information):

  • HAPI FHIR Version: HAPI FHIR Public Test server (7.8.0)
  • OS: Windows 11 and Android
  • Browser: Edge & Chrome on Android

Additional context
Thank you for providing an Excellent Service to the public

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

No branches or pull requests

1 participant