Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ParseConformance

Hierarchy

  • ParseConformance

Index

Constructors

constructor

  • new ParseConformance(loadCached?: boolean, version?: string): ParseConformance
  • Class responsible for parsing StructureDefinition and ValueSet resources into bare-minimum information needed for serialization and validation.

    Parameters

    • Optional loadCached: boolean
    • Optional version: string

    Returns ParseConformance

Properties

Private codeSystems

codeSystems: any[]

parsedStructureDefinitions

parsedStructureDefinitions: {}

Type declaration

parsedValueSets

parsedValueSets: {}

Type declaration

structureDefinitions

structureDefinitions: any[] = []

Private Readonly version

version: string

Methods

Private ensurePropertyMetaData

isBaseProfile

  • isBaseProfile(url: string): boolean

loadCodeSystem

  • loadCodeSystem(codeSystem: any): void

parseBundle

  • parseBundle(bundle: any): void
  • Parses any ValueSet and StructureDefinition resources in the bundle and stores them in the parser for use by serialization and validation logic.

    Parameters

    • bundle: any

      The bundle to parse

    Returns void

parseStructureDefinition

  • Parses a StructureDefinition resource, reading only properties necessary for the FHIR.js module to perform its functions. structureDefinition must have a unique id, or it will overwrite other parsed structure definitions stored in memory

    Parameters

    • structureDefinition: any

      The StructureDefinition to parse and load into memory

    Returns ParsedStructure

parseValueSet

  • Parses the ValueSet resource. Parses only bare-minimum information needed for validation against value sets. Currently only supports parsing 'compose'

    Parameters

    • valueSet: any

      The ValueSet resource to parse and load into memory

    Returns ParsedValueSet

Private populateBackboneElement

  • populateBackboneElement(parsedStructureDefinition: any, parentElementId: any, structureDefinition: any): void
  • Parameters

    • parsedStructureDefinition: any
    • parentElementId: any
    • structureDefinition: any

    Returns void

Private populateValueSet

Private sortValueSetDependencies

  • sortValueSetDependencies(valueSets: any): any[]
  • Sorts an array of value sets based on each value set's dependencies. If a value set depends on another value set, the dependent value set is returned in the array before the depending value set, so that when all value sets are parsed in a bundle, it parses the dependent value sets first.

    Parameters

    • valueSets: any

    Returns any[]

Static Private isMultipleAllowed

Generated using TypeDoc