|
| 1 | +// Bun Snapshot v1, https://bun.sh/docs/test/snapshots |
| 2 | + |
| 3 | +exports[`CCDA Package - Multi-Package Generation TypeScript Generation should generate ClinicalDocument type 1`] = ` |
| 4 | +"// WARNING: This file is autogenerated by @atomic-ehr/codegen. |
| 5 | +// GitHub: https://github.com/atomic-ehr/codegen |
| 6 | +// Any manual changes made to this file may be overwritten. |
| 7 | +
|
| 8 | +import type { ANY } from "../hl7-cda-uv-core/Any"; |
| 9 | +import type { Authenticator } from "../hl7-cda-uv-core/Authenticator"; |
| 10 | +import type { Author } from "../hl7-cda-uv-core/Author"; |
| 11 | +import type { Authorization } from "../hl7-cda-uv-core/Authorization"; |
| 12 | +import type { CD } from "../hl7-cda-uv-core/Cd"; |
| 13 | +import type { CE } from "../hl7-cda-uv-core/Ce"; |
| 14 | +import type { Component } from "../hl7-cda-uv-core/Component"; |
| 15 | +import type { ComponentOf } from "../hl7-cda-uv-core/ComponentOf"; |
| 16 | +import type { CS } from "../hl7-cda-uv-core/Cs"; |
| 17 | +import type { Custodian } from "../hl7-cda-uv-core/Custodian"; |
| 18 | +import type { DataEnterer } from "../hl7-cda-uv-core/DataEnterer"; |
| 19 | +import type { DocumentationOf } from "../hl7-cda-uv-core/DocumentationOf"; |
| 20 | +import type { II } from "../hl7-cda-uv-core/Ii"; |
| 21 | +import type { Informant } from "../hl7-cda-uv-core/Informant"; |
| 22 | +import type { InformationRecipient } from "../hl7-cda-uv-core/InformationRecipient"; |
| 23 | +import type { InFulfillmentOf } from "../hl7-cda-uv-core/InFulfillmentOf"; |
| 24 | +import type { INT } from "../hl7-cda-uv-core/Int"; |
| 25 | +import type { LegalAuthenticator } from "../hl7-cda-uv-core/LegalAuthenticator"; |
| 26 | +import type { Participant1 } from "../hl7-cda-uv-core/Participant1"; |
| 27 | +import type { RecordTarget } from "../hl7-cda-uv-core/RecordTarget"; |
| 28 | +import type { RelatedDocument } from "../hl7-cda-uv-core/RelatedDocument"; |
| 29 | +import type { ST } from "../hl7-cda-uv-core/St"; |
| 30 | +import type { TS } from "../hl7-cda-uv-core/Ts"; |
| 31 | +
|
| 32 | +import type { Element } from "../hl7-fhir-r5-core/Element"; |
| 33 | +// CanonicalURL: http://hl7.org/cda/stds/core/StructureDefinition/ClinicalDocument |
| 34 | +export interface ClinicalDocument extends ANY { |
| 35 | + resourceType: "ClinicalDocument"; |
| 36 | +
|
| 37 | + authenticator?: Authenticator[]; |
| 38 | + author: Author[]; |
| 39 | + authorization?: Authorization[]; |
| 40 | + classCode?: string; |
| 41 | + _classCode?: Element; |
| 42 | + code: CE; |
| 43 | + component: Component; |
| 44 | + componentOf?: ComponentOf; |
| 45 | + confidentialityCode: CE; |
| 46 | + copyTime?: TS; |
| 47 | + custodian: Custodian; |
| 48 | + dataEnterer?: DataEnterer; |
| 49 | + documentationOf?: DocumentationOf[]; |
| 50 | + effectiveTime: TS; |
| 51 | + id: II; |
| 52 | + informant?: Informant[]; |
| 53 | + informationRecipient?: InformationRecipient[]; |
| 54 | + inFulfillmentOf?: InFulfillmentOf[]; |
| 55 | + languageCode?: CS; |
| 56 | + legalAuthenticator?: LegalAuthenticator; |
| 57 | + moodCode?: ("INT" | "APT" | "ARQ" | "PRMS" | "PRP" | "RQO" | "SLOT" | "DEF" | "EVN" | "EVN.CRT" | "GOL" | "OPT" | "PERM" | "PERMRQ"); |
| 58 | + _moodCode?: Element; |
| 59 | + participant?: Participant1[]; |
| 60 | + realmCode?: CS[]; |
| 61 | + recordTarget: RecordTarget[]; |
| 62 | + relatedDocument?: RelatedDocument[]; |
| 63 | + sdtcCategory?: CD[]; |
| 64 | + sdtcStatusCode?: CS; |
| 65 | + setId?: II; |
| 66 | + templateId?: II[]; |
| 67 | + title?: ST; |
| 68 | + typeId?: II; |
| 69 | + versionNumber?: INT; |
| 70 | +} |
| 71 | +export const isClinicalDocument = (resource: unknown): resource is ClinicalDocument => { |
| 72 | + return resource !== null && typeof resource === "object" && (resource as {resourceType: string}).resourceType === "ClinicalDocument"; |
| 73 | +} |
| 74 | +" |
| 75 | +`; |
| 76 | + |
| 77 | +exports[`CCDA TypeScript Generation should generate ClinicalDocument type 1`] = ` |
| 78 | +"// WARNING: This file is autogenerated by @atomic-ehr/codegen. |
| 79 | +// GitHub: https://github.com/atomic-ehr/codegen |
| 80 | +// Any manual changes made to this file may be overwritten. |
| 81 | +
|
| 82 | +import type { ANY } from "../hl7-cda-uv-core/Any"; |
| 83 | +import type { Authenticator } from "../hl7-cda-uv-core/Authenticator"; |
| 84 | +import type { Author } from "../hl7-cda-uv-core/Author"; |
| 85 | +import type { Authorization } from "../hl7-cda-uv-core/Authorization"; |
| 86 | +import type { CD } from "../hl7-cda-uv-core/Cd"; |
| 87 | +import type { CE } from "../hl7-cda-uv-core/Ce"; |
| 88 | +import type { Component } from "../hl7-cda-uv-core/Component"; |
| 89 | +import type { ComponentOf } from "../hl7-cda-uv-core/ComponentOf"; |
| 90 | +import type { CS } from "../hl7-cda-uv-core/Cs"; |
| 91 | +import type { Custodian } from "../hl7-cda-uv-core/Custodian"; |
| 92 | +import type { DataEnterer } from "../hl7-cda-uv-core/DataEnterer"; |
| 93 | +import type { DocumentationOf } from "../hl7-cda-uv-core/DocumentationOf"; |
| 94 | +import type { II } from "../hl7-cda-uv-core/Ii"; |
| 95 | +import type { Informant } from "../hl7-cda-uv-core/Informant"; |
| 96 | +import type { InformationRecipient } from "../hl7-cda-uv-core/InformationRecipient"; |
| 97 | +import type { InFulfillmentOf } from "../hl7-cda-uv-core/InFulfillmentOf"; |
| 98 | +import type { INT } from "../hl7-cda-uv-core/Int"; |
| 99 | +import type { LegalAuthenticator } from "../hl7-cda-uv-core/LegalAuthenticator"; |
| 100 | +import type { Participant1 } from "../hl7-cda-uv-core/Participant1"; |
| 101 | +import type { RecordTarget } from "../hl7-cda-uv-core/RecordTarget"; |
| 102 | +import type { RelatedDocument } from "../hl7-cda-uv-core/RelatedDocument"; |
| 103 | +import type { ST } from "../hl7-cda-uv-core/St"; |
| 104 | +import type { TS } from "../hl7-cda-uv-core/Ts"; |
| 105 | +
|
| 106 | +import type { Element } from "../hl7-fhir-r5-core/Element"; |
| 107 | +// CanonicalURL: http://hl7.org/cda/stds/core/StructureDefinition/ClinicalDocument |
| 108 | +export interface ClinicalDocument extends ANY { |
| 109 | + resourceType: "ClinicalDocument"; |
| 110 | +
|
| 111 | + authenticator?: Authenticator[]; |
| 112 | + author: Author[]; |
| 113 | + authorization?: Authorization[]; |
| 114 | + classCode?: string; |
| 115 | + _classCode?: Element; |
| 116 | + code: CE; |
| 117 | + component: Component; |
| 118 | + componentOf?: ComponentOf; |
| 119 | + confidentialityCode: CE; |
| 120 | + copyTime?: TS; |
| 121 | + custodian: Custodian; |
| 122 | + dataEnterer?: DataEnterer; |
| 123 | + documentationOf?: DocumentationOf[]; |
| 124 | + effectiveTime: TS; |
| 125 | + id: II; |
| 126 | + informant?: Informant[]; |
| 127 | + informationRecipient?: InformationRecipient[]; |
| 128 | + inFulfillmentOf?: InFulfillmentOf[]; |
| 129 | + languageCode?: CS; |
| 130 | + legalAuthenticator?: LegalAuthenticator; |
| 131 | + moodCode?: ("INT" | "APT" | "ARQ" | "PRMS" | "PRP" | "RQO" | "SLOT" | "DEF" | "EVN" | "EVN.CRT" | "GOL" | "OPT" | "PERM" | "PERMRQ"); |
| 132 | + _moodCode?: Element; |
| 133 | + participant?: Participant1[]; |
| 134 | + realmCode?: CS[]; |
| 135 | + recordTarget: RecordTarget[]; |
| 136 | + relatedDocument?: RelatedDocument[]; |
| 137 | + sdtcCategory?: CD[]; |
| 138 | + sdtcStatusCode?: CS; |
| 139 | + setId?: II; |
| 140 | + templateId?: II[]; |
| 141 | + title?: ST; |
| 142 | + typeId?: II; |
| 143 | + versionNumber?: INT; |
| 144 | +} |
| 145 | +export const isClinicalDocument = (resource: unknown): resource is ClinicalDocument => { |
| 146 | + return resource !== null && typeof resource === "object" && (resource as {resourceType: string}).resourceType === "ClinicalDocument"; |
| 147 | +} |
| 148 | +" |
| 149 | +`; |
0 commit comments