instanceSelector

An inline constructor for a named structured type. Specifies the type by name and provides element values using instance element selectors. An empty instance is expressed with a bare colon inside the braces.

Examples

FHIR Quantity instance

FHIR.Quantity { value: 5.0, unit: 'mg' }

FHIR CodeableConcept instance

FHIR.CodeableConcept {
  coding: { FHIR.Coding { system: 'http://snomed.info/sct', code: '44054006' } }
}

Empty instance

FHIR.Quantity { : }
Railroad Diagram
100%
namedTypeSpecifier { : instanceElementSelector , }

scroll to zoom · drag to pan · click green rules or blue tokens to navigate

EBNF

instanceSelector
  : namedTypeSpecifier '{' (':' | (instanceElementSelector (',' instanceElementSelector)*)) '}'
  ;

Used In