Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Providing Generics for Read Methods #805

Open
ole404 opened this issue Nov 11, 2024 · 1 comment
Open

Providing Generics for Read Methods #805

ole404 opened this issue Nov 11, 2024 · 1 comment

Comments

@ole404
Copy link

ole404 commented Nov 11, 2024

It would make interacting with the library a lot easier if one can use generics to Methods like ReadAsyncs. For example when i want to Request a Patient I don't want to type

FhirResponse patResponse = fhirService.ReadAsync(key);
Patient pat = (Patient)patResponse.Resource;

doSomething(pat)

but i could quickly write

patResponse = await fhirService.ReadAsync<Patient>(key);
doSomething(pat.Resource);

It would improve Development experience and Code readibility.

@kennethmyhra
Copy link
Collaborator

I like the idea!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants