Use case 1: create order

Flow

  1. Physician does a POST to openmrs/order.form.
    1. a DICOM request is made to create an order1 in dcm4chee
      1. to do this we could use dcm4che toolkit2
    2. if dcm4chee answers with success. (I don't know how to know that there a successful response in code) -----can this just be an Ajax request, and we can check the response??
      1. OpenMRS saves order in its database ----the order(s) can be part of an encounter with encountertype RADIOLOGY to be easily searchable
    3. else, dcm4chee answers with failure
      1. OpenMRS doesn't save anything
    4. OpenMRS sends success/failure to Physician

Notes

  1. Order in dcm4chee is an item in a modality worklist (worklist is the DICOM name for a list of orders)
  2. dcm4che toolkit (different from dcm4chee) has a command line utility called dcmmwl that creates entries in modality worklist (MWL)

Â