CaseSpecificationType
---------------------

Case specification allows different unique identifiers to be used based on the value of an identified variable. In some cases the value of a variable (such as a geographic level) results in a different set of variables required to identify a unique case. Case specification is used to capture these combinations. For example: a file containing State, County, and Place records. The unique identifier for a State requires a combination of GeoLevel=State and the variable STATE. Place would require a combination of GeoLevel=Place and the variables STATE and PLACE.

Properties
~~~~~~~~~~

.. csv-table::
   :header: "Name","Type","","Description"
   :widths: 15,10,5,100

   "ConditionalVariableReference",":doc:`/item-types/Variable/index`","0..1","References the variable containing the conditional content, provides the value of the condition."
   "ConditionalVariableValue","`string <https://cogsdata.org/docs/modeler-guide/primitive-types/#string>`_","0..1","Use to specify the value of variable for which this is a case specification (i.e., GeoLevel in the example for Case Specification)."
   "VariableReference",":doc:`/item-types/Variable/index`","1..n","The variables required to provide a unique identification when the conditional variable contains the stated value."


Relationships
~~~~~~~~~~~~~
The following identified item types reference this type.

.. container:: image

   |stub|

.. |stub| image:: ../../images/CaseSpecificationType.svg