Skip to content

Commit

Permalink
feat: change STOW workflow
Browse files Browse the repository at this point in the history
1. DICOM to JSON Module , return json,store path,store full path
2. check is not same study uid
3. Save DICOM file
4. Get DICOM FHIR ImagingStudy data
5. Insert FHIR Endpoint (ImagingStudy reference)
6. Insert FHIR Patient (ImagingStudy reference)
7. Put DICOM JSON (Study,Series,Instance level) to FHIR ImagingStudy
8. Insert DICOM JSON metadata
9. Insert FHIR ImagingStudy ( )
  9.1 Check Instance is in FHIR ImagingStudy
  9.2 Update found ImagingStudy or insert

feat: log task time when generate jepg

feat: add not image sop class model

refactor: rename getData to storeImagingStudy in convertFHIR api

refactor: rename putWithoutReq to putFHIRImagingStudyWithoutReq in putImagingStudy api
  • Loading branch information
Chinlinlee committed Aug 14, 2021
1 parent 81020bf commit 7802658
Show file tree
Hide file tree
Showing 4 changed files with 291 additions and 80 deletions.
2 changes: 1 addition & 1 deletion api/FHIR/ImagingStudy/controller/post_convertFHIR.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = async function (req, res) {
return sendData[insertStatus.toString()](doc);
};

module.exports.getData = async function (id , data) {
module.exports.storeImagingStudy = async function (id , data) {
let [insertStatus, doc] = await InsertImagingStudy(data, id);
return doc;
}
Expand Down
2 changes: 1 addition & 1 deletion api/FHIR/ImagingStudy/controller/putImagingStudy.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ module.exports = async function (req, res) {
});
}*/
};
module.exports.putWithoutReq = async function (id , data) {
module.exports.putFHIRImagingStudyWithoutReq = async function (id , data) {
delete data["_id"];
let [updateStatus, doc] = await mongoUpdate({ id: id }, data);
if (updateStatus) {
Expand Down
Loading

0 comments on commit 7802658

Please sign in to comment.