@medplum/core 0.9.25 → 0.9.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/cjs/index.js +191 -25
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/index.min.js +1 -1
  4. package/dist/cjs/index.min.js.map +1 -1
  5. package/dist/esm/base-schema.json.js +4872 -0
  6. package/dist/esm/base-schema.json.js.map +1 -0
  7. package/dist/{types → esm}/cache.d.ts +0 -0
  8. package/dist/esm/cache.js +70 -0
  9. package/dist/esm/cache.js.map +1 -0
  10. package/dist/{types → esm}/client.d.ts +21 -13
  11. package/dist/esm/client.js +1455 -0
  12. package/dist/esm/client.js.map +1 -0
  13. package/dist/{types → esm}/crypto.d.ts +0 -0
  14. package/dist/esm/crypto.js +23 -0
  15. package/dist/esm/crypto.js.map +1 -0
  16. package/dist/{types → esm}/eventtarget.d.ts +0 -0
  17. package/dist/esm/eventtarget.js +41 -0
  18. package/dist/esm/eventtarget.js.map +1 -0
  19. package/dist/{types → esm}/fhirpath/atoms.d.ts +0 -0
  20. package/dist/esm/fhirpath/atoms.js +329 -0
  21. package/dist/esm/fhirpath/atoms.js.map +1 -0
  22. package/dist/{types → esm}/fhirpath/date.d.ts +0 -0
  23. package/dist/esm/fhirpath/date.js +24 -0
  24. package/dist/esm/fhirpath/date.js.map +1 -0
  25. package/dist/{types → esm}/fhirpath/functions.d.ts +0 -0
  26. package/dist/esm/fhirpath/functions.js +1503 -0
  27. package/dist/esm/fhirpath/functions.js.map +1 -0
  28. package/dist/{types → esm}/fhirpath/index.d.ts +0 -0
  29. package/dist/{types → esm}/fhirpath/parse.d.ts +0 -0
  30. package/dist/esm/fhirpath/parse.js +258 -0
  31. package/dist/esm/fhirpath/parse.js.map +1 -0
  32. package/dist/{types → esm}/fhirpath/tokenize.d.ts +0 -0
  33. package/dist/esm/fhirpath/tokenize.js +185 -0
  34. package/dist/esm/fhirpath/tokenize.js.map +1 -0
  35. package/dist/{types → esm}/fhirpath/utils.d.ts +0 -0
  36. package/dist/esm/fhirpath/utils.js +381 -0
  37. package/dist/esm/fhirpath/utils.js.map +1 -0
  38. package/dist/esm/format.d.ts +21 -0
  39. package/dist/esm/format.js +158 -0
  40. package/dist/esm/format.js.map +1 -0
  41. package/dist/{types → esm}/hl7.d.ts +0 -0
  42. package/dist/esm/hl7.js +111 -0
  43. package/dist/esm/hl7.js.map +1 -0
  44. package/dist/{types → esm}/index.d.ts +0 -0
  45. package/dist/esm/index.js +15 -10763
  46. package/dist/esm/index.js.map +1 -1
  47. package/dist/esm/index.min.js +1 -1
  48. package/dist/esm/index.min.js.map +1 -1
  49. package/dist/{types → esm}/jwt.d.ts +0 -0
  50. package/dist/esm/jwt.js +35 -0
  51. package/dist/esm/jwt.js.map +1 -0
  52. package/dist/esm/node_modules/tslib/package.json +1 -0
  53. package/dist/esm/node_modules/tslib/tslib.es6.js +40 -0
  54. package/dist/esm/node_modules/tslib/tslib.es6.js.map +1 -0
  55. package/dist/{types → esm}/outcomes.d.ts +7 -0
  56. package/dist/esm/outcomes.js +190 -0
  57. package/dist/esm/outcomes.js.map +1 -0
  58. package/dist/{types → esm}/readablepromise.d.ts +0 -0
  59. package/dist/esm/readablepromise.js +87 -0
  60. package/dist/esm/readablepromise.js.map +1 -0
  61. package/dist/{types → esm}/search.d.ts +0 -0
  62. package/dist/esm/search.js +207 -0
  63. package/dist/esm/search.js.map +1 -0
  64. package/dist/{types → esm}/searchparams.d.ts +0 -0
  65. package/dist/esm/searchparams.js +145 -0
  66. package/dist/esm/searchparams.js.map +1 -0
  67. package/dist/{types → esm}/storage.d.ts +0 -0
  68. package/dist/esm/storage.js +94 -0
  69. package/dist/esm/storage.js.map +1 -0
  70. package/dist/{types → esm}/types.d.ts +0 -0
  71. package/dist/esm/types.js +223 -0
  72. package/dist/esm/types.js.map +1 -0
  73. package/dist/{types → esm}/utils.d.ts +0 -0
  74. package/dist/esm/utils.js +590 -0
  75. package/dist/esm/utils.js.map +1 -0
  76. package/package.json +5 -5
  77. package/stats.html +4034 -0
  78. package/cody-pdf-test.js +0 -32
  79. package/dist/types/format.d.ts +0 -15
  80. package/wget-log +0 -6
@@ -0,0 +1,223 @@
1
+ import baseSchema from './base-schema.json.js';
2
+ import { capitalize } from './utils.js';
3
+
4
+ /**
5
+ * List of property types.
6
+ * http://www.hl7.org/fhir/valueset-defined-types.html
7
+ * The list here includes additions found from StructureDefinition resources.
8
+ */
9
+ var PropertyType;
10
+ (function (PropertyType) {
11
+ PropertyType["Address"] = "Address";
12
+ PropertyType["Age"] = "Age";
13
+ PropertyType["Annotation"] = "Annotation";
14
+ PropertyType["Attachment"] = "Attachment";
15
+ PropertyType["BackboneElement"] = "BackboneElement";
16
+ PropertyType["CodeableConcept"] = "CodeableConcept";
17
+ PropertyType["Coding"] = "Coding";
18
+ PropertyType["ContactDetail"] = "ContactDetail";
19
+ PropertyType["ContactPoint"] = "ContactPoint";
20
+ PropertyType["Contributor"] = "Contributor";
21
+ PropertyType["Count"] = "Count";
22
+ PropertyType["DataRequirement"] = "DataRequirement";
23
+ PropertyType["Distance"] = "Distance";
24
+ PropertyType["Dosage"] = "Dosage";
25
+ PropertyType["Duration"] = "Duration";
26
+ PropertyType["Expression"] = "Expression";
27
+ PropertyType["Extension"] = "Extension";
28
+ PropertyType["HumanName"] = "HumanName";
29
+ PropertyType["Identifier"] = "Identifier";
30
+ PropertyType["MarketingStatus"] = "MarketingStatus";
31
+ PropertyType["Meta"] = "Meta";
32
+ PropertyType["Money"] = "Money";
33
+ PropertyType["Narrative"] = "Narrative";
34
+ PropertyType["ParameterDefinition"] = "ParameterDefinition";
35
+ PropertyType["Period"] = "Period";
36
+ PropertyType["Population"] = "Population";
37
+ PropertyType["ProdCharacteristic"] = "ProdCharacteristic";
38
+ PropertyType["ProductShelfLife"] = "ProductShelfLife";
39
+ PropertyType["Quantity"] = "Quantity";
40
+ PropertyType["Range"] = "Range";
41
+ PropertyType["Ratio"] = "Ratio";
42
+ PropertyType["Reference"] = "Reference";
43
+ PropertyType["RelatedArtifact"] = "RelatedArtifact";
44
+ PropertyType["SampledData"] = "SampledData";
45
+ PropertyType["Signature"] = "Signature";
46
+ PropertyType["SubstanceAmount"] = "SubstanceAmount";
47
+ PropertyType["SystemString"] = "http://hl7.org/fhirpath/System.String";
48
+ PropertyType["Timing"] = "Timing";
49
+ PropertyType["TriggerDefinition"] = "TriggerDefinition";
50
+ PropertyType["UsageContext"] = "UsageContext";
51
+ PropertyType["base64Binary"] = "base64Binary";
52
+ PropertyType["boolean"] = "boolean";
53
+ PropertyType["canonical"] = "canonical";
54
+ PropertyType["code"] = "code";
55
+ PropertyType["date"] = "date";
56
+ PropertyType["dateTime"] = "dateTime";
57
+ PropertyType["decimal"] = "decimal";
58
+ PropertyType["id"] = "id";
59
+ PropertyType["instant"] = "instant";
60
+ PropertyType["integer"] = "integer";
61
+ PropertyType["markdown"] = "markdown";
62
+ PropertyType["oid"] = "oid";
63
+ PropertyType["positiveInt"] = "positiveInt";
64
+ PropertyType["string"] = "string";
65
+ PropertyType["time"] = "time";
66
+ PropertyType["unsignedInt"] = "unsignedInt";
67
+ PropertyType["uri"] = "uri";
68
+ PropertyType["url"] = "url";
69
+ PropertyType["uuid"] = "uuid";
70
+ })(PropertyType || (PropertyType = {}));
71
+ /**
72
+ * Creates a new empty IndexedStructureDefinition.
73
+ * @returns The empty IndexedStructureDefinition.
74
+ * @deprecated Use globalSchema
75
+ */
76
+ function createSchema() {
77
+ return { types: {} };
78
+ }
79
+ function createTypeSchema(typeName, description) {
80
+ return {
81
+ display: typeName,
82
+ description,
83
+ properties: {},
84
+ searchParams: {
85
+ _lastUpdated: {
86
+ base: [typeName],
87
+ code: '_lastUpdated',
88
+ type: 'date',
89
+ expression: typeName + '.meta.lastUpdated',
90
+ },
91
+ },
92
+ };
93
+ }
94
+ /**
95
+ * Indexes a bundle of StructureDefinitions for faster lookup.
96
+ * @param bundle A FHIR bundle StructureDefinition resources.
97
+ */
98
+ function indexStructureDefinitionBundle(bundle) {
99
+ for (const entry of bundle.entry) {
100
+ const resource = entry.resource;
101
+ if (resource.resourceType === 'StructureDefinition') {
102
+ indexStructureDefinition(globalSchema, resource);
103
+ }
104
+ }
105
+ }
106
+ /**
107
+ * Indexes a StructureDefinition for fast lookup.
108
+ * See comments on IndexedStructureDefinition for more details.
109
+ * @param schema The output IndexedStructureDefinition.
110
+ * @param structureDefinition The original StructureDefinition.
111
+ */
112
+ function indexStructureDefinition(schema, structureDefinition) {
113
+ var _a;
114
+ const typeName = structureDefinition.name;
115
+ if (!typeName) {
116
+ return;
117
+ }
118
+ if (!(typeName in schema.types)) {
119
+ schema.types[typeName] = createTypeSchema(typeName, structureDefinition.description);
120
+ }
121
+ const elements = (_a = structureDefinition.snapshot) === null || _a === void 0 ? void 0 : _a.element;
122
+ if (elements) {
123
+ // Filter out any elements missing path or type
124
+ const filtered = elements.filter((e) => e.path !== typeName && e.path);
125
+ // First pass, build types
126
+ filtered.forEach((element) => indexType(schema, element));
127
+ // Second pass, build properties
128
+ filtered.forEach((element) => indexProperty(schema, element));
129
+ }
130
+ }
131
+ /**
132
+ * Indexes TypeSchema from an ElementDefinition.
133
+ * In the common case, there will be many ElementDefinition instances per TypeSchema.
134
+ * Only the first occurrence is saved.
135
+ * @param schema The output IndexedStructureDefinition.
136
+ * @param element The input ElementDefinition.
137
+ */
138
+ function indexType(schema, element) {
139
+ var _a, _b;
140
+ const path = element.path;
141
+ const typeCode = (_b = (_a = element.type) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.code;
142
+ if (typeCode !== 'Element' && typeCode !== 'BackboneElement') {
143
+ return;
144
+ }
145
+ const parts = path.split('.');
146
+ const typeName = buildTypeName(parts);
147
+ if (!(typeName in schema.types)) {
148
+ schema.types[typeName] = createTypeSchema(typeName, element.definition);
149
+ schema.types[typeName].parentType = buildTypeName(parts.slice(0, parts.length - 1));
150
+ }
151
+ }
152
+ /**
153
+ * Indexes PropertySchema from an ElementDefinition.
154
+ * @param schema The output IndexedStructureDefinition.
155
+ * @param element The input ElementDefinition.
156
+ */
157
+ function indexProperty(schema, element) {
158
+ const path = element.path;
159
+ const parts = path.split('.');
160
+ if (parts.length === 1) {
161
+ return;
162
+ }
163
+ const typeName = buildTypeName(parts.slice(0, parts.length - 1));
164
+ const typeSchema = schema.types[typeName];
165
+ if (!typeSchema) {
166
+ return;
167
+ }
168
+ const key = parts[parts.length - 1];
169
+ typeSchema.properties[key] = element;
170
+ }
171
+ /**
172
+ * Indexes a SearchParameter resource for fast lookup.
173
+ * Indexes by SearchParameter.code, which is the query string parameter name.
174
+ * @param schema The output IndexedStructureDefinition.
175
+ * @param searchParam The SearchParameter resource.
176
+ */
177
+ function indexSearchParameter(schema, searchParam) {
178
+ if (!searchParam.base) {
179
+ return;
180
+ }
181
+ for (const resourceType of searchParam.base) {
182
+ const typeSchema = schema.types[resourceType];
183
+ if (!typeSchema) {
184
+ continue;
185
+ }
186
+ if (!typeSchema.searchParams) {
187
+ typeSchema.searchParams = {};
188
+ }
189
+ typeSchema.searchParams[searchParam.code] = searchParam;
190
+ }
191
+ }
192
+ function buildTypeName(components) {
193
+ return components.map(capitalize).join('');
194
+ }
195
+ function getPropertyDisplayName(path) {
196
+ // Get the property name, which is the remainder after the last period
197
+ // For example, for path "Patient.birthDate"
198
+ // the property name is "birthDate"
199
+ const propertyName = path.replaceAll('[x]', '').split('.').pop();
200
+ // Special case for ID
201
+ if (propertyName === 'id') {
202
+ return 'ID';
203
+ }
204
+ // Split by capital letters
205
+ // Capitalize the first letter of each word
206
+ // Join together with spaces in between
207
+ // Then normalize whitespace to single space character
208
+ // For example, for property name "birthDate",
209
+ // the display name is "Birth Date".
210
+ return propertyName
211
+ .split(/(?=[A-Z])/)
212
+ .map(capitalize)
213
+ .join(' ')
214
+ .replace('_', ' ')
215
+ .replace(/\s+/g, ' ');
216
+ }
217
+ /**
218
+ * Global schema singleton.
219
+ */
220
+ const globalSchema = baseSchema;
221
+
222
+ export { PropertyType, buildTypeName, createSchema, createTypeSchema, getPropertyDisplayName, globalSchema, indexSearchParameter, indexStructureDefinition, indexStructureDefinitionBundle };
223
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sources":["../../src/types.ts"],"sourcesContent":["import {\n Bundle,\n BundleEntry,\n ElementDefinition,\n Resource,\n SearchParameter,\n StructureDefinition,\n} from '@medplum/fhirtypes';\nimport baseSchema from './base-schema.json';\nimport { capitalize } from './utils';\n\n/**\n * List of property types.\n * http://www.hl7.org/fhir/valueset-defined-types.html\n * The list here includes additions found from StructureDefinition resources.\n */\nexport enum PropertyType {\n Address = 'Address',\n Age = 'Age',\n Annotation = 'Annotation',\n Attachment = 'Attachment',\n BackboneElement = 'BackboneElement',\n CodeableConcept = 'CodeableConcept',\n Coding = 'Coding',\n ContactDetail = 'ContactDetail',\n ContactPoint = 'ContactPoint',\n Contributor = 'Contributor',\n Count = 'Count',\n DataRequirement = 'DataRequirement',\n Distance = 'Distance',\n Dosage = 'Dosage',\n Duration = 'Duration',\n Expression = 'Expression',\n Extension = 'Extension',\n HumanName = 'HumanName',\n Identifier = 'Identifier',\n MarketingStatus = 'MarketingStatus',\n Meta = 'Meta',\n Money = 'Money',\n Narrative = 'Narrative',\n ParameterDefinition = 'ParameterDefinition',\n Period = 'Period',\n Population = 'Population',\n ProdCharacteristic = 'ProdCharacteristic',\n ProductShelfLife = 'ProductShelfLife',\n Quantity = 'Quantity',\n Range = 'Range',\n Ratio = 'Ratio',\n Reference = 'Reference',\n RelatedArtifact = 'RelatedArtifact',\n SampledData = 'SampledData',\n Signature = 'Signature',\n SubstanceAmount = 'SubstanceAmount',\n SystemString = 'http://hl7.org/fhirpath/System.String',\n Timing = 'Timing',\n TriggerDefinition = 'TriggerDefinition',\n UsageContext = 'UsageContext',\n base64Binary = 'base64Binary',\n boolean = 'boolean',\n canonical = 'canonical',\n code = 'code',\n date = 'date',\n dateTime = 'dateTime',\n decimal = 'decimal',\n id = 'id',\n instant = 'instant',\n integer = 'integer',\n markdown = 'markdown',\n oid = 'oid',\n positiveInt = 'positiveInt',\n string = 'string',\n time = 'time',\n unsignedInt = 'unsignedInt',\n uri = 'uri',\n url = 'url',\n uuid = 'uuid',\n}\n\n/**\n * An IndexedStructureDefinition is a lookup-optimized version of a StructureDefinition.\n *\n * StructureDefinition resources contain schema information for other resource types.\n * These schemas can be used to automatically generate user interface elements for\n * resources.\n *\n * However, a StructureDefinition resource is not optimized for realtime lookups. All\n * resource types, sub types, and property definitions are stored in a flat array of\n * ElementDefinition objects. Therefore, to lookup the schema for a property (i.e., \"Patient.name\")\n * requires a linear scan of all ElementDefinition objects\n *\n * A StructureDefinition resource contains information about one or more types.\n * For example, the \"Patient\" StructureDefinition includes \"Patient\", \"Patient_Contact\",\n * \"Patient_Communication\", and \"Patient_Link\". This is inefficient.\n *\n * Instead, we create an indexed version of the StructureDefinition, called IndexedStructureDefinition.\n * In an IndexedStructureDefinition, retrieving a property definition is a hashtable lookup.\n *\n * The hierarchy is:\n * IndexedStructureDefinition - top level for one resource type\n * TypeSchema - one per resource type and all contained BackboneElements\n * PropertySchema - one per property/field\n */\nexport interface IndexedStructureDefinition {\n types: { [resourceType: string]: TypeSchema };\n}\n\n/**\n * An indexed TypeSchema.\n *\n * Example: The IndexedStructureDefinition for \"Patient\" would include the following TypeSchemas:\n * 1) Patient\n * 2) Patient_Contact\n * 3) Patient_Communication\n * 4) Patient_Link\n */\nexport interface TypeSchema {\n display: string;\n properties: { [name: string]: ElementDefinition };\n searchParams?: { [code: string]: SearchParameter };\n description?: string;\n parentType?: string;\n}\n\n/**\n * Creates a new empty IndexedStructureDefinition.\n * @returns The empty IndexedStructureDefinition.\n * @deprecated Use globalSchema\n */\nexport function createSchema(): IndexedStructureDefinition {\n return { types: {} };\n}\n\nexport function createTypeSchema(typeName: string, description: string | undefined): TypeSchema {\n return {\n display: typeName,\n description,\n properties: {},\n searchParams: {\n _lastUpdated: {\n base: [typeName],\n code: '_lastUpdated',\n type: 'date',\n expression: typeName + '.meta.lastUpdated',\n } as SearchParameter,\n },\n };\n}\n\n/**\n * Indexes a bundle of StructureDefinitions for faster lookup.\n * @param bundle A FHIR bundle StructureDefinition resources.\n */\nexport function indexStructureDefinitionBundle(bundle: Bundle): void {\n for (const entry of bundle.entry as BundleEntry[]) {\n const resource = entry.resource as Resource;\n if (resource.resourceType === 'StructureDefinition') {\n indexStructureDefinition(globalSchema, resource);\n }\n }\n}\n\n/**\n * Indexes a StructureDefinition for fast lookup.\n * See comments on IndexedStructureDefinition for more details.\n * @param schema The output IndexedStructureDefinition.\n * @param structureDefinition The original StructureDefinition.\n */\nexport function indexStructureDefinition(\n schema: IndexedStructureDefinition,\n structureDefinition: StructureDefinition\n): void {\n const typeName = structureDefinition.name;\n if (!typeName) {\n return;\n }\n\n if (!(typeName in schema.types)) {\n schema.types[typeName] = createTypeSchema(typeName, structureDefinition.description);\n }\n\n const elements = structureDefinition.snapshot?.element;\n if (elements) {\n // Filter out any elements missing path or type\n const filtered = elements.filter((e) => e.path !== typeName && e.path);\n\n // First pass, build types\n filtered.forEach((element) => indexType(schema, element));\n\n // Second pass, build properties\n filtered.forEach((element) => indexProperty(schema, element));\n }\n}\n\n/**\n * Indexes TypeSchema from an ElementDefinition.\n * In the common case, there will be many ElementDefinition instances per TypeSchema.\n * Only the first occurrence is saved.\n * @param schema The output IndexedStructureDefinition.\n * @param element The input ElementDefinition.\n */\nfunction indexType(schema: IndexedStructureDefinition, element: ElementDefinition): void {\n const path = element.path as string;\n const typeCode = element.type?.[0]?.code;\n if (typeCode !== 'Element' && typeCode !== 'BackboneElement') {\n return;\n }\n const parts = path.split('.');\n const typeName = buildTypeName(parts);\n if (!(typeName in schema.types)) {\n schema.types[typeName] = createTypeSchema(typeName, element.definition);\n schema.types[typeName].parentType = buildTypeName(parts.slice(0, parts.length - 1));\n }\n}\n\n/**\n * Indexes PropertySchema from an ElementDefinition.\n * @param schema The output IndexedStructureDefinition.\n * @param element The input ElementDefinition.\n */\nfunction indexProperty(schema: IndexedStructureDefinition, element: ElementDefinition): void {\n const path = element.path as string;\n const parts = path.split('.');\n if (parts.length === 1) {\n return;\n }\n const typeName = buildTypeName(parts.slice(0, parts.length - 1));\n const typeSchema = schema.types[typeName];\n if (!typeSchema) {\n return;\n }\n const key = parts[parts.length - 1];\n typeSchema.properties[key] = element;\n}\n\n/**\n * Indexes a SearchParameter resource for fast lookup.\n * Indexes by SearchParameter.code, which is the query string parameter name.\n * @param schema The output IndexedStructureDefinition.\n * @param searchParam The SearchParameter resource.\n */\nexport function indexSearchParameter(schema: IndexedStructureDefinition, searchParam: SearchParameter): void {\n if (!searchParam.base) {\n return;\n }\n\n for (const resourceType of searchParam.base) {\n const typeSchema = schema.types[resourceType];\n if (!typeSchema) {\n continue;\n }\n\n if (!typeSchema.searchParams) {\n typeSchema.searchParams = {};\n }\n\n typeSchema.searchParams[searchParam.code as string] = searchParam;\n }\n}\n\nexport function buildTypeName(components: string[]): string {\n return components.map(capitalize).join('');\n}\n\nexport function getPropertyDisplayName(path: string): string {\n // Get the property name, which is the remainder after the last period\n // For example, for path \"Patient.birthDate\"\n // the property name is \"birthDate\"\n const propertyName = path.replaceAll('[x]', '').split('.').pop() as string;\n\n // Special case for ID\n if (propertyName === 'id') {\n return 'ID';\n }\n\n // Split by capital letters\n // Capitalize the first letter of each word\n // Join together with spaces in between\n // Then normalize whitespace to single space character\n // For example, for property name \"birthDate\",\n // the display name is \"Birth Date\".\n return propertyName\n .split(/(?=[A-Z])/)\n .map(capitalize)\n .join(' ')\n .replace('_', ' ')\n .replace(/\\s+/g, ' ');\n}\n\n/**\n * Global schema singleton.\n */\nexport const globalSchema = baseSchema as IndexedStructureDefinition;\n"],"names":[],"mappings":";;;AAWA;;;;AAIG;IACS,aA4DX;AA5DD,CAAA,UAAY,YAAY,EAAA;AACtB,IAAA,YAAA,CAAA,SAAA,CAAA,GAAA,SAAmB,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