dwv-angular icon indicating copy to clipboard operation
dwv-angular copied to clipboard

Instructions for how to use `dwv-angular` as a library/component in another app?

Open AnalogJ opened this issue 2 years ago • 3 comments
trafficstars

Hey @ivmartel

This DICOM viewer looks great, thanks for all your hard work!

I'm the developer behind Fasten Health an open-source personal health record (PHR) system, that allows patients to retrieve and view their medical records from 1000's of healthcare institutions.

I'd like to add support for viewing DICOM images in my (Angular 14) app, and your repo was one of the first results that showed up (and seemed to have native Angular support)

Is it possible to use dwv-angular as a component in another Angular app? or is it just a stand-alone viewer?

AnalogJ avatar Mar 18 '23 15:03 AnalogJ

Thanks! I've mainly used this repo as a demo of what the underlying dwv can do. I'll check how to export the DICOM component of this repo.

Here is a demo of the latest code: brain mri

ivmartel avatar Mar 19 '23 11:03 ivmartel

@AnalogJ I've seen that you have made progress with this and that you're using the raw dwv. Do you still need an angular component? (and don't hesitate if you have any feedback on the lib!)

ivmartel avatar Apr 25 '23 09:04 ivmartel

Hey @ivmartel Yeah, I was able to throw together a working component based on your examples, thanks for that!

Do you still need an angular component?

Honestly, I'm not a frontend developer, and my implementation is pretty hacky and has a couple of broken edge cases. I'd definitely love to use a officially supported Angular component if it was available.

don't hesitate if you have any feedback on the lib

Will do. I've been a bit busy working on some new features, but I have a task to write some comprehensive tests for my attachment/document display logic. I'll keep you updated if I notice any weirdness :)

AnalogJ avatar Apr 25 '23 14:04 AnalogJ

Please follow #873 for progress. Closing for now, feel free to comment if you need.

ivmartel avatar Sep 06 '24 13:09 ivmartel

Hi @AnalogJ, #873 is done: dwv-angular is now available as an angular component from npm: https://www.npmjs.com/package/dwv-angular?activeTab=versions (v0.9.0-beta.3). The component uses angular material, I hope this is fine with you. Please tell me how the integration goes and if there is anything that could be improved.

ivmartel avatar Sep 16 '24 10:09 ivmartel