|
| 1 | +// WARNING: This file is autogenerated by @atomic-ehr/codegen. |
| 2 | +// GitHub: https://github.com/atomic-ehr/codegen |
| 3 | +// Any manual changes made to this file may be overwritten. |
| 4 | + |
| 5 | +import type { BackboneElement } from "../hl7-fhir-r4-core/BackboneElement"; |
| 6 | +import type { CodeableConcept } from "../hl7-fhir-r4-core/CodeableConcept"; |
| 7 | +import type { Coding } from "../hl7-fhir-r4-core/Coding"; |
| 8 | +import type { ContactDetail } from "../hl7-fhir-r4-core/ContactDetail"; |
| 9 | +import type { DomainResource } from "../hl7-fhir-r4-core/DomainResource"; |
| 10 | +import type { Identifier } from "../hl7-fhir-r4-core/Identifier"; |
| 11 | +import type { UsageContext } from "../hl7-fhir-r4-core/UsageContext"; |
| 12 | + |
| 13 | +export type { BackboneElement } from "../hl7-fhir-r4-core/BackboneElement"; |
| 14 | +export type { CodeableConcept } from "../hl7-fhir-r4-core/CodeableConcept"; |
| 15 | +export type { Coding } from "../hl7-fhir-r4-core/Coding"; |
| 16 | +export type { ContactDetail } from "../hl7-fhir-r4-core/ContactDetail"; |
| 17 | +export type { Identifier } from "../hl7-fhir-r4-core/Identifier"; |
| 18 | +export type { UsageContext } from "../hl7-fhir-r4-core/UsageContext"; |
| 19 | + |
| 20 | +export interface CodeSystemConcept extends BackboneElement { |
| 21 | + code: string; |
| 22 | + concept?: CodeSystemConcept[]; |
| 23 | + definition?: string; |
| 24 | + designation?: CodeSystemConceptDesignation[]; |
| 25 | + display?: string; |
| 26 | + property?: CodeSystemConceptProperty[]; |
| 27 | +} |
| 28 | + |
| 29 | +export interface CodeSystemConceptDesignation extends BackboneElement { |
| 30 | + language?: string; |
| 31 | + use?: Coding; |
| 32 | + value: string; |
| 33 | +} |
| 34 | + |
| 35 | +export interface CodeSystemConceptProperty extends BackboneElement { |
| 36 | + code: string; |
| 37 | + valueBoolean?: boolean; |
| 38 | + valueCode?: string; |
| 39 | + valueCoding?: Coding; |
| 40 | + valueDateTime?: string; |
| 41 | + valueDecimal?: number; |
| 42 | + valueInteger?: number; |
| 43 | + valueString?: string; |
| 44 | +} |
| 45 | + |
| 46 | +export interface CodeSystemFilter extends BackboneElement { |
| 47 | + code: string; |
| 48 | + description?: string; |
| 49 | + operator: ("=" | "is-a" | "descendent-of" | "is-not-a" | "regex" | "in" | "not-in" | "generalizes" | "exists")[]; |
| 50 | + value: string; |
| 51 | +} |
| 52 | + |
| 53 | +export interface CodeSystemProperty extends BackboneElement { |
| 54 | + code: string; |
| 55 | + description?: string; |
| 56 | + type: ("code" | "Coding" | "string" | "integer" | "boolean" | "dateTime" | "decimal"); |
| 57 | + uri?: string; |
| 58 | +} |
| 59 | + |
| 60 | +// CanonicalURL: http://hl7.org/fhir/StructureDefinition/CodeSystem |
| 61 | +export interface CodeSystem extends DomainResource { |
| 62 | + resourceType: "CodeSystem"; |
| 63 | + |
| 64 | + caseSensitive?: boolean; |
| 65 | + compositional?: boolean; |
| 66 | + concept?: CodeSystemConcept[]; |
| 67 | + contact?: ContactDetail[]; |
| 68 | + content: ("not-present" | "example" | "fragment" | "complete" | "supplement"); |
| 69 | + copyright?: string; |
| 70 | + count?: number; |
| 71 | + date?: string; |
| 72 | + description?: string; |
| 73 | + experimental?: boolean; |
| 74 | + filter?: CodeSystemFilter[]; |
| 75 | + hierarchyMeaning?: ("grouped-by" | "is-a" | "part-of" | "classified-with"); |
| 76 | + identifier?: Identifier[]; |
| 77 | + jurisdiction?: CodeableConcept[]; |
| 78 | + name?: string; |
| 79 | + property?: CodeSystemProperty[]; |
| 80 | + publisher?: string; |
| 81 | + purpose?: string; |
| 82 | + status: ("draft" | "active" | "retired" | "unknown"); |
| 83 | + supplements?: string; |
| 84 | + title?: string; |
| 85 | + url?: string; |
| 86 | + useContext?: UsageContext[]; |
| 87 | + valueSet?: string; |
| 88 | + version?: string; |
| 89 | + versionNeeded?: boolean; |
| 90 | +} |
| 91 | +export const isCodeSystem = (resource: unknown): resource is CodeSystem => { |
| 92 | + return resource !== null && typeof resource === "object" && (resource as {resourceType: string}).resourceType === "CodeSystem"; |
| 93 | +} |
0 commit comments