cancerDHC / ccdh-terminology-service

CCDH Terminology and Mapping Service
3 stars 4 forks source link

Bug: Fix misspelling: `HarmoniznedAttribute` --> `HarmonizedAttribute` #142

Closed joeflack4 closed 2 years ago

joeflack4 commented 2 years ago

Description

@turbomam Discovered that in the Neo4J database, some of the nodes are misspelled. I've traced down the issue to the ccdh-init.cypher file:

DROP INDEX node_entity_idx IF EXISTS;
CREATE INDEX node_entity_idx FOR (n:NodeAttribute) ON (n.entity);

DROP INDEX node_attribute_idx IF EXISTS;
CREATE INDEX node_attribute_idx FOR (n:NodeAttribute) ON (n.attribute);

DROP INDEX node_system_idx IF EXISTS;
CREATE INDEX node_system_idx FOR (n:NodeAttribute) ON (n.system);

DROP INDEX harmonizned_system_idx IF EXISTS;
CREATE INDEX harmonizned_system_idx FOR (n:HarmonizedAttribute) ON (n.system);

DROP INDEX harmonizned_entity_idx IF EXISTS;
CREATE INDEX harmonizned_entity_idx FOR (n:HarmoniznedAttribute) ON (n.entity);

DROP INDEX harmonized_attribute_idx IF EXISTS;
CREATE INDEX harmonized_attribute_idx FOR (n:HarmoniznedAttribute) ON (n.attribute);

DROP INDEX permissible_value_pref_label_idx IF EXISTS;
CREATE INDEX permissible_value_pref_label_idx FOR (n:PermissibleValue) ON (n.pref_label);
joeflack4 commented 2 years ago

@turbomam If anything you want to add, feel free.

joeflack4 commented 2 years ago

Turned out to be related to #129

joeflack4 commented 2 years ago

Fixed by: https://github.com/cancerDHC/ccdh-terminology-service/commit/6337dd3c6e64236f44aa685259b1bca4ac0d477d