@@ -83,6 +83,199 @@ export const isPatient = (resource: unknown): resource is Patient => {
8383"
8484` ;
8585
86+ exports [` TypeScript CDA with Logical Model Promotion to Resource without resourceType 1` ] = `
87+ "// WARNING: This file is autogenerated by @atomic-ehr/codegen.
88+ // GitHub: https://github.com/atomic-ehr/codegen
89+ // Any manual changes made to this file may be overwritten.
90+
91+ import type { CD } from "../hl7-cda-uv-core/CD";
92+ import type { CE } from "../hl7-cda-uv-core/CE";
93+
94+ // CanonicalURL: http://hl7.org/cda/stds/core/StructureDefinition/CV (pkg: hl7.cda.uv.core#2.0.1-sd)
95+ export interface CV extends CE {
96+ translation ?: CD [];
97+ }
98+ "
99+ ` ;
100+
101+ exports [` TypeScript CDA with Logical Model Promotion to Resource without resourceType 2` ] = `
102+ "export * from "./profiles";
103+ export type { Act } from "./Act";
104+ export type { AD , ADItem } from "./AD";
105+ export type { ADXP } from "./ADXP";
106+ export type { AlternateIdentification } from "./AlternateIdentification";
107+ export type { ANY } from "./ANY";
108+ export type { AssignedAuthor } from "./AssignedAuthor";
109+ export type { AssignedCustodian } from "./AssignedCustodian";
110+ export type { AssignedEntity , AssignedEntitySdtcPatient } from "./AssignedEntity";
111+ export type { AssociatedEntity } from "./AssociatedEntity";
112+ export type { Authenticator } from "./Authenticator";
113+ export type { Author } from "./Author";
114+ export type { AuthoringDevice } from "./AuthoringDevice";
115+ export type { Authorization } from "./Authorization";
116+ export type { Birthplace } from "./Birthplace";
117+ export type { BL } from "./BL";
118+ export type { CD } from "./CD";
119+ export type { CE } from "./CE";
120+ export type { ClinicalDocument } from "./ClinicalDocument";
121+ export type { CO } from "./CO";
122+ export type { Component } from "./Component";
123+ export type { ComponentOf } from "./ComponentOf";
124+ export type { Consent } from "./Consent";
125+ export type { CR } from "./CR";
126+ export type { Criterion } from "./Criterion";
127+ export type { CS } from "./CS";
128+ export type { Custodian } from "./Custodian";
129+ export type { CustodianOrganization } from "./CustodianOrganization";
130+ export type { CV } from "./CV";
131+ export type { DataEnterer } from "./DataEnterer";
132+ export type { Device } from "./Device";
133+ export type { DocumentationOf } from "./DocumentationOf";
134+ export type { ED } from "./ED";
135+ export type { EIVL_TS } from "./EIVL_TS";
136+ export type { EN , ENItem } from "./EN";
137+ export type { EncompassingEncounter , EncompassingEncounterLocation , EncompassingEncounterResponsibleParty } from "./EncompassingEncounter";
138+ export type { Encounter } from "./Encounter";
139+ export type { EncounterParticipant } from "./EncounterParticipant";
140+ export type { Entity } from "./Entity";
141+ export type { Entry } from "./Entry";
142+ export type { EntryRelationship } from "./EntryRelationship";
143+ export type { ENXP } from "./ENXP";
144+ export type { ExternalAct } from "./ExternalAct";
145+ export type { ExternalDocument } from "./ExternalDocument";
146+ export type { ExternalObservation } from "./ExternalObservation";
147+ export type { ExternalProcedure } from "./ExternalProcedure";
148+ export type { Guardian } from "./Guardian";
149+ export type { HealthCareFacility } from "./HealthCareFacility";
150+ export type { IdentifiedBy } from "./IdentifiedBy";
151+ export type { II } from "./II";
152+ export type { Informant } from "./Informant";
153+ export type { InformationRecipient } from "./InformationRecipient";
154+ export type { InfrastructureRoot } from "./InfrastructureRoot";
155+ export type { InFulfillmentOf } from "./InFulfillmentOf";
156+ export type { InFulfillmentOf1 , InFulfillmentOf1ActReference } from "./InFulfillmentOf1";
157+ export type { INT } from "./INT";
158+ export type { INT_POS } from "./INT_POS";
159+ export type { IntendedRecipient } from "./IntendedRecipient";
160+ export type { IVL_INT } from "./IVL_INT";
161+ export type { IVL_PQ } from "./IVL_PQ";
162+ export type { IVL_TS } from "./IVL_TS";
163+ export type { IVXB_INT } from "./IVXB_INT";
164+ export type { IVXB_PQ } from "./IVXB_PQ";
165+ export type { IVXB_TS } from "./IVXB_TS";
166+ export type { LabeledDrug } from "./LabeledDrug";
167+ export type { LanguageCommunication } from "./LanguageCommunication";
168+ export type { LegalAuthenticator } from "./LegalAuthenticator";
169+ export type { MaintainedEntity } from "./MaintainedEntity";
170+ export type { ManufacturedProduct } from "./ManufacturedProduct";
171+ export type { Material } from "./Material";
172+ export { isMaterial } from "./Material";
173+ export type { MO } from "./MO";
174+ export type { NonXMLBody } from "./NonXMLBody";
175+ export type { Observation , ObservationReferenceRange } from "./Observation";
176+ export type { ObservationMedia } from "./ObservationMedia";
177+ export type { ObservationRange , ObservationRangeSdtcPrecondition1 } from "./ObservationRange";
178+ export type { ON , ONItem } from "./ON";
179+ export type { Order } from "./Order";
180+ export type { Organization } from "./Organization";
181+ export type { OrganizationPartOf } from "./OrganizationPartOf";
182+ export type { Organizer } from "./Organizer";
183+ export type { OrganizerComponent } from "./OrganizerComponent";
184+ export type { ParentDocument } from "./ParentDocument";
185+ export type { Participant1 } from "./Participant1";
186+ export type { Participant2 } from "./Participant2";
187+ export type { ParticipantRole } from "./ParticipantRole";
188+ export type { Patient } from "./Patient";
189+ export type { PatientRole } from "./PatientRole";
190+ export type { Performer1 } from "./Performer1";
191+ export type { Performer2 } from "./Performer2";
192+ export type { Person , PersonSdtcAsPatientRelationship } from "./Person";
193+ export type { PIVL_TS } from "./PIVL_TS";
194+ export type { Place } from "./Place";
195+ export type { PlayingEntity } from "./PlayingEntity";
196+ export type { PN } from "./PN";
197+ export type { PQ } from "./PQ";
198+ export type { PQR } from "./PQR";
199+ export type { Precondition } from "./Precondition";
200+ export type { Precondition2 } from "./Precondition2";
201+ export type { PreconditionBase } from "./PreconditionBase";
202+ export type { Procedure } from "./Procedure";
203+ export type { QTY } from "./QTY";
204+ export type { REAL } from "./REAL";
205+ export type { RecordTarget } from "./RecordTarget";
206+ export type { Reference } from "./Reference";
207+ export type { RegionOfInterest } from "./RegionOfInterest";
208+ export type { RelatedDocument } from "./RelatedDocument";
209+ export type { RelatedEntity } from "./RelatedEntity";
210+ export type { RelatedSubject } from "./RelatedSubject";
211+ export type { RTO_PQ_PQ } from "./RTO_PQ_PQ";
212+ export type { SC } from "./SC";
213+ export type { Section , SectionComponent } from "./Section";
214+ export type { ServiceEvent } from "./ServiceEvent";
215+ export type { Specimen } from "./Specimen";
216+ export type { SpecimenRole } from "./SpecimenRole";
217+ export type { ST } from "./ST";
218+ export type { StructuredBody , StructuredBodyComponent } from "./StructuredBody";
219+ export type { Subject } from "./Subject";
220+ export type { SubjectPerson } from "./SubjectPerson";
221+ export type { SubstanceAdministration , SubstanceAdministrationConsumable } from "./SubstanceAdministration";
222+ export type { Supply , SupplyProduct } from "./Supply";
223+ export type { SXCM_TS } from "./SXCM_TS";
224+ export type { SXPR_TS } from "./SXPR_TS";
225+ export type { TEL } from "./TEL";
226+ export type { TS } from "./TS";
227+ "
228+ ` ;
229+
230+ exports [` TypeScript CDA with Logical Model Promotion to Resource without resourceType 3` ] = `
231+ "export { TNProfile } from "./EN_TN";
232+ export { binProfile } from "./Base64Binary_bin";
233+ export { blProfile } from "./Boolean_bl";
234+ export { bnProfile } from "./Boolean_bn";
235+ export { csProfile } from "./Code_cs";
236+ export { intProfile } from "./Integer_int";
237+ export { oidProfile } from "./String_oid";
238+ export { probabilityProfile } from "./Decimal_probability";
239+ export { realProfile } from "./Decimal_real";
240+ export { ruidProfile } from "./String_ruid";
241+ export { stProfile } from "./String_st";
242+ export { tsProfile } from "./DateTime_ts";
243+ export { uidProfile } from "./String_uid";
244+ export { urlProfile } from "./Url_url";
245+ export { uuidProfile } from "./String_uuid";
246+ export { xs_IDProfile } from "./Id_xs_ID";
247+ "
248+ ` ;
249+
250+ exports [` TypeScript CDA with Logical Model Promotion to Resource with resourceType 1` ] = `
251+ "// WARNING: This file is autogenerated by @atomic-ehr/codegen.
252+ // GitHub: https://github.com/atomic-ehr/codegen
253+ // Any manual changes made to this file may be overwritten.
254+
255+ import type { CE } from "../hl7-cda-uv-core/CE";
256+ import type { EN } from "../hl7-cda-uv-core/EN";
257+ import type { InfrastructureRoot } from "../hl7-cda-uv-core/InfrastructureRoot";
258+ import type { ST } from "../hl7-cda-uv-core/ST";
259+
260+ import type { Element } from "../hl7-fhir-r5-core/Element";
261+ // CanonicalURL: http://hl7.org/cda/stds/core/StructureDefinition/Material (pkg: hl7.cda.uv.core#2.0.1-sd)
262+ export interface Material extends InfrastructureRoot {
263+ resourceType : " Material" ;
264+
265+ classCode ?: string ;
266+ _classCode ?: Element ;
267+ code ?: CE ;
268+ determinerCode ?: string ;
269+ _determinerCode ?: Element ;
270+ lotNumberText ?: ST ;
271+ name ?: EN ;
272+ }
273+ export const isMaterial = (resource: unknown): resource is Material => {
274+ return resource !== null && typeof resource === " object" && (resource as {resourceType: string }).resourceType === " Material" ;
275+ }
276+ "
277+ ` ;
278+
86279exports [` TypeScript R4 Example (with generateProfile) file rewrite warnings match expected collisions 1` ] = `
87280[
88281 "File will be rewritten 'generated/types/hl7-fhir-r4-core/profiles/Extension_assertedDate.ts'",
@@ -572,4 +765,4 @@ export class observation_bpProfile {
572765}
573766
574767"
575- `;
768+ `;
0 commit comments