Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submission error: ValueError: 'patient_care_' is not a valid SampleType #149

Closed
alexiswl opened this issue Oct 30, 2023 · 0 comments · Fixed by #150 or #152
Closed

Submission error: ValueError: 'patient_care_' is not a valid SampleType #149

alexiswl opened this issue Oct 30, 2023 · 0 comments · Fixed by #150 or #152
Assignees
Labels
bug Something isn't working

Comments

@alexiswl
Copy link
Member

Submission body was:

{
  "subject_id": "SBJ04394",
  "library_id": "L2301285",
  "project_name": "Nominator",
  "external_specimen_id": "Nom04076_26.10.17",
  "mrn": "Nom04076",
  "sample_type": "patient_care_sample",
  "panel_type": "main",
  "is_identified": "deidentified",
  "indication": "NA",
  "disease_id": 285645000,
  "disease_name": "Disseminated malignancy of unknown primary",
  "requesting_physicians_first_name": "Sean",
  "requesting_physicians_last_name": "Grimmond",
  "specimen_type": 122561005,
  "date_accessioned": "2023-10-30T00:02:20+00:00",
  "date_collected": "2023-10-30T00:00:00+00:00",
  "date_received": "2023-10-30T00:00:00+00:00",
  "gender": "unknown",
  "ethnicity": "unknown",
  "race": "unknown",
  "hospital_number": 99,
  "accession_number": "SBJ04394_L2301285_001",
  "first_name": "John",
  "last_name": "Doe",
  "date_of_birth": "1970-01-01T00:00:00+00:00"
}

Cloudwatch error shows

<html>
<body>
<!--StartFragment-->

File "/home/cttso_ica_to_pieriandx_user/.conda/envs/cttso-ica-to-pieriandx/lib/python3.11/site-packages/cttso_ica_to_pieriandx-1.0-py3.11.egg/utils/accession.py", line 452, in <lambda>
--
SampleType(
File "/home/cttso_ica_to_pieriandx_user/.conda/envs/cttso-ica-to-pieriandx/lib/python3.11/enum.py", line 695, in __call__
return cls.__new__(cls, value)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/cttso_ica_to_pieriandx_user/.conda/envs/cttso-ica-to-pieriandx/lib/python3.11/enum.py", line 1111, in __new__
raise ve_exc
ValueError: 'patient_care_' is not a valid SampleType

<!--EndFragment-->
</body>
</html>

Likely error to do with removing _sample from name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant