ivmartel / dwv-angular

Medical image viewer using DWV (DICOM Web Viewer) and Angular.
https://ivmartel.github.io/dwv-angular
GNU General Public License v3.0
39 stars 18 forks source link

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

Open AnalogJ opened 1 year ago

AnalogJ commented 1 year ago

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?

ivmartel commented 1 year ago

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 commented 1 year ago

@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!)

AnalogJ commented 1 year ago

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 :)