How to Use the ID Elements with Complex-type Elements?

Many complex-type elements with an ID element also have a corresponding text element and/or a code element. The content of any element of type IDType is dependent on the context. Since ID is of type TextType, the actual identifier could be a name or a number. One can use the ID element, the text element, or both, depending on the business need. For example, for the case where one would like to use JurisdictionID with ID = 10, and to send “Maricopa” as the textual translation for that ID. So, one could decide to use for either a name or a number, depending on how one identifies the jurisdiction districts in the information sharing enterprise. If the problem is that one wants to include both the name and the number of the district in the jurisdiction, then could be used for the number and 

for the name (instead of adding an element to IDType for the name).

is defined as "A district in a jurisdiction." Another alternative is to use a code. The use case referred to here would often be solved with a code; in the enumeration the value would be "10" and the documentation (presumably available to sender and receiver) would be "Maricopa". For this example, adding a local extension something like (with a corresponding enumeration) would work. The advantage of this method is that ties the code to its description in the schema (so you won't have a conflict if is "Maricopa" but is "9"). The disadvantage of this method is that you are not actually sending the name (the receiving system must refer to the enumeration schema), and in this case you have to extend the GJXDM.