FHIR USCDI Encounter status always finished

Situation
FHIR Encounters in v7.0.3 always has status = finished even if the encounter is still in progress.

In the image below you can see an active encounter in the Flow tab:

Same encounter in FHIR:

OpenEMR Version
I’m using OpenEMR version v7.0.3

Browser:
I’m using: Microsoft Edge 136.0.3240.64 (Official build) (64-bit)

Operating System
I’m using: Windows

Search
Did you search the forum for similar questions? Yes but I didn’t find anything else.

Logs
Did you check the logs?
I checked the code and I found this:

So, the status and the type are hardcoded

Thank you in advance.

Can you open an issue on github for this.

Bear in mind that the appointment is different than the encounter. We may need to do some combination of the looking at the appointment status, the encounter state (signed / vs unsigned), and possibly the date of the encounter if its an unsigned encounter but the last updated date is way past the appointment checkout date.

We’re going to be overhauling the encounters as part of our 2025 ASTP EHR updates so we’ll add this in as part of a work item.

Done! FHIR Encounter status hardcoded to Finished · Issue #8378 · openemr/openemr

Yes, actually the appointment works fine, the status changes in the response according to the status that the patient has in the Flow bar.

Thank you for the response.