Skip to content
New issue

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

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

Already on GitHub? # to your account

Chore/update get clinical trial metadata function #1540

Merged
merged 12 commits into from
Jun 10, 2024

Conversation

jarvisraymond-uchicago
Copy link
Contributor

@jarvisraymond-uchicago jarvisraymond-uchicago commented May 23, 2024

Link to JIRA ticket if there is one:
https://ctds-planx.atlassian.net/browse/HP-1510

Dev Notes
Validated by checking metadata after submission for study HDP01285,

Quantifying How Cocaine Users Respond to Fentanyl Contamination in Cocaine.

The new API endpoint for this study using NCT05045625 and clinicalTrialFieldsToFetch is:
https://clinicaltrials.gov/api/v2/studies/NCT05045625?fields=NCTId|OfficialTitle|BriefTitle|Acronym|StudyType|OverallStatus|StartDate|StartDateType|CompletionDate|CompletionDateType|IsFDARegulatedDrug|IsFDARegulatedDevice|IsPPSD|BriefSummary|DetailedDescription|Condition|DesignAllocation|DesignPrimaryPurpose|Phase|DesignInterventionModel|EnrollmentCount|EnrollmentType|DesignObservationalModel|InterventionType|PrimaryOutcomeMeasure|SecondaryOutcomeMeasure|OtherOutcomeMeasure|Gender|GenderBased|MaximumAge|MinimumAge|IPDSharing|IPDSharingTimeFrame|IPDSharingAccessCriteria|IPDSharingURL|SeeAlsoLinkURL|AvailIPDURL|AvailIPDId|AvailIPDComment

Using the new endpoint, after submission the MDS metadata response now contains values from new endpoint under the key "clinicaltrials_gov"
https://preprod.healdata.org/mds/metadata/HDP01285
image

Loading Bug
If the user enters inputs data into the form before the studies are available, those inputs are cleared once the studies become available due to the form re-rendering. This has been addressed by adding a spinner until the studies are available, preventing the user from inputting data.
Before:
output
After:
output

Improvements

  • Updates deprecated "classic" endpoint for ClinicalTrials.gov and replaces it with new ClinicalTrials.gov API v2.0

Bugfix

  • Adds spinner until studies are available, preventing user from entering information before form is ready for it

Deployment changes

@jarvisraymond-uchicago jarvisraymond-uchicago marked this pull request as ready for review May 24, 2024 14:38
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants