From ab775d959b103db1a7689984a0e4413003b9fabf Mon Sep 17 00:00:00 2001 From: Vittorio Meloni Date: Mon, 21 Oct 2024 10:28:59 +0200 Subject: [PATCH] feat: change study column name to studies --- .../components/report-components/CollectionReportInfoCard.vue | 2 +- apps/directory/src/functions/viewmodelMapper.js | 4 ++-- .../directory/src/property-config/initialCollectionColumns.js | 4 ++-- data/biobank-directory/demo/Collections.csv | 2 +- data/biobank-directory/molgenis.csv | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/directory/src/components/report-components/CollectionReportInfoCard.vue b/apps/directory/src/components/report-components/CollectionReportInfoCard.vue index 6d31ef1e99..d19723646e 100644 --- a/apps/directory/src/components/report-components/CollectionReportInfoCard.vue +++ b/apps/directory/src/components/report-components/CollectionReportInfoCard.vue @@ -105,7 +105,7 @@
Name: {{ study.title }} diff --git a/apps/directory/src/functions/viewmodelMapper.js b/apps/directory/src/functions/viewmodelMapper.js index 1beeb1c68c..d81b0dd593 100644 --- a/apps/directory/src/functions/viewmodelMapper.js +++ b/apps/directory/src/functions/viewmodelMapper.js @@ -346,8 +346,8 @@ export const collectionReportInformation = (collection) => { collectionReport.certifications = mapQualityStandards(collection.quality); } - if (collection.study) { - collectionReport.studies = collection.study.map((study) => { + if (collection.studies) { + collectionReport.studies = collection.studies.map((study) => { return { id: study.id, title: study.title, diff --git a/apps/directory/src/property-config/initialCollectionColumns.js b/apps/directory/src/property-config/initialCollectionColumns.js index 2bb36ba2eb..ec115e3b26 100644 --- a/apps/directory/src/property-config/initialCollectionColumns.js +++ b/apps/directory/src/property-config/initialCollectionColumns.js @@ -107,8 +107,8 @@ const initialCollectionColumns = [ "sub_collections.withdrawn", "collaboration_commercial", "collaboration_non_for_profit", - "study.id", - "study.title", + "studies.id", + "studies.title", ...ContactInfoColumns, ...HeadInfoColumns, ], diff --git a/data/biobank-directory/demo/Collections.csv b/data/biobank-directory/demo/Collections.csv index 48aa203df4..edb9db446b 100644 --- a/data/biobank-directory/demo/Collections.csv +++ b/data/biobank-directory/demo/Collections.csv @@ -1,4 +1,4 @@ -id,name,acronym,description,url,location,country,latitude,longitude,head,contact,national_node,withdrawn,parent_collection,biobank,biobank_label,network,combined_network,also_known,type,data_categories,order_of_magnitude,size,categories,timestamp,number_of_donors,order_of_magnitude_donors,sex,diagnosis_available,age_low,age_high,age_unit,materials,storage_temperatures,body_part_examined,imaging_modality,image_dataset_type,collaboration_commercial,collaboration_non_for_profit,data_use,commercial_use,access_fee,access_joint_project,access_description,access_uri,sop,combined_quality,study +id,name,acronym,description,url,location,country,latitude,longitude,head,contact,national_node,withdrawn,parent_collection,biobank,biobank_label,network,combined_network,also_known,type,data_categories,order_of_magnitude,size,categories,timestamp,number_of_donors,order_of_magnitude_donors,sex,diagnosis_available,age_low,age_high,age_unit,materials,storage_temperatures,body_part_examined,imaging_modality,image_dataset_type,collaboration_commercial,collaboration_non_for_profit,data_use,commercial_use,access_fee,access_joint_project,access_description,access_uri,sop,combined_quality,studies bbmri-eric:ID:DE_biobank1:collection:coll1,Collection1 of biobank1,coll1,The first collection of biobank1,,Berlin,DE,,,bbmri-eric:contactID:DE_collection1,bbmri-eric:contactID:DE_collection1,DE,false,,bbmri-eric:ID:DE_biobank1,Biobank1,bbmri-eric:networkID:DE_nw_coll1,"bbmri-eric:networkID:DE_network1,bbmri-eric:networkID:DE_nw_coll1",bbmri-eric:akiID:DE_00001,"COHORT,RD","MEDICAL_RECORDS,BLOOD",3,1333,"rare_disease,oncology",,600,2,"MALE,NEUTERED_MALE","ORPHA:100001,ORPHA:101009",2,88,YEAR,"DNA,PERIPHERAL_BLOOD_CELLS",temperature2to10,T-04000,BDUS,1.2.840.10008.5.1.4.1.1.104.2,true,true,DUO_0000003,true,"samples,data,images","data,images",,,"sample_transport_sop,data_processing_sop",accredited,bbmri-eric:studyID:DE_112233 bbmri-eric:ID:NL_biobank2:collection:coll2,The second collection of biobank2,coll2_bb2,This is the description of the second collection of biobank2,,Amsterdam,NL,,,bbmri-eric:contactID:head_coll2,bbmri-eric:contactID:NL_person1,NL,false,,bbmri-eric:ID:NL_biobank2,Biobank2,bbmri-eric:networkID:EU_network,bbmri-eric:networkID:EU_network,bbmri-eric:akiID:NL_00001,"CASE_CONTROL,QUALITY_CONTROL","BIOLOGICAL_SAMPLES,IMAGING_DATA,NATIONAL_REGISTRIES",4,11000,"covid19,paediatrics",,9000,3,FEMALE,"urn:miriam:icd:W00,ORPHA:3000",0,90,YEAR,"FECES,PATHOGEN,URINE",temperatureLN,T-58200,CR,1.2.840.10008.5.1.4.1.1.130,true,true,DUO_0000042,false,"samples,data,images","samples,data,images",Access is possible need to pay a fee,,"sample_processing_sop,sample_transport_sop,data_transport_sop,data_storage_sop",accredited, bbmri-eric:ID:NL_biobank2:collection:coll2a,Subcollection1,sub_col1,The first sub collection of collection2,,Amsterdam,NL,,,bbmri-eric:contactID:head_coll2,bbmri-eric:contactID:NL_person1,NL,false,bbmri-eric:ID:NL_biobank2:collection:coll2,bbmri-eric:ID:NL_biobank2,Biobank2,bbmri-eric:networkID:EU_network,bbmri-eric:networkID:EU_network,bbmri-eric:akiID:NL_00002,"CROSS_SECTIONAL,POPULATION_BASED","ANTIBODIES,PHYSIOLOGICAL_BIOCHEMICAL_MEASUREMENTS",2,589,covid19,,133,2,MALE,"ORPHA:1388,ORPHA:139552,urn:miriam:icd:A00.9",5,67,YEAR,"NASAL_SWAB,PLASMA","temperature2to10,temperature-18to-35",T-15710,BMD,1.2.840.10008.5.1.4.1.1.11.1,true,true,DUO_0000024,true,data,data,,,"sample_storage_sop,data_processing_sop,data_transport_sop,data_storage_sop",accredited, \ No newline at end of file diff --git a/data/biobank-directory/molgenis.csv b/data/biobank-directory/molgenis.csv index 0ddde7e1b6..7887562cdc 100644 --- a/data/biobank-directory/molgenis.csv +++ b/data/biobank-directory/molgenis.csv @@ -79,7 +79,7 @@ Collections,,biobank_label,Biobank Label,string,,true,,"Name of the biobank, to Collections,,network,Network,ref_array,,false,,"Reference to a network ID, to which the collection belongs to.",,Networks,,${name},,,,, Collections,,combined_network,Combined Network,ref_array,,false,,"Reference to one or more network IDs, to which the collection belongs directly or indirectly (i.e., either the collection is explicitly marked as part of the network or its biobank is).",,Networks,,${name},,,,, Collections,,also_known,Also Known In,ref_array,,false,,The collection also exists in …,,AlsoKnownIn,,${name_system},,,,, -Collections,,study,Study,ref_array,,false,,A link to studies during which the collection was generated,,Studies,,${title},,,,, +Collections,,studies,Studies,ref_array,,false,,A link to studies during which the collection was generated,,Studies,,${title},,,,, Collections,,characteristics,Characteristics,heading,,false,,Collection Characteristics,,,,,,,,, Collections,,type,Collection Types,ontology_array,,true,,Type(s) of the collection - MIABIS-2.0-19.,DirectoryOntologies,CollectionTypes,,${label},,,,, Collections,,data_categories,Data Categories,ontology_array,,true,,Denotes which types of data are available (MIABIS-2.0-13).,DirectoryOntologies,DataCategories,,${label},,,,, @@ -174,5 +174,5 @@ Studies,,age_high,Age High,int,,false,,Age of oldest sample donor at time of sam Studies,,age_unit,Age Unit,ontology,,false,,"Unit defining Age Low and Age High. Can be one of the following values: YEAR, MONTH, WEEK, DAY - MIABIS-2.0-08.",DirectoryOntologies,AgeUnits,,${label},,,,, Studies,,number_of_subjects,Number of subjects,int,,false,,"The number of subjects that participated to the study",,,,,,,,, Studies,,also_known,Also Known In,ref_array,,false,,The study also exists in …,,AlsoKnownIn,,${name_system},,,,, -Studies,,collections,Collections,refback,,false,true,,,Collections,study,,,,,, +Studies,,collections,Collections,refback,,false,true,,,Collections,studies,,,,,, Studies,,national_node,National Node,ref,,true,,The study originates from this national node.,,NationalNodes,,${description},,,,, \ No newline at end of file