has
inline fun <R> Search.has(referenceParam: <ERROR CLASS>, init: Search.() -> Unit)
Content copied to clipboard
Provides limited support for the reverse chaining on https://www.hl7.org/fhir/search.html#has. For example: search all Patient that have Condition - Diabetes. This search uses the subject field in the Condition resource. Code snippet:
FhirEngine.search<Patient> {
has<Condition>(Condition.SUBJECT) {
filter(Condition.CODE, Coding("http://snomed.info/sct", "44054006", "Diabetes"))
}
}
Content copied to clipboard