Cognovis FHIR SDK API reference
Generated from the TypeScript declarations published in @cognovis/fhir-sdk 0.35.0, the version the npm dist-tag latest named at render time. Cognovis FHIR SDK · All SDKs.
Entry points
- @cognovis/fhir-sdk
- @cognovis/fhir-sdk/client
- @cognovis/fhir-sdk/node
- @cognovis/fhir-sdk/dental
- @cognovis/fhir-sdk/dental-core
- @cognovis/fhir-sdk/r4
- @cognovis/fhir-sdk/release-profiles
- @cognovis/fhir-sdk/release-compatibility
- @cognovis/fhir-sdk/terminology
- @cognovis/fhir-sdk/canonicals
- @cognovis/fhir-sdk/bootstrap
@cognovis/fhir-sdk/dental
- EXT_FDI_TOOTH_NUMBER const
- DENTAL_CATEGORY const
- SYSTEM_PSI_SEXTANT const
- SYSTEM_KARIESRISIKO_LEVEL const
- SYSTEM_PA_BEFUND_TYPE const
- CodingInput interface
- NoteInput interface
- QuantityInput interface
- CodeableConceptOutput interface
- SYSTEM_UCUM const
- UCUM_MILLIMETRE const
- SYSTEM_DATA_ABSENT_REASON const
- toCodeableConcept function
- toMillimetreQuantity function
- toQuantity function
- toNotes function
- toReferences function
- FdiPermanentToothCode type
- FdiDeciduousToothCode type
- FdiToothCode type
- SYSTEM_TOOTH_POSITION_FDI const
- SYSTEM_TOOTH_SURFACE const
- EXT_OBSERVATION_BODY_STRUCTURE const
- EXT_COMPONENT_BODY_STRUCTURE const
- EXT_BODY_SITE_BODY_STRUCTURE const
- EXT_TARGET_BODY_STRUCTURE const
- isFdiToothCode function
- buildFdiToothNumberExtension function
- buildToothBodySite function
- ToothSurfaceInput interface
- ToothBodySite interface
- ToothSurfaceStructure interface
- BodyStructureReferenceExtension interface
- ContainedToothSurfaces class
- PeriodontalMeasurementSite type
- SYSTEM_PERIODONTAL_MEASUREMENT_SITE const
- SYSTEM_PERIODONTAL_INDEX const
- SYSTEM_MUCOGINGIVAL_FINDING const
- SYSTEM_PERI_IMPLANT_FINDING const
- SYSTEM_GINGIVAL_ASSESSMENT_METHOD const
- SYSTEM_LOINC const
- SYSTEM_SNOMED const
- EXT_PERIODONTAL_MEASUREMENT_SITE const
- EXT_PERI_IMPLANT_REFERENCE_POINT const
- SiteMeasurement interface
- SurfaceMeasurement interface
- SurfaceAnchor interface
- WholeSiteMeasurement interface
- DentalComponent interface
- measurementSiteExtension function
- siteQuantityComponent function
- siteBooleanComponent function
- surfaceBooleanComponent function
- surfaceIndexComponent function
- surfaceCodedComponent function
- codedComponent function
- booleanComponent function
- quantityComponent function
- DentalCommunicationData interface
- buildDentalCommunication function
- DentalConditionData interface
- buildDentalCondition function
- DentalFindingData interface
- buildDentalFinding function
- GingivaRecessionData interface
- buildGingivaRecession function
- GingivalThicknessObservationData interface
- buildGingivalThicknessObservation function
- SYSTEM_ODONTOGRAM_COMPONENT const
- ODONTOGRAM_ROOT_ENDODONTIC_STATES const
- OdontogramComponentInput interface
- OdontogramSurfaceComponentInput interface
- OdontogramObservationData interface
- buildOdontogramObservation function
- MucosalMarginLevelMeasurement interface
- PeriImplantObservationData interface
- buildPeriImplantObservation function
- FurcationMeasurement interface
- PeriodontalMeasurements interface
- PeriodontalObservationBase interface
- PeriodontalObservationData type
- buildPeriodontalComponents function
- applyPeriodontalCommonFields function
- buildPeriodontalObservation function
- EXT_PAR_STADIUM const
- EXT_PAR_GRADE const
- EXT_PAR_EXTENT const
- PeriodontitisEvidence interface
- PeriodontitisBodySite interface
- PeriodontitisConditionData interface
- buildPeriodontitisCondition function
- DentalProcedureData interface
- buildDentalProcedure function
- SNOMED_ROOT_FRACTURE const
- DENTAL_CORE_TOOTH_ROOTS const
- DentalCoreToothRootCode type
- DentalRootFindingData interface
- buildDentalRootFinding function
- DentalServiceRequestBodySite interface
- DentalServiceRequestData interface
- buildDentalServiceRequest function
EXT_FDI_TOOTH_NUMBER const
FDI tooth number extension URL (from de.cognovis.fhir.dental)
const EXT_FDI_TOOTH_NUMBER = "https://fhir.cognovis.de/dental/StructureDefinition/fdi-tooth-number";
DENTAL_CATEGORY const
Dental category CodeableConcept slice (used in Procedure, Condition, Finding, Communication)
const DENTAL_CATEGORY: {
coding: {
system: string;
code: string;
display: string;
}[];
};
SYSTEM_PSI_SEXTANT const
Published PSI sextant codes from de.cognovis.fhir.dental.
const SYSTEM_PSI_SEXTANT = "https://fhir.cognovis.de/dental/CodeSystem/psi-sextant";
SYSTEM_KARIESRISIKO_LEVEL const
Published caries-risk level codes from de.cognovis.fhir.dental.
const SYSTEM_KARIESRISIKO_LEVEL = "https://fhir.cognovis.de/dental/CodeSystem/kariesrisiko-level";
SYSTEM_PA_BEFUND_TYPE const
Published periodontal finding-type codes from de.cognovis.fhir.dental.
const SYSTEM_PA_BEFUND_TYPE = "https://fhir.cognovis.de/dental/CodeSystem/pa-befund-type";
CodingInput interface
A single coding plus optional CodeableConcept text.
interface CodingInput {
system?: string;
code?: string;
display?: string;
version?: string;
text?: string;
}
NoteInput interface
Annotation input mirroring FHIR Annotation.
interface NoteInput {
text: string;
time?: string;
authorString?: string;
}
QuantityInput interface
UCUM-coded measurement input.
interface QuantityInput {
value: number;
unit?: string;
system?: string;
code?: string;
}
CodeableConceptOutput interface
interface CodeableConceptOutput {
coding?: Array<{
system?: string;
code?: string;
display?: string;
version?: string;
}>;
text?: string;
}
SYSTEM_UCUM const
UCUM system and millimetre code required by the periodontal measurements.
const SYSTEM_UCUM = "http://unitsofmeasure.org";
UCUM_MILLIMETRE const
const UCUM_MILLIMETRE = "mm";
SYSTEM_DATA_ABSENT_REASON const
HL7 data-absent-reason code system used for absent component results.
const SYSTEM_DATA_ABSENT_REASON = "http://terminology.hl7.org/CodeSystem/data-absent-reason";
toCodeableConcept function
Maps a coding input to a CodeableConcept. Returns undefined when neither a code nor a text was supplied.
function toCodeableConcept(input: CodingInput | undefined): CodeableConceptOutput | undefined;
toMillimetreQuantity function
Maps a millimetre measurement to a UCUM Quantity. The profiles fix `valueQuantity.system` and `valueQuantity.code`, so both are always emitted.
function toMillimetreQuantity(value: number, unit?: string): {
value: number;
unit: string;
system: string;
code: string;
};
toQuantity function
Maps a free-form quantity input, defaulting only the UCUM system.
function toQuantity(input: QuantityInput): {
value: number;
unit?: string;
system?: string;
code?: string;
};
toNotes function
Maps annotation inputs, preserving absence.
function toNotes(notes: readonly NoteInput[] | undefined): {
text: string;
time: string | undefined;
authorString: string | undefined;
}[] | undefined;
toReferences function
Maps a plain reference input.
function toReferences(references: ReadonlyArray<{
reference: string;
}> | undefined): {
reference: string;
}[] | undefined;
FdiPermanentToothCode type
Permanent dentition position, e.g. '11', '36', '48'.
type FdiPermanentToothCode = `${PermanentQuadrant}${PermanentPosition}`;
FdiDeciduousToothCode type
Deciduous dentition position, e.g. '51', '75', '85'.
type FdiDeciduousToothCode = `${DeciduousQuadrant}${DeciduousPosition}`;
FdiToothCode type
Two-digit FDI tooth position, permanent or deciduous.
type FdiToothCode = FdiPermanentToothCode | FdiDeciduousToothCode;
SYSTEM_TOOTH_POSITION_FDI const
Dental Core tooth-position code system every Dental tooth binding includes.
const SYSTEM_TOOTH_POSITION_FDI = "https://fhir.cognovis.de/dental-core/CodeSystem/tooth-position-fdi";
SYSTEM_TOOTH_SURFACE const
HL7 Terminology tooth-surface code system carried on BodyStructure.locationQualifier.
const SYSTEM_TOOTH_SURFACE = "http://terminology.hl7.org/CodeSystem/FDI-surface";
EXT_OBSERVATION_BODY_STRUCTURE const
Observation-level reference to the BodyStructure the whole finding describes.
const EXT_OBSERVATION_BODY_STRUCTURE = "http://hl7.org/fhir/5.0/StructureDefinition/extension-Observation.bodyStructure";
EXT_COMPONENT_BODY_STRUCTURE const
Component-level reference to the BodyStructure one component describes.
const EXT_COMPONENT_BODY_STRUCTURE = "https://fhir.cognovis.de/dental-core/StructureDefinition/component-body-structure";
EXT_BODY_SITE_BODY_STRUCTURE const
Reference from a Condition bodySite entry to its BodyStructure.
const EXT_BODY_SITE_BODY_STRUCTURE = "http://hl7.org/fhir/StructureDefinition/bodySite";
EXT_TARGET_BODY_STRUCTURE const
ServiceRequest reference to the BodyStructure the requested service targets.
const EXT_TARGET_BODY_STRUCTURE = "http://hl7.org/fhir/StructureDefinition/procedure-targetBodyStructure";
isFdiToothCode function
Runtime guard for the ISO 3950 notation rule. Permanent quadrants 1-4 carry positions 1-8; deciduous quadrants 5-8 carry positions 1-5.
function isFdiToothCode(value: unknown): value is FdiToothCode;
buildFdiToothNumberExtension function
Builds the canonical FDI tooth-number extension. The value is a `code`, matching `FdiToothNumberExt.value[x] only code`; no integer variant is emitted.
function buildFdiToothNumberExtension(toothNumber: FdiToothCode): {
url: string;
valueCode: string;
};
buildToothBodySite function
Builds the CodeableConcept that identifies a tooth on `bodySite`.
function buildToothBodySite(toothNumber: FdiToothCode): ToothBodySite;
ToothSurfaceInput interface
A tooth surface from the HL7 Terminology FDI-surface code system.
interface ToothSurfaceInput {
code: string;
display?: string;
system?: string;
}
ToothBodySite interface
interface ToothBodySite {
coding: Array<{
system: string;
code: string;
display?: string;
}>;
text?: string;
extension?: Array<Record<string, unknown>>;
}
ToothSurfaceStructure interface
A contained BodyStructure that names surfaces of one tooth.
interface ToothSurfaceStructure {
resourceType: 'BodyStructure';
id: string;
location: {
coding: Array<{
system: string;
code: string;
}>;
};
locationQualifier: Array<{
coding: Array<{
system: string;
code: string;
display?: string;
}>;
text?: string;
}>;
patient: {
reference: string;
};
}
BodyStructureReferenceExtension interface
An extension whose value references a contained BodyStructure.
interface BodyStructureReferenceExtension {
url: string;
valueReference: {
reference: string;
};
}
ContainedToothSurfaces class
Collects the contained BodyStructures of one resource. Dental Core 0.11.0 removed the `tooth-surface` extension: a surface is a `locationQualifier` of a contained BodyStructure whose `location` is the tooth, and the resource, a component or a bodySite entry references it. Identical locations share one BodyStructure.
class ContainedToothSurfaces {
#private;
constructor(patient: {
reference: string;
});
/**
* Returns an extension with `url` that references the BodyStructure for
* `surfaces` of `toothNumber`. `text` states the exact location on a single
* surface, as the gingival thickness `gingival-method-context` requires.
*/
reference(url: string, toothNumber: FdiToothCode, surfaces: readonly ToothSurfaceInput[], text?: string): BodyStructureReferenceExtension;
/** Sets `contained` on the resource when at least one surface was referenced. */
attachTo(resource: {
contained?: unknown;
}): void;
}
PeriodontalMeasurementSite type
Canonical six-site periodontal measurement position.
type PeriodontalMeasurementSite = 'mesiobuccal' | 'buccal' | 'distobuccal' | 'mesiolingual' | 'lingual' | 'distolingual';
SYSTEM_PERIODONTAL_MEASUREMENT_SITE const
const SYSTEM_PERIODONTAL_MEASUREMENT_SITE = "https://fhir.cognovis.de/dental/CodeSystem/periodontal-measurement-site";
SYSTEM_PERIODONTAL_INDEX const
const SYSTEM_PERIODONTAL_INDEX = "https://fhir.cognovis.de/dental/CodeSystem/periodontal-index";
SYSTEM_MUCOGINGIVAL_FINDING const
const SYSTEM_MUCOGINGIVAL_FINDING = "https://fhir.cognovis.de/dental/CodeSystem/mucogingival-finding";
SYSTEM_PERI_IMPLANT_FINDING const
const SYSTEM_PERI_IMPLANT_FINDING = "https://fhir.cognovis.de/dental/CodeSystem/peri-implant-finding";
SYSTEM_GINGIVAL_ASSESSMENT_METHOD const
const SYSTEM_GINGIVAL_ASSESSMENT_METHOD = "https://fhir.cognovis.de/dental/CodeSystem/gingival-assessment-method";
SYSTEM_LOINC const
const SYSTEM_LOINC = "http://loinc.org";
SYSTEM_SNOMED const
const SYSTEM_SNOMED = "http://snomed.info/sct";
EXT_PERIODONTAL_MEASUREMENT_SITE const
const EXT_PERIODONTAL_MEASUREMENT_SITE = "https://fhir.cognovis.de/dental/StructureDefinition/periodontal-measurement-site";
EXT_PERI_IMPLANT_REFERENCE_POINT const
const EXT_PERI_IMPLANT_REFERENCE_POINT = "https://fhir.cognovis.de/dental/StructureDefinition/peri-implant-reference-point";
SiteMeasurement interface
A result documented at one of the six canonical probing sites.
interface SiteMeasurement<TValue> {
site: PeriodontalMeasurementSite;
value?: TValue;
dataAbsentReason?: CodingInput;
}
SurfaceMeasurement interface
A result documented at one tooth surface.
interface SurfaceMeasurement<TValue> {
surface: ToothSurfaceInput;
value?: TValue;
dataAbsentReason?: CodingInput;
}
SurfaceAnchor interface
The tooth and the contained BodyStructures a surface-anchored component references through `component-body-structure`.
interface SurfaceAnchor {
toothNumber: FdiToothCode;
structures: ContainedToothSurfaces;
}
WholeSiteMeasurement interface
A result documented for the whole tooth or implant.
interface WholeSiteMeasurement<TValue> {
value?: TValue;
dataAbsentReason?: CodingInput;
}
DentalComponent interface
interface DentalComponent {
code: CodeableConceptOutput;
valueQuantity?: {
value: number;
unit: string;
system: string;
code: string;
};
valueBoolean?: boolean;
valueInteger?: number;
valueCodeableConcept?: CodeableConceptOutput;
dataAbsentReason?: CodeableConceptOutput;
extension?: Array<Record<string, unknown>>;
}
measurementSiteExtension function
Measurement-site extension for one component.
function measurementSiteExtension(site: PeriodontalMeasurementSite): Record<string, unknown>;
siteQuantityComponent function
Builds a site-anchored millimetre component.
function siteQuantityComponent(system: string, code: string, measurement: SiteMeasurement<number>, label: string): DentalComponent;
siteBooleanComponent function
Builds a site-anchored boolean component.
function siteBooleanComponent(system: string, code: string, measurement: SiteMeasurement<boolean>, label: string): DentalComponent;
surfaceBooleanComponent function
Builds a surface-anchored boolean component.
function surfaceBooleanComponent(system: string, code: string, measurement: SurfaceMeasurement<boolean>, label: string, anchor: SurfaceAnchor): DentalComponent;
surfaceIndexComponent function
Builds a surface-anchored ordinal index component. The published profiles constrain these indices to 0..3, so an out-of-range score is refused rather than emitted and rejected later by the server.
function surfaceIndexComponent(system: string, code: string, measurement: SurfaceMeasurement<number>, label: string, anchor: SurfaceAnchor): DentalComponent;
surfaceCodedComponent function
Builds a surface-anchored coded component (for example furcation grade).
function surfaceCodedComponent(system: string, code: string, measurement: SurfaceMeasurement<CodingInput>, label: string, anchor: SurfaceAnchor): DentalComponent;
codedComponent function
Builds a whole-tooth or whole-implant coded component.
function codedComponent(system: string, code: string, measurement: WholeSiteMeasurement<CodingInput>, label: string): DentalComponent;
booleanComponent function
Builds a whole-tooth or whole-implant boolean component.
function booleanComponent(system: string, code: string, measurement: WholeSiteMeasurement<boolean>, label: string): DentalComponent;
quantityComponent function
Builds a whole-tooth millimetre component.
function quantityComponent(system: string, code: string, measurement: WholeSiteMeasurement<number>, label: string): DentalComponent;
DentalCommunicationData interface
interface DentalCommunicationData {
id?: string;
status: 'preparation' | 'in-progress' | 'not-done' | 'on-hold' | 'stopped' | 'completed' | 'entered-in-error' | 'unknown';
payload: Array<{
contentString?: string;
contentAttachment?: {
contentType?: string;
data?: string;
url?: string;
title?: string;
};
contentReference?: {
reference: string;
};
}>;
subject?: {
reference: string;
};
sender?: {
reference: string;
};
recipient?: Array<{
reference: string;
}>;
sent?: string;
received?: string;
note?: Array<{
text: string;
time?: string;
authorString?: string;
}>;
encounter?: {
reference: string;
};
}
buildDentalCommunication function
function buildDentalCommunication(data: DentalCommunicationData): Communication;
DentalConditionData interface
interface DentalConditionData {
id?: string;
code: {
system?: string;
code?: string;
display?: string;
/** CodeSystem version; ICD-10-GM codings require it under the KBV diagnosis binding. */
version?: string;
text?: string;
};
subject: {
reference: string;
};
/** FDI tooth code (e.g. '11', '36', '85') — two-digit ISO 3950 position */
toothNumber?: FdiToothCode;
clinicalStatus?: {
code: string;
display?: string;
};
verificationStatus?: {
code: string;
display?: string;
};
onsetDateTime?: string;
onsetString?: string;
abatementDateTime?: string;
recordedDate?: string;
bodySite?: Array<{
system?: string;
code?: string;
display?: string;
version?: string;
text?: string;
}>;
note?: Array<{
text: string;
time?: string;
authorString?: string;
}>;
encounter?: {
reference: string;
};
}
buildDentalCondition function
function buildDentalCondition(data: DentalConditionData): Condition;
DentalFindingData interface
interface DentalFindingData {
id?: string;
code: {
system?: string;
code?: string;
display?: string;
/** CodeSystem version, when the binding or catalog edition requires it. */
version?: string;
text?: string;
};
subject: {
reference: string;
};
status: 'registered' | 'preliminary' | 'final' | 'amended' | 'corrected' | 'cancelled' | 'entered-in-error' | 'unknown';
/** FDI tooth code (e.g. '11', '36', '85') — two-digit ISO 3950 position */
toothNumber?: FdiToothCode;
effectiveDateTime?: string;
valueString?: string;
valueCodeableConcept?: {
system?: string;
code?: string;
display?: string;
version?: string;
text?: string;
};
valueQuantity?: {
value?: number;
unit?: string;
system?: string;
code?: string;
};
/** FHIR Observation.bodySite is 0..1 — single CodeableConcept */
bodySite?: {
system?: string;
code?: string;
display?: string;
version?: string;
text?: string;
};
component?: Array<{
code: {
system?: string;
code?: string;
display?: string;
};
valueString?: string;
valueCodeableConcept?: {
system?: string;
code?: string;
display?: string;
};
valueQuantity?: {
value?: number;
unit?: string;
system?: string;
code?: string;
};
}>;
note?: Array<{
text: string;
time?: string;
authorString?: string;
}>;
encounter?: {
reference: string;
};
}
buildDentalFinding function
function buildDentalFinding(data: DentalFindingData): Observation;
GingivaRecessionData interface
interface GingivaRecessionData extends PeriodontalObservationBase {
/** The exposed surface this assessment describes (Observation bodyStructure). */
recessionSurface?: ToothSurfaceInput;
/** Miller class I-IV from the governed Miller terminology. */
millerClass?: WholeSiteMeasurement<CodingInput>;
/** Cairo type RT1-RT3 from the governed Cairo terminology. */
cairoType?: WholeSiteMeasurement<CodingInput>;
cejIdentifiable?: WholeSiteMeasurement<boolean>;
cervicalSurfaceStepPresent?: WholeSiteMeasurement<boolean>;
cervicalSurfaceStepDepth?: WholeSiteMeasurement<number>;
}
buildGingivaRecession function
Builds a GingivaRecessionDE resource.
function buildGingivaRecession(data: GingivaRecessionData): Observation;
GingivalThicknessObservationData interface
interface GingivalThicknessObservationData {
id?: string;
subject: {
reference: string;
};
status: ObservationStatus;
/** Assessment code from GingivalAssessmentCodesVS. */
code: CodingInput;
/** Assessment method from GingivalAssessmentMethodVS. */
method: CodingInput;
/** The measuring device; the profile requires it. */
device: {
reference: string;
};
encounter: {
reference: string;
};
performer: ReadonlyArray<{
reference: string;
}>;
effectiveDateTime: string;
toothNumber: FdiToothCode;
/** The assessed surface; the profile requires exactly one. */
assessmentSurface: ToothSurfaceInput;
/** Optional canonical probing site. */
measurementSite?: PeriodontalMeasurementSite;
/**
* Exact protocol-specific location; the profile requires it as the text of
* the surface qualifier on the referenced BodyStructure.
*/
locationDetail: string;
/** Millimetre result for a direct or ultrasonic measurement. */
valueQuantity?: number;
/** Visible/not-visible result for probe transparency. */
valueBoolean?: boolean;
dataAbsentReason?: CodingInput;
note?: readonly NoteInput[];
}
buildGingivalThicknessObservation function
Builds a GingivalThicknessObservationDE resource.
function buildGingivalThicknessObservation(data: GingivalThicknessObservationData): Observation;
SYSTEM_ODONTOGRAM_COMPONENT const
Odontogram component slice discriminator code system.
const SYSTEM_ODONTOGRAM_COMPONENT = "https://fhir.cognovis.de/dental/CodeSystem/odontogram-component";
ODONTOGRAM_ROOT_ENDODONTIC_STATES const
SNOMED CT root and apical disorders of the tooth as a whole, the content of Dental 0.60.0 `RootEndodonticStateVS`, which the odontogram's `rootEndodonticState` binds as required. Any other root state is a Dental Core `DentalRootFinding` (`buildDentalRootFinding`).
const ODONTOGRAM_ROOT_ENDODONTIC_STATES: readonly ["234975001", "41918006", "52994003", "39273001"];
OdontogramComponentInput interface
A coded odontogram component result.
interface OdontogramComponentInput {
/** Clinical value from the ValueSet the profile binds for this slice. */
value: CodingInput;
}
OdontogramSurfaceComponentInput interface
A coded odontogram component result that may be surface-specific.
interface OdontogramSurfaceComponentInput extends OdontogramComponentInput {
/** Surfaces this component applies to (component-body-structure). */
surfaces?: readonly ToothSurfaceInput[];
}
OdontogramObservationData interface
interface OdontogramObservationData {
id?: string;
subject: {
reference: string;
};
status: ObservationStatus;
/** FDI position described by this odontogram entry. */
toothNumber: FdiToothCode;
/** Surfaces the whole entry applies to (Observation bodyStructure). */
toothSurfaces?: readonly ToothSurfaceInput[];
/** DentalFindingDE requires an effective instant. */
effectiveDateTime: string;
encounter?: {
reference: string;
};
performer?: ReadonlyArray<{
reference: string;
}>;
derivedFrom?: ReadonlyArray<{
reference: string;
}>;
note?: readonly NoteInput[];
/** Presence, absence, or eruption state of the position. */
toothPresence?: OdontogramComponentInput;
/** Root or apical disorder of the whole tooth, from `ODONTOGRAM_ROOT_ENDODONTIC_STATES`. */
rootEndodonticState?: readonly OdontogramComponentInput[];
/** Restoration type per restored surface group. */
restorationType?: readonly OdontogramSurfaceComponentInput[];
/** Restoration material per restored surface group. */
restorationMaterial?: readonly OdontogramSurfaceComponentInput[];
/** Condition of an existing restoration. */
restorationStatus?: readonly OdontogramSurfaceComponentInput[];
/** Prosthetic state of the position. */
prostheticState?: readonly OdontogramComponentInput[];
}
buildOdontogramObservation function
Builds an OdontogramObservationDE resource. Throws when no clinical-state component is supplied, because the published profile's `odonto-1` invariant rejects an odontogram entry that carries no structured state.
function buildOdontogramObservation(data: OdontogramObservationData): Observation;
MucosalMarginLevelMeasurement interface
A signed mucosal margin level plus its documented reference point.
interface MucosalMarginLevelMeasurement extends SiteMeasurement<number> {
/** Stable implant or prosthetic landmark the level was measured from. */
referencePoint: string;
}
PeriImplantObservationData interface
interface PeriImplantObservationData {
id?: string;
subject: {
reference: string;
};
status: ObservationStatus;
/** The assessed implant. */
focus: {
reference: string;
};
effectiveDateTime: string;
/**
* FDI position of the implant site, when the source records one. Surface
* locations need it, because their BodyStructure is located on this position.
*/
toothNumber?: FdiToothCode;
/**
* The one surface the whole assessment applies to (Observation
* bodyStructure). `dental-de-single-surface` allows exactly one surface per
* BodyStructure, so more than one is refused.
*/
toothSurfaces?: readonly ToothSurfaceInput[];
encounter?: {
reference: string;
};
performer?: ReadonlyArray<{
reference: string;
}>;
/** Radiographic bone loss observation this assessment builds on. */
derivedFrom?: ReadonlyArray<{
reference: string;
}>;
note?: readonly NoteInput[];
probingDepth?: ReadonlyArray<SiteMeasurement<number>>;
mucosalMarginLevel?: readonly MucosalMarginLevelMeasurement[];
bop?: ReadonlyArray<SiteMeasurement<boolean>>;
suppuration?: ReadonlyArray<SiteMeasurement<boolean>>;
implantMobility?: WholeSiteMeasurement<boolean>;
modifiedPlaqueIndex?: ReadonlyArray<SurfaceMeasurement<number>>;
modifiedSulcusBleedingIndex?: ReadonlyArray<SurfaceMeasurement<number>>;
keratinizedGingivaWidth?: SiteMeasurement<number>;
}
buildPeriImplantObservation function
Builds a PeriImplantObservationDE resource.
function buildPeriImplantObservation(data: PeriImplantObservationData): Observation;
FurcationMeasurement interface
Furcation involvement at one documented entrance.
interface FurcationMeasurement {
entrance: ToothSurfaceInput;
value?: CodingInput;
dataAbsentReason?: CodingInput;
}
PeriodontalMeasurements interface
Measurements shared by PeriodontalObservationDE and its specialisations.
interface PeriodontalMeasurements {
probingDepth?: ReadonlyArray<SiteMeasurement<number>>;
gingivalMarginToCej?: ReadonlyArray<SiteMeasurement<number>>;
recession?: ReadonlyArray<SiteMeasurement<number>>;
bop?: ReadonlyArray<SiteMeasurement<boolean>>;
clinicalAttachmentLoss?: ReadonlyArray<SiteMeasurement<number>>;
suppuration?: ReadonlyArray<SiteMeasurement<boolean>>;
furcation?: readonly FurcationMeasurement[];
plaquePresence?: ReadonlyArray<SurfaceMeasurement<boolean>>;
plaqueIndex?: ReadonlyArray<SurfaceMeasurement<number>>;
gingivalIndex?: ReadonlyArray<SurfaceMeasurement<number>>;
keratinizedGingivaWidth?: SiteMeasurement<number>;
parGrad?: WholeSiteMeasurement<CodingInput>;
parBehandlungsphase?: ReadonlyArray<WholeSiteMeasurement<CodingInput>>;
parLockerungsgrad?: WholeSiteMeasurement<CodingInput>;
parFurkationsbefall?: WholeSiteMeasurement<CodingInput>;
parBehandlungsbeduerftigkeit?: WholeSiteMeasurement<CodingInput>;
}
PeriodontalObservationBase interface
Fields shared by every per-tooth periodontal observation.
interface PeriodontalObservationBase extends PeriodontalMeasurements {
id?: string;
subject: {
reference: string;
};
status: ObservationStatus;
/** Periodontal finding code from PeriodontalFindingCodesVS. */
code: CodingInput;
/** FDI position; periodontal findings are always per tooth. */
toothNumber: FdiToothCode;
effectiveDateTime: string;
encounter?: {
reference: string;
};
performer?: ReadonlyArray<{
reference: string;
}>;
derivedFrom?: ReadonlyArray<{
reference: string;
}>;
note?: readonly NoteInput[];
method?: CodingInput;
device?: {
reference: string;
};
}
PeriodontalObservationData type
type PeriodontalObservationData = PeriodontalObservationBase;
buildPeriodontalComponents function
Builds the shared periodontal component list in published slice order. Surface-anchored components reference BodyStructures collected in `anchor`.
function buildPeriodontalComponents(data: PeriodontalMeasurements, anchor: SurfaceAnchor): DentalComponent[];
applyPeriodontalCommonFields function
Applies the fields shared by periodontal observations onto the resource.
function applyPeriodontalCommonFields(resource: Observation, data: PeriodontalObservationBase, components: DentalComponent[], structures: ContainedToothSurfaces): void;
buildPeriodontalObservation function
Builds a PeriodontalObservationDE resource.
function buildPeriodontalObservation(data: PeriodontalObservationData): Observation;
EXT_PAR_STADIUM const
const EXT_PAR_STADIUM = "https://fhir.cognovis.de/dental/StructureDefinition/par-stadium";
EXT_PAR_GRADE const
const EXT_PAR_GRADE = "https://fhir.cognovis.de/dental/StructureDefinition/par-grade";
EXT_PAR_EXTENT const
const EXT_PAR_EXTENT = "https://fhir.cognovis.de/dental/StructureDefinition/par-extent";
PeriodontitisEvidence interface
One evidence entry linking the diagnosis to its findings.
interface PeriodontitisEvidence {
code?: readonly CodingInput[];
detail: ReadonlyArray<{
reference: string;
}>;
}
PeriodontitisBodySite interface
One diagnosed site: an FDI position with optional affected surfaces. The surfaces become a contained BodyStructure that a separate bodySite entry references.
interface PeriodontitisBodySite {
toothNumber: FdiToothCode;
surfaces?: readonly ToothSurfaceInput[];
}
PeriodontitisConditionData interface
interface PeriodontitisConditionData {
id?: string;
subject: {
reference: string;
};
/** ICD-10-GM diagnosis code. */
code: CodingInput;
/** Periodontitis stage I-IV from the PAR terminology. */
stage: CodingInput;
/** Progression grade A-C from the PAR terminology. */
grade: CodingInput;
/** Extent or distribution from the governed PAR terminology. */
extent: CodingInput;
/** The diagnosing dental professional. */
asserter: {
reference: string;
};
/** Diagnostic evidence; the profile requires at least one entry with detail. */
evidence: readonly PeriodontitisEvidence[];
recorder?: {
reference: string;
};
clinicalStatus?: {
code: string;
display?: string;
};
verificationStatus?: {
code: string;
display?: string;
};
onsetDateTime?: string;
abatementDateTime?: string;
recordedDate?: string;
encounter?: {
reference: string;
};
bodySite?: readonly PeriodontitisBodySite[];
/** FDI position when the diagnosis is carried as a resource-level extension. */
toothNumber?: FdiToothCode;
note?: readonly NoteInput[];
}
buildPeriodontitisCondition function
Builds a PeriodontitisConditionDE resource.
function buildPeriodontitisCondition(data: PeriodontitisConditionData): Condition;
DentalProcedureData interface
interface DentalProcedureData {
id?: string;
/** BEMA, GOZ, or other procedure code */
code: {
system?: string;
code?: string;
display?: string;
/** CodeSystem version, when the binding or catalog edition requires it. */
version?: string;
text?: string;
};
subject: {
reference: string;
};
status: 'preparation' | 'in-progress' | 'not-done' | 'on-hold' | 'stopped' | 'completed' | 'entered-in-error' | 'unknown';
/** FDI tooth code (e.g. '11', '36', '85') — two-digit ISO 3950 position */
toothNumber?: FdiToothCode;
performedDateTime?: string;
performer?: Array<{
actor: {
reference: string;
};
}>;
bodySite?: Array<{
system?: string;
code?: string;
display?: string;
version?: string;
text?: string;
}>;
note?: Array<{
text: string;
time?: string;
authorString?: string;
}>;
encounter?: {
reference: string;
};
}
buildDentalProcedure function
function buildDentalProcedure(data: DentalProcedureData): Procedure;
SNOMED_ROOT_FRACTURE const
SNOMED CT root fracture, the fixed code of the `rootFracture` component.
const SNOMED_ROOT_FRACTURE = "109683005";
DENTAL_CORE_TOOTH_ROOTS const
SNOMED CT tooth-root qualifiers of the Dental Core ValueSet `tooth-root`. SNOMED CT is not a Dental Core CodeSystem, so the generated terminology does not carry these codes.
const DENTAL_CORE_TOOTH_ROOTS: readonly ["728386000", "730868001", "730869009", "728388004", "728387009", "728390003", "728391004", "728389007"];
DentalCoreToothRootCode type
type DentalCoreToothRootCode = (typeof DENTAL_CORE_TOOTH_ROOTS)[number];
DentalRootFindingData interface
interface DentalRootFindingData {
id?: string;
subject: {
reference: string;
};
status: ObservationStatus;
toothNumber: FdiToothCode;
/** The root, from `tooth-root`; omit when the source names no root. */
root?: DentalCoreToothRootCode;
/** Time of the examination. */
effectiveDateTime: string;
encounter?: {
reference: string;
};
performer?: ReadonlyArray<{
reference: string;
}>;
/** The ImagingStudy, Media or DocumentReference the finding was read from. */
derivedFrom?: ReadonlyArray<{
reference: string;
}>;
note?: readonly NoteInput[];
/** Endodontic states from `root-endodontic-state`, repeatable. */
rootEndodonticState?: readonly CodingInput[];
/** Root fracture value from `dental-chart-value`. */
rootFracture?: CodingInput;
/** Root-resection description. */
rootResection?: string;
/** Apical-finding description. */
apicalFinding?: string;
}
buildDentalRootFinding function
Builds a DentalRootFinding Observation. Throws when no component is given, because the profile requires one, and when a root or a coded value lies outside the binding Dental Core 0.12.0 requires.
function buildDentalRootFinding(data: DentalRootFindingData): Observation;
DentalServiceRequestBodySite interface
One requested site: an FDI position with optional surfaces. Surfaces become a contained BodyStructure the request targets (procedure-targetBodyStructure).
interface DentalServiceRequestBodySite {
toothNumber: FdiToothCode;
surfaces?: readonly ToothSurfaceInput[];
}
DentalServiceRequestData interface
interface DentalServiceRequestData {
id?: string;
subject: {
reference: string;
};
status: ServiceRequestStatus;
intent: ServiceRequestIntent;
/** Requested service, e.g. a BEMA or GOZ code. */
code: CodingInput;
/** FDI positions when the requested service is site-specific. */
bodySite?: readonly DentalServiceRequestBodySite[];
authoredOn?: string;
occurrenceDateTime?: string;
occurrencePeriod?: {
start?: string;
end?: string;
};
requester?: {
reference: string;
};
performer?: ReadonlyArray<{
reference: string;
}>;
encounter?: {
reference: string;
};
reasonCode?: readonly CodingInput[];
reasonReference?: ReadonlyArray<{
reference: string;
}>;
note?: readonly NoteInput[];
}
buildDentalServiceRequest function
Builds a DentalServiceRequestDE resource.
function buildDentalServiceRequest(data: DentalServiceRequestData): ServiceRequest;