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:After:
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
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,
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
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: After:
Improvements
Bugfix
Deployment changes