<commit_before>.. _permittedvaluegroup:
Permitted Value Group
=====================

Definition
----------
A permitted value group (PVG) is a set of :ref:`Permitted Values <permittedvalue>`.
PVGS are defined as in the admin interface by navigating to "Home >> Rdrf >> Cde Permitted Value Groups".

Click "Add cde permitted value group" button to create a new one.

A value group has a code which  must be a unique non blank string value.

Once a permitted value group has been created, add :ref:`permitted values <permittedvalue>` to it.

Examples
--------
The decoupling of permitted value groups from cdes that make use of them allows different attributes 

( e.g. shoe size , hat size ) to share the same value ranges ( E.g. small, medium, large ) as is done
in NINDS http://www.commondataelements.ninds.nih.gov )


<commit_msg>permittedvaluegroups.rst edited online with Bitbucket<commit_after>.. _permittedvaluegroup:

Permissible Values and Permitted Value Groups
===========================================

Permissible Values
------------------

A permissible value (PV) is just a single allowed value that comprises part of a value range.

Examples
--------

If the associated value range was intended to be a size range then examples might be

* small
* medium
* large

In the GUI, individual permissible values will appear as selectable options in a drop down list.



Permitted Value Group
---------------------
A permitted value group (PVG) is a set of permissible values. A PVG must be defined first, with PVs then defined and assigned to a PVG.
PVGS are defined by navigating to "Permissible Value Groups" under "Settings".

Click "Add" to create a new PVG.

A value group has a code which must be a unique non blank string value.

Once a permitted value group has been created, add permissible values to it.

Examples
--------
The decoupling of permitted value groups from cdes that make use of them allows different attributes 

(e.g. shoe size , hat size) to share the same value ranges (E.g. small, medium, large) as is done
in NINDS http://www.commondataelements.ninds.nih.gov )



{'fraction_non_alphanumeric': 0.1142313184198001, 'fraction_numerical': 0.0, 'mean_word_length': 3.61978021978022, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5873955', 'n_tokens_mistral': 581, 'n_tokens_neox': 537, 'n_words': 294}