Import process creates the Cúram Taxonomy files using TaxonomyMapping.xml file. Cúram Taxonomy files (Refer to the Appendix B for the structure of these XML files) are as follows:
Currently TaxonomyMapping.xml contains the mapping information between AIRs taxonomy elements and Cúram Taxonomy files elements along with respective bonded java classes. If you want leverage the existing taxonomy functionality, you should map your elements to the respective elements defined in the TaxonomyMapping.xml file. Along with this mapping, you should also override the APPRESOURCE.dmx with your TaxonomyMapping.xml file location.
Following table provides the mapping of AIRs taxonomy elements with the respective Cúram Taxonomy files elements and their associated java classes in TaxonomyMapping.xml.
AIRS Taxonomy Element |
Description |
Cúram Taxonomy Element |
Cúram Taxonomy File |
Java Representation of the Element |
---|---|---|---|---|
taxonomy | Root element of taxonomy term | record | TaxonomyTerm.xml | curam.taxonomy.util.impl.Taxonomy |
name | Name of the taxonomy term | name | TaxonomyTerm.xml | java.lang.String |
definition | Definition of the taxonomy term | definition | TaxonomyTerm.xml | java.lang.String |
facet | Facet of the taxonomy term | facet | TaxonomyTerm.xml | java.lang.String |
comments | Detailed description of the taxonomy term | comments | TaxonomyTerm.xml | java.lang.String |
bibliographicReference | Bibliographic Reference of the taxonomy element | bibliographicReference | TaxonomyTerm.xml | java.lang.String |
createdDate | Creation date of the taxonomy term | createdDate | TaxonomyTerm.xml | java.lang.String |
lastModifiedDate | Last modified date of the taxonomy term | lastModifiedDate | TaxonomyTerm.xml | java.lang.String |
externalTerms | External System Classification terms associated with the taxonomy term | externalTerms | ExternalTerm.xml | curam.taxonomy.util.impl.ExternalTerm |
relatedConcepts | Related Concepts associated with the taxonomy term | relatedConcepts | RelatedConcept.xml | curam.taxonomy.util.impl.RelatedConcept |
useReferences | Alias names of the taxonomy term | useReferences | UseReference.xml | Alias names of the taxonomy term |
relatedTerms | Related Terms of the taxonomy term | relatedTerms | TaxonomyTerm.xml | java.lang.String |
oldCodes | Old codes associated with the taxonomy term | oldCodes | TaxonomyTerm.xml | java.lang.String |
Update the TaxonomyMapping.xml by replacing AIRS Taxonomy Elements with elements your Taxonomy xml file for creating Cúram Taxonomy files. These files will be used by Taxonomy-in-edit process to make changes to the content of xml files and Taxonomy Publish process to persist xml content to the relational tables.
Taxonomy Publish process uses the same mappings file for un-marshalling the XML content to java objects before persisting to the database. It persist the content of Cúram Taxonomy files to respective tables. Following table explains how content of different Cúram Taxonomy files is spawned across different tables:
Cúram Taxonomy file |
Entities |
---|---|
TaxonomyTerm.xml | TaxonomyTerm,TaxonomyTermNameLink,LocalizableText,TextTranslation,TaxonomyTermOldCode,RelatedTermLink,TaxonomyTermRelatedConcept |
ExternalTerm.xml | ExtSysClassification,ExtSysClassifnTermLink,LocalizableText,TextTranslation |
RelatedConcept.xml | RelatedConcept,RelatedConceptNameLink,LocalizableText,TextTranslation |
UseReference.xml | UseReference,LocalizableText,TextTranslation,UseReferenceNameLink |