AllenNeuralDynamics / aind-metadata-service

Service to retrieve Labtracks/Sharepoint info using a REST API
MIT License
3 stars 1 forks source link

2023 Craniotomy workstation id is being pulled from injection workstation id #112

Closed jtyoung84 closed 1 year ago

jtyoung84 commented 1 year ago

Describe the bug When a cranitotomy procedure is constructed, the workstation id is being pulled from the injection workstation id instead of the headpost workstation id

To Reproduce Steps to reproduce the behavior:

  1. Go to unit tests and check list_item10 and mapped_list_item10
  2. Notice the workstation_id for the craniotomy procedure is null

Expected behavior The workstation id should be pulled from "HpWorkStation" field

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

mekhlakapoor commented 1 year ago

On the 2023 endpoint, workstation ID is based on the time of procedure (if it was "Initial Surgery" or "Followup Surgery", so it's not necessarily true that specific workstation id fields correlate with specific procedures.