Skip to main content

Code ๐Ÿ”ฌ

Maturity

Official URL: https://bcgov.github.io/nr-pies/docs/spec/element/data/code

JSON Schema URL: https://raw.githubusercontent.com/bcgov/nr-pies/refs/heads/main/docs/spec/element/data/code.schema.json

Indicates that the value is taken from a set of controlled strings defined elsewhere. Technically, a code is restricted to a string which has at least one character and no leading or trailing whitespace, and where there is no whitespace other than single spaces in the contents.

Scopeโ€‹

This data type is intended to represent a finite set of controlled strings which represents a specific, discrete concept, element or idea.

Structureโ€‹

AttributeValueDescription & Constraints
TypestringShall be represented in UTF-8 format, as specified in RFC 3629, which is an extension of the ISO 10646-1 standard.
Regex Pattern^[^\s]+( [^\s]+)*$String which has at least one character and no leading or trailing whitespace, and where there is no whitespace other than single spaces in the contents.

Specificationโ€‹

Loading ....

Implementation Notesโ€‹

This data structure is mainly meant to illustrate and restrict what is allowed to be encoded for an arbitrary code value. This is meant to only be used as a semantic reference point. This data structure is loosely inspired by the FHIR Code Type.

Referencesโ€‹