@atomic-ehr/codegen 0.0.1-canary.20251107144815.ed5b2c9 → 0.0.1-canary.20251110083633.71e5f87

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.
package/dist/index.js CHANGED
@@ -3614,18 +3614,19 @@ var mkTypeSchemaIndex = (schemas, logger) => {
3614
3614
  const exportTree = async (filename) => {
3615
3615
  const tree = {};
3616
3616
  for (const [pkgId, shemas] of Object.entries(groupByPackages(schemas))) {
3617
- tree[pkgId] = { complexTypes: {}, resources: {}, profiles: {} };
3617
+ tree[pkgId] = {
3618
+ "primitive-type": {},
3619
+ "complex-type": {},
3620
+ resource: {},
3621
+ "value-set": {},
3622
+ nested: {},
3623
+ binding: {},
3624
+ profile: {},
3625
+ logical: {}
3626
+ };
3618
3627
  for (const schema of shemas) {
3619
3628
  schema.identifier;
3620
- if (isResourceTypeSchema(schema)) {
3621
- tree[pkgId].resources[schema.identifier.url] = {};
3622
- }
3623
- if (isProfileTypeSchema(schema)) {
3624
- tree[pkgId].profiles[schema.identifier.url] = {};
3625
- }
3626
- if (isComplexTypeTypeSchema(schema)) {
3627
- tree[pkgId].complexTypes[schema.identifier.url] = {};
3628
- }
3629
+ tree[pkgId][schema.identifier.kind][schema.identifier.url] = {};
3629
3630
  }
3630
3631
  }
3631
3632
  const raw = filename.endsWith(".yaml") ? YAML.stringify(tree) : JSON.stringify(tree, void 0, 2);