Skip to content

Commit

Permalink
don't sync ct.gov metadata back from cedar
Browse files Browse the repository at this point in the history
  • Loading branch information
mfshao committed May 28, 2024
1 parent 77506c8 commit fa0aad4
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions files/scripts/healdata/heal-cedar-data-ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand All @@ -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", {}
Expand Down Expand Up @@ -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"

Expand Down

0 comments on commit fa0aad4

Please sign in to comment.