Difference between revisions of "Creating an inherited codelist"
(→Annotations) |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Category:How_To]] | [[Category:How_To]] | ||
+ | [[Category:How_To V11]] | ||
=Overview= | =Overview= | ||
This time-saving feature allows you to inherit codes from another [[Codelists|Codelist]] rather than having to recreate codes that are already in the Registry. | This time-saving feature allows you to inherit codes from another [[Codelists|Codelist]] rather than having to recreate codes that are already in the Registry. | ||
Line 9: | Line 10: | ||
You can do this from either a new or an existing Codelist. In step 1 of the wizard on the right-hand side of the page, you will see the '''Inheritance''' buttons. | You can do this from either a new or an existing Codelist. In step 1 of the wizard on the right-hand side of the page, you will see the '''Inheritance''' buttons. | ||
− | [[File:IH0.PNG|600px]]<br> | + | [[File:IH0.PNG|Using Inheritance|600px]]<br> |
If the '''Add''' button is clicked, a list of Codelists will be displayed and you can select one or more to be used. | If the '''Add''' button is clicked, a list of Codelists will be displayed and you can select one or more to be used. | ||
− | [[File:IH3.PNG|1200px]]<br> | + | [[File:IH3.PNG|Chose a codelist|1200px]]<br> |
Having selected a Codelist, you will see the selection reflected in Step 1 of the Wizard. | Having selected a Codelist, you will see the selection reflected in Step 1 of the Wizard. | ||
− | [[File:IH1.PNG|600px]]<br> | + | [[File:IH1.PNG|Codelist Step 1|600px]]<br> |
=Step 2 - Adding new codes= | =Step 2 - Adding new codes= | ||
Line 24: | Line 25: | ||
'''Note''': If you add a code which has the name ID as one in the Inherited Codelist, the one that you add manually will be used when this Codelist is referenced by a Concept Scheme or a Data Structure. | '''Note''': If you add a code which has the name ID as one in the Inherited Codelist, the one that you add manually will be used when this Codelist is referenced by a Concept Scheme or a Data Structure. | ||
− | [[File:IH4.PNG|1200px]]<br> | + | [[File:IH4.PNG|Codelist - Step 4|1200px]]<br> |
=Viewing the whole Codelist= | =Viewing the whole Codelist= | ||
Line 30: | Line 31: | ||
From the Codelist page, if you select View you will be able to see all codes, both inherited and manually added. | From the Codelist page, if you select View you will be able to see all codes, both inherited and manually added. | ||
− | [[File:IH5.PNG|1200px]]<br> | + | [[File:IH5.PNG|Viewing a Codelist with Inherited Codes|1200px]]<br> |
=Other Features= | =Other Features= | ||
Line 40: | Line 41: | ||
==Annotations== | ==Annotations== | ||
− | The Inheritance is recorded as an [[Annotations|'''Annotation''']] and, as such would be treated as an Internal Setting when a structure is downloaded [https://fmrwiki.sdmxcloud.org/ | + | The Inheritance is recorded as an [[Annotations|'''Annotation''']] and, as such would be treated as an Internal Setting when a structure is downloaded [https://fmrwiki.sdmxcloud.org/Export_Structures as detailed in the Export Structures article.] |
The annotation type is '''EXTENDS''' as shown below. | The annotation type is '''EXTENDS''' as shown below. | ||
− | [[File:IH6.PNG|1200px]]<br> | + | [[File:IH6.PNG|Annotation type - extend|1200px]]<br> |
==Deleting Codelists== | ==Deleting Codelists== |
Latest revision as of 05:59, 5 September 2022
Contents
Overview
This time-saving feature allows you to inherit codes from another Codelist rather than having to recreate codes that are already in the Registry.
To do this:
Step 1 - Select an existing Codelist
You can do this from either a new or an existing Codelist. In step 1 of the wizard on the right-hand side of the page, you will see the Inheritance buttons.
If the Add button is clicked, a list of Codelists will be displayed and you can select one or more to be used.
Having selected a Codelist, you will see the selection reflected in Step 1 of the Wizard.
Step 2 - Adding new codes
This can be done in the usual way either via Step 2 of the Wizard (CSV import) or via Step 3 (Manual Editing). It is important to note that in the Codelist which is inheriting codes from another Codelist, only codes added will be displayed in the Wizard as shown in the example below (Step 4 of the Wizard).
Note: If you add a code which has the name ID as one in the Inherited Codelist, the one that you add manually will be used when this Codelist is referenced by a Concept Scheme or a Data Structure.
Viewing the whole Codelist
From the Codelist page, if you select View you will be able to see all codes, both inherited and manually added.
Other Features
Remove Inheritance
From Step 1 of the Codelist, select the one to be removed and click Remove.
Change order of Precedence
Use the Move up and Down buttons if you have more than 1 inherited Codelist and a code appears on both to set the order of precedence
Annotations
The Inheritance is recorded as an Annotation and, as such would be treated as an Internal Setting when a structure is downloaded as detailed in the Export Structures article.
The annotation type is EXTENDS as shown below.
Deleting Codelists
If the Codelist with Inheritances applied is deleted there are no other implications.
If the Codelist which has been used in an Inheritance is deleted, the codes that were in that Codelist will be copied to the Codelist which used them in an Inheritance.