avniproject / avni-models

Avni data model to be used by front end clients
https://avniproject.org
GNU Affero General Public License v3.0
1 stars 4 forks source link

Issue with scheduledEncountersOfType #49

Open nupoorkhandelwal opened 1 year ago

nupoorkhandelwal commented 1 year ago

The following snippet ideally should give some value only if there is a visit scheduled of the specified type which is not completed and cancelled. (and not consider the visit user is completing) But at any moment it gives 'hello>>>>', [ { that: {} } ] irrespective if there is already a visit scheduled or a scheduled visit is being completed of that type.

As an implementor we do not have any way to identify if the visit is already scheduled or not!

const hello = programEncounter.programEnrolment.scheduledEncountersOfType('Child followup'); console.log('hello>>>>', hello);

nupoorkhandelwal commented 9 months ago

@mahalakshme if it is not too much work, can this be picked?

mahalakshme commented 8 months ago

@nupoorkhandelwal checking, missed it

mahalakshme commented 8 months ago

@nupoorkhandelwal is this issue still relevant? found the related cards/tickets closed.