Expanding on this topic... Are these really the only supported criteria for fetching Conditions?
I'd like to fetch diagnoses for a specific encounter but notice that I'm pulling in a significant amount of conditions that I end up throwing away (after filtering the results client side) because they are not associated to the encounter I want.
var diagnosesForAllEncounters = smart.patient.api.fetchAll({
type: 'Condition',
query: {
'category' : 'diagnosis'
}
});
I'd like to add additional criteria, possibly like the example below to only pull down the diagnoses I'm actually going to use. This is causing a performance delay.
var diagnosesForSpecificEncounter = smart.patient.api.fetchAll({
type: 'Condition',
query: {
'category' : 'diagnosis',
'encounter.reference' : 'Encounter/' + smart.tokenResponse.encounter
}
});
Is there anything like that available?