|
@@ -80,7 +80,339 @@ export function mockGetStudyArrived() {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 获取检查信息 - 完整详情
|
|
|
+ * 获取检查信息 - 完整详情(未曝光)
|
|
|
+ *
|
|
|
+ * @description 根据study_id获取完整的检查详细信息,所有images为未曝光状态
|
|
|
+ * @method GET
|
|
|
+ * @url /dr/api/v1/auth/study/{id}
|
|
|
+ * @access 需要认证
|
|
|
+ *
|
|
|
+ * @param {string} studyId - 检查ID(study_id),路径参数
|
|
|
+ *
|
|
|
+ * @returns {Object} data - 完整的检查详细信息,包含未曝光的series和images
|
|
|
+ *
|
|
|
+ * @example
|
|
|
+ * mockGetStudyDetailsUnexposed('250929163817805');
|
|
|
+ * cy.wait('@getStudyDetailsUnexposed');
|
|
|
+ *
|
|
|
+ * @see docs/测试/进入检查功能测试方案.md
|
|
|
+ */
|
|
|
+export function mockGetStudyDetailsUnexposed(studyId: string) {
|
|
|
+ cy.intercept('GET', `/dr/api/v1/auth/study/${studyId}`, {
|
|
|
+ statusCode: 200,
|
|
|
+ body: {
|
|
|
+ code: "0x000000",
|
|
|
+ description: "成功",
|
|
|
+ solution: "",
|
|
|
+ data: {
|
|
|
+ "@type": "type.googleapis.com/dr.study.Study",
|
|
|
+ study_instance_uid: "2.25.156.999999.0000.1.2.8323328.269954.1759135097.323784",
|
|
|
+ study_id: studyId,
|
|
|
+ public_study_id: "",
|
|
|
+ specific_character_set: "ISO_IR 192",
|
|
|
+ accession_number: "ACC0012345",
|
|
|
+ ref_physician: "Dr. Smith (Vet)",
|
|
|
+ patient_id: "PET007",
|
|
|
+ patient_name: "Buddy (Dog)",
|
|
|
+ patient_english_name: "Buddy en",
|
|
|
+ patient_former_name: "Buddy f",
|
|
|
+ patient_size: "Large",
|
|
|
+ other_patient_ids: "",
|
|
|
+ other_patient_names: "",
|
|
|
+ patient_age: "008Y",
|
|
|
+ patient_dob: "2025-06-10T03:12:36.181739Z",
|
|
|
+ patient_sex: "M",
|
|
|
+ sex_neutered: "",
|
|
|
+ pregnancy_status: "",
|
|
|
+ patient_state: "",
|
|
|
+ admitting_time: null,
|
|
|
+ priority: "",
|
|
|
+ reg_source: "",
|
|
|
+ study_description: "",
|
|
|
+ study_start_datetime: "2025-09-29T08:38:17.283651Z",
|
|
|
+ study_end_datetime: null,
|
|
|
+ scheduled_procedure_step_start_date: null,
|
|
|
+ performed_physician: "",
|
|
|
+ study_lock: "Unlocked",
|
|
|
+ folder_path: "",
|
|
|
+ operator_name: "OP987",
|
|
|
+ modality: "DX",
|
|
|
+ weight: 25,
|
|
|
+ thickness: 15,
|
|
|
+ length: 60,
|
|
|
+ patient_type: "Human",
|
|
|
+ study_type: "Normal",
|
|
|
+ owner_name: "owner1",
|
|
|
+ chip_number: "CHIP123456789",
|
|
|
+ variety: "Golden Retriever",
|
|
|
+ is_anaesthesia: true,
|
|
|
+ is_sedation: true,
|
|
|
+ mwl: "",
|
|
|
+ is_exported: false,
|
|
|
+ is_edited: false,
|
|
|
+ is_appended: false,
|
|
|
+ department: "",
|
|
|
+ mapped_status: false,
|
|
|
+ qc_result: false,
|
|
|
+ comment: "未曝光测试数据",
|
|
|
+ study_status: "Arrived",
|
|
|
+ sort: 0,
|
|
|
+ product: "DROS",
|
|
|
+ create_time: "2025-09-29T08:38:17.353598Z",
|
|
|
+ series: [
|
|
|
+ {
|
|
|
+ series_instance_uid: "2.25.156.999999.0000.1.3.8323328.269954.1759135097.323785",
|
|
|
+ study_instance_uid: "2.25.156.999999.0000.1.2.8323328.269954.1759135097.323784",
|
|
|
+ study_id: studyId,
|
|
|
+ procedure_id: "P0-0002",
|
|
|
+ patient_type: "Human",
|
|
|
+ body_part: "Human_SKULL",
|
|
|
+ performed_datetime: null,
|
|
|
+ performed_protocol_code_meaning: "颅骨前后位 + 侧位",
|
|
|
+ performed_protocol_code_value: "P0-0002",
|
|
|
+ sort: 1,
|
|
|
+ product: "DROS",
|
|
|
+ is_pre_install: true,
|
|
|
+ create_time: "2025-09-29T08:38:17.359308Z",
|
|
|
+ images: [
|
|
|
+ {
|
|
|
+ sop_instance_uid: "2.25.156.999999.0000.1.4.8323328.269954.1759135097.323786",
|
|
|
+ series_instance_uid: "2.25.156.999999.0000.1.3.8323328.269954.1759135097.323785",
|
|
|
+ study_instance_uid: "2.25.156.999999.0000.1.2.8323328.269954.1759135097.323784",
|
|
|
+ secondary_sop_uid: "",
|
|
|
+ study_id: studyId,
|
|
|
+ view_id: "View_DX_T_A_SK_AP_00",
|
|
|
+ view_description: "颅骨前后位",
|
|
|
+ patient_type: "Human",
|
|
|
+ body_part_id: "Human_SKULL",
|
|
|
+ anatomic_region: "Skull",
|
|
|
+ image_type: "expose",
|
|
|
+ image_file_path: "",
|
|
|
+ image_file: "",
|
|
|
+ thumbnail_file: "",
|
|
|
+ acquisition_mode: "RAD",
|
|
|
+ acquisition_context: null,
|
|
|
+ img_proc_context: null,
|
|
|
+ comment: "",
|
|
|
+ expose_status: "Unexposed",
|
|
|
+ expose_time: null,
|
|
|
+ judged_status: "NotJudged",
|
|
|
+ send_status: "Unsent",
|
|
|
+ export_status: "NotExported",
|
|
|
+ storage_status: "NotSaved",
|
|
|
+ ticket: "",
|
|
|
+ sort: 1,
|
|
|
+ product: "DROS",
|
|
|
+ is_pre_install: true,
|
|
|
+ create_time: "2025-09-29T08:38:17.361002Z"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ sop_instance_uid: "2.25.156.999999.0000.1.4.8323328.269954.1759135097.323787",
|
|
|
+ series_instance_uid: "2.25.156.999999.0000.1.3.8323328.269954.1759135097.323785",
|
|
|
+ study_instance_uid: "2.25.156.999999.0000.1.2.8323328.269954.1759135097.323784",
|
|
|
+ secondary_sop_uid: "",
|
|
|
+ study_id: studyId,
|
|
|
+ view_id: "View_DX_T_A_SK_LAT_00",
|
|
|
+ view_description: "颅骨左侧位",
|
|
|
+ patient_type: "Human",
|
|
|
+ body_part_id: "Human_SKULL",
|
|
|
+ anatomic_region: "Skull",
|
|
|
+ image_type: "expose",
|
|
|
+ image_file_path: "",
|
|
|
+ image_file: "",
|
|
|
+ thumbnail_file: "",
|
|
|
+ acquisition_mode: "RAD",
|
|
|
+ acquisition_context: null,
|
|
|
+ img_proc_context: null,
|
|
|
+ comment: "",
|
|
|
+ expose_status: "Unexposed",
|
|
|
+ expose_time: null,
|
|
|
+ judged_status: "NotJudged",
|
|
|
+ send_status: "Unsent",
|
|
|
+ export_status: "NotExported",
|
|
|
+ storage_status: "NotSaved",
|
|
|
+ ticket: "",
|
|
|
+ sort: 2,
|
|
|
+ product: "DROS",
|
|
|
+ is_pre_install: true,
|
|
|
+ create_time: "2025-09-29T08:38:17.362195Z"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }).as('getStudyDetailsUnexposed');
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 获取检查信息 - 完整详情(已曝光)
|
|
|
+ *
|
|
|
+ * @description 根据study_id获取完整的检查详细信息,所有images为已曝光状态
|
|
|
+ * @method GET
|
|
|
+ * @url /dr/api/v1/auth/study/{id}
|
|
|
+ * @access 需要认证
|
|
|
+ *
|
|
|
+ * @param {string} studyId - 检查ID(study_id),路径参数
|
|
|
+ *
|
|
|
+ * @returns {Object} data - 完整的检查详细信息,包含已曝光的series和images
|
|
|
+ *
|
|
|
+ * @example
|
|
|
+ * mockGetStudyDetailsExposed('250929163817805');
|
|
|
+ * cy.wait('@getStudyDetailsExposed');
|
|
|
+ *
|
|
|
+ * @see docs/测试/进入检查功能测试方案.md
|
|
|
+ */
|
|
|
+export function mockGetStudyDetailsExposed(studyId: string) {
|
|
|
+ cy.intercept('GET', `/dr/api/v1/auth/study/${studyId}`, {
|
|
|
+ statusCode: 200,
|
|
|
+ body: {
|
|
|
+ code: "0x000000",
|
|
|
+ description: "成功",
|
|
|
+ solution: "",
|
|
|
+ data: {
|
|
|
+ "@type": "type.googleapis.com/dr.study.Study",
|
|
|
+ study_instance_uid: "2.25.156.999999.0000.1.2.8323328.269954.1759135097.323784",
|
|
|
+ study_id: studyId,
|
|
|
+ public_study_id: "",
|
|
|
+ specific_character_set: "ISO_IR 192",
|
|
|
+ accession_number: "ACC0012345",
|
|
|
+ ref_physician: "Dr. Smith (Vet)",
|
|
|
+ patient_id: "PET007",
|
|
|
+ patient_name: "Buddy (Dog)",
|
|
|
+ patient_english_name: "Buddy en",
|
|
|
+ patient_former_name: "Buddy f",
|
|
|
+ patient_size: "Large",
|
|
|
+ other_patient_ids: "",
|
|
|
+ other_patient_names: "",
|
|
|
+ patient_age: "008Y",
|
|
|
+ patient_dob: "2025-06-10T03:12:36.181739Z",
|
|
|
+ patient_sex: "M",
|
|
|
+ sex_neutered: "",
|
|
|
+ pregnancy_status: "",
|
|
|
+ patient_state: "",
|
|
|
+ admitting_time: null,
|
|
|
+ priority: "",
|
|
|
+ reg_source: "",
|
|
|
+ study_description: "",
|
|
|
+ study_start_datetime: "2025-09-29T08:38:17.283651Z",
|
|
|
+ study_end_datetime: null,
|
|
|
+ scheduled_procedure_step_start_date: null,
|
|
|
+ performed_physician: "",
|
|
|
+ study_lock: "Unlocked",
|
|
|
+ folder_path: "",
|
|
|
+ operator_name: "OP987",
|
|
|
+ modality: "DX",
|
|
|
+ weight: 25,
|
|
|
+ thickness: 15,
|
|
|
+ length: 60,
|
|
|
+ patient_type: "Human",
|
|
|
+ study_type: "Normal",
|
|
|
+ owner_name: "owner1",
|
|
|
+ chip_number: "CHIP123456789",
|
|
|
+ variety: "Golden Retriever",
|
|
|
+ is_anaesthesia: true,
|
|
|
+ is_sedation: true,
|
|
|
+ mwl: "",
|
|
|
+ is_exported: false,
|
|
|
+ is_edited: false,
|
|
|
+ is_appended: false,
|
|
|
+ department: "",
|
|
|
+ mapped_status: false,
|
|
|
+ qc_result: false,
|
|
|
+ comment: "已曝光测试数据",
|
|
|
+ study_status: "Completed",
|
|
|
+ sort: 0,
|
|
|
+ product: "DROS",
|
|
|
+ create_time: "2025-09-29T08:38:17.353598Z",
|
|
|
+ series: [
|
|
|
+ {
|
|
|
+ series_instance_uid: "2.25.156.999999.0000.1.3.8323328.269954.1759135097.323785",
|
|
|
+ study_instance_uid: "2.25.156.999999.0000.1.2.8323328.269954.1759135097.323784",
|
|
|
+ study_id: studyId,
|
|
|
+ procedure_id: "P0-0002",
|
|
|
+ patient_type: "Human",
|
|
|
+ body_part: "Human_SKULL",
|
|
|
+ performed_datetime: "2025-09-29T09:00:00.000000Z",
|
|
|
+ performed_protocol_code_meaning: "颅骨前后位 + 侧位",
|
|
|
+ performed_protocol_code_value: "P0-0002",
|
|
|
+ sort: 1,
|
|
|
+ product: "DROS",
|
|
|
+ is_pre_install: true,
|
|
|
+ create_time: "2025-09-29T08:38:17.359308Z",
|
|
|
+ images: [
|
|
|
+ {
|
|
|
+ sop_instance_uid: "2.25.156.999999.0000.1.4.8323328.269954.1759135097.323786",
|
|
|
+ series_instance_uid: "2.25.156.999999.0000.1.3.8323328.269954.1759135097.323785",
|
|
|
+ study_instance_uid: "2.25.156.999999.0000.1.2.8323328.269954.1759135097.323784",
|
|
|
+ secondary_sop_uid: "",
|
|
|
+ study_id: studyId,
|
|
|
+ view_id: "View_DX_T_A_SK_AP_00",
|
|
|
+ view_description: "颅骨前后位",
|
|
|
+ patient_type: "Human",
|
|
|
+ body_part_id: "Human_SKULL",
|
|
|
+ anatomic_region: "Skull",
|
|
|
+ image_type: "expose",
|
|
|
+ image_file_path: "/path/to/image1.dcm",
|
|
|
+ image_file: "/path/to/image1.dcm",
|
|
|
+ thumbnail_file: "/path/to/image1_thumb.jpg",
|
|
|
+ acquisition_mode: "RAD",
|
|
|
+ acquisition_context: null,
|
|
|
+ img_proc_context: null,
|
|
|
+ comment: "",
|
|
|
+ expose_status: "Exposed",
|
|
|
+ expose_time: "2025-09-29T09:00:00.000000Z",
|
|
|
+ judged_status: "NotJudged",
|
|
|
+ send_status: "Unsent",
|
|
|
+ export_status: "NotExported",
|
|
|
+ storage_status: "Saved",
|
|
|
+ ticket: "",
|
|
|
+ sort: 1,
|
|
|
+ product: "DROS",
|
|
|
+ is_pre_install: true,
|
|
|
+ create_time: "2025-09-29T08:38:17.361002Z"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ sop_instance_uid: "2.25.156.999999.0000.1.4.8323328.269954.1759135097.323787",
|
|
|
+ series_instance_uid: "2.25.156.999999.0000.1.3.8323328.269954.1759135097.323785",
|
|
|
+ study_instance_uid: "2.25.156.999999.0000.1.2.8323328.269954.1759135097.323784",
|
|
|
+ secondary_sop_uid: "",
|
|
|
+ study_id: studyId,
|
|
|
+ view_id: "View_DX_T_A_SK_LAT_00",
|
|
|
+ view_description: "颅骨左侧位",
|
|
|
+ patient_type: "Human",
|
|
|
+ body_part_id: "Human_SKULL",
|
|
|
+ anatomic_region: "Skull",
|
|
|
+ image_type: "expose",
|
|
|
+ image_file_path: "/path/to/image2.dcm",
|
|
|
+ image_file: "/path/to/image2.dcm",
|
|
|
+ thumbnail_file: "/path/to/image2_thumb.jpg",
|
|
|
+ acquisition_mode: "RAD",
|
|
|
+ acquisition_context: null,
|
|
|
+ img_proc_context: null,
|
|
|
+ comment: "",
|
|
|
+ expose_status: "Exposed",
|
|
|
+ expose_time: "2025-09-29T09:00:30.000000Z",
|
|
|
+ judged_status: "NotJudged",
|
|
|
+ send_status: "Unsent",
|
|
|
+ export_status: "NotExported",
|
|
|
+ storage_status: "Saved",
|
|
|
+ ticket: "",
|
|
|
+ sort: 2,
|
|
|
+ product: "DROS",
|
|
|
+ is_pre_install: true,
|
|
|
+ create_time: "2025-09-29T08:38:17.362195Z"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }).as('getStudyDetailsExposed');
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 获取检查信息 - 完整详情(通用,保持向后兼容)
|
|
|
*
|
|
|
* @description 根据study_id获取完整的检查详细信息,包含series和images
|
|
|
* @method GET
|