View in #ohif on Slack
@Jones: Hi Team, Is there any defined way or reference on what could be the best way to save measurements ?. I’m looking to write API’s and store. Would be great if someone could point to the service which can use to call my backend. Thanks
@Alireza_Sedghi: Does your backend support DICOM STOW? we have everything setup and you can create report, and then it will get saved for you in DICOM SR
Otherwise you can store a json file maybe? and then you can rehydrate by fetch?
@Jones: Yeah, something like JSON file works.
- Can you tell me what should I store in that json file.
- And fetching the json response, what state variable should I update in application.
@Alireza_Sedghi: you should store the annotation itself, from cornerstoneTools.annotation.state
look inside extensions/cornerstone-dicom-sr/src/utils/addMeasurement.ts
on how to hydrate
you should use MeasurementService for hydration
@Jones: Sure, I’ll check on the same. Thanks