From fa0aad489d47f733941ab80da31d947fab5f4947 Mon Sep 17 00:00:00 2001 From: Mingfei Shao Date: Tue, 28 May 2024 12:00:32 -0500 Subject: [PATCH] don't sync ct.gov metadata back from cedar --- files/scripts/healdata/heal-cedar-data-ingest.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/files/scripts/healdata/heal-cedar-data-ingest.py b/files/scripts/healdata/heal-cedar-data-ingest.py index 45098400f..bc35fe169 100644 --- a/files/scripts/healdata/heal-cedar-data-ingest.py +++ b/files/scripts/healdata/heal-cedar-data-ingest.py @@ -255,7 +255,6 @@ def get_related_studies(serial_num, guid, hostname): mds_res = mds_res[mds_record_guid] mds_cedar_register_data_body = {**mds_res} mds_discovery_data_body = {} - mds_clinical_trials = {} if mds_res["_guid_type"] == "discovery_metadata": print("Metadata is already registered. Updating MDS record") elif mds_res["_guid_type"] == "unregistered_discovery_metadata": @@ -268,10 +267,6 @@ def get_related_studies(serial_num, guid, hostname): ) continue - if "clinicaltrials_gov" in cedar_record: - mds_clinical_trials = cedar_record["clinicaltrials_gov"] - del cedar_record["clinicaltrials_gov"] - # some special handing for this field, because its parent will be deleted before we merging the CEDAR and MDS SLMD to avoid duplicated values cedar_record_other_study_websites = cedar_record.get( "metadata_location", {} @@ -361,11 +356,6 @@ def get_related_studies(serial_num, guid, hostname): ) mds_cedar_register_data_body["gen3_discovery"] = mds_discovery_data_body - if mds_clinical_trials: - mds_cedar_register_data_body["clinicaltrials_gov"] = { - **mds_cedar_register_data_body.get("clinicaltrials_gov", {}), - **mds_clinical_trials, - } mds_cedar_register_data_body["_guid_type"] = "discovery_metadata"