package Ġcom . ru vi apps . t ack ling ne ph rot ic . database . datas ources Ċ Ċ import Ġcom . ru vi apps . t ack ling ne ph rot ic . database . dto . QueryResult Ċ import Ġcom . ru vi apps . t ack ling ne ph rot ic . database . entities .* Ċ Ċ interface ĠPat ients DataSource Ġ{ ĊĊĠĠĠ Ġsuspend Ġfun Ġsave Patient ( database Patient : ĠDatabase Patient ) Ġ: ĠQuery Result < Long > ĊĠĠĠ Ġsuspend Ġfun ĠgetAll Pat ients () Ġ: ĠQuery Result < List < Database Patient >> ĊĠĠĠ Ġsuspend Ġfun Ġget Patient ById ( id Ġ: ĠLong ) Ġ: ĠQuery Result < Database Patient > ĊĠĠĠ Ġsuspend Ġfun Ġsave All Pat ients ( patient : ĠList < Database Patient >) Ġ: ĠQuery Result < Unit > ĊĠĠĠ Ġsuspend Ġfun Ġdelete All Pat ients () Ġ: ĠQuery Result < Unit > ĊĠĠĠ Ġsuspend Ġfun Ġdelete Patient ( database Patient : ĠDatabase Patient ) Ġ: ĠQuery Result < Unit > ĊĠĠĠ Ġsuspend Ġfun Ġget Patient sWith Ur ine Results ( patient Id Ġ: ĠLong ) Ġ: ĠQuery Result < List < Patient With Ur ine Results >> ĊĠĠĠ Ġsuspend Ġfun Ġget Pat ients All Ad vices ( patient Id : ĠLong ) Ġ: ĠQuery Result < List < Patient With Consult ations >> Ċ Ċ }