@openhi/constructs 0.0.107 → 0.0.108
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/lib/{chunk-CHPEQRXU.mjs → chunk-6J7NQ6A4.mjs} +2 -2
- package/lib/{chunk-YU2HRNUP.mjs → chunk-AJ3G3THO.mjs} +2 -2
- package/lib/{chunk-L6UAP4KP.mjs → chunk-EST32BJ2.mjs} +3 -3
- package/lib/chunk-GT7SFZLP.mjs +126 -0
- package/lib/chunk-GT7SFZLP.mjs.map +1 -0
- package/lib/{chunk-36UPY7YQ.mjs → chunk-L3QHWDHB.mjs} +5 -5
- package/lib/chunk-LKG3I536.mjs +1383 -0
- package/lib/chunk-LKG3I536.mjs.map +1 -0
- package/lib/{chunk-VYDIGFIX.mjs → chunk-QR5JVSCF.mjs} +11 -1
- package/lib/chunk-QR5JVSCF.mjs.map +1 -0
- package/lib/{chunk-AO3E22CS.mjs → chunk-WWGJZNXJ.mjs} +74 -4
- package/lib/chunk-WWGJZNXJ.mjs.map +1 -0
- package/lib/chunk-ZGOHB4RA.mjs +96 -0
- package/lib/chunk-ZGOHB4RA.mjs.map +1 -0
- package/lib/index.js +1043 -5
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +5 -5
- package/lib/pre-token-generation.handler.js +1356 -10
- package/lib/pre-token-generation.handler.js.map +1 -1
- package/lib/pre-token-generation.handler.mjs +103 -5
- package/lib/pre-token-generation.handler.mjs.map +1 -1
- package/lib/provision-default-workspace.handler.js +1172 -1
- package/lib/provision-default-workspace.handler.js.map +1 -1
- package/lib/provision-default-workspace.handler.mjs +5 -5
- package/lib/rest-api-lambda.handler.js +2769 -2434
- package/lib/rest-api-lambda.handler.js.map +1 -1
- package/lib/rest-api-lambda.handler.mjs +630 -1464
- package/lib/rest-api-lambda.handler.mjs.map +1 -1
- package/lib/seed-demo-data.handler.js +1173 -9
- package/lib/seed-demo-data.handler.js.map +1 -1
- package/lib/seed-demo-data.handler.mjs +5 -5
- package/lib/seed-system-data.handler.js +10 -0
- package/lib/seed-system-data.handler.js.map +1 -1
- package/lib/seed-system-data.handler.mjs +2 -2
- package/package.json +2 -2
- package/lib/chunk-AO3E22CS.mjs.map +0 -1
- package/lib/chunk-JUNL76HF.mjs +0 -428
- package/lib/chunk-JUNL76HF.mjs.map +0 -1
- package/lib/chunk-VYDIGFIX.mjs.map +0 -1
- package/lib/chunk-YZZDUJHI.mjs +0 -37
- package/lib/chunk-YZZDUJHI.mjs.map +0 -1
- /package/lib/{chunk-CHPEQRXU.mjs.map → chunk-6J7NQ6A4.mjs.map} +0 -0
- /package/lib/{chunk-YU2HRNUP.mjs.map → chunk-AJ3G3THO.mjs.map} +0 -0
- /package/lib/{chunk-L6UAP4KP.mjs.map → chunk-EST32BJ2.mjs.map} +0 -0
- /package/lib/{chunk-36UPY7YQ.mjs.map → chunk-L3QHWDHB.mjs.map} +0 -0
package/lib/index.js
CHANGED
|
@@ -2721,7 +2721,7 @@ var demoDevUserPartitionKeys = (devUsers) => {
|
|
|
2721
2721
|
// src/workflows/control-plane/seed-demo-data/seed-demo-data-lambda.ts
|
|
2722
2722
|
var import_node_fs7 = __toESM(require("fs"));
|
|
2723
2723
|
var import_node_path7 = __toESM(require("path"));
|
|
2724
|
-
var
|
|
2724
|
+
var import_types9 = require("@openhi/types");
|
|
2725
2725
|
var import_aws_cdk_lib12 = require("aws-cdk-lib");
|
|
2726
2726
|
var import_aws_events6 = require("aws-cdk-lib/aws-events");
|
|
2727
2727
|
var import_aws_events_targets2 = require("aws-cdk-lib/aws-events-targets");
|
|
@@ -2734,7 +2734,7 @@ var import_constructs11 = require("constructs");
|
|
|
2734
2734
|
var import_node_crypto = require("crypto");
|
|
2735
2735
|
var import_client_cognito_identity_provider = require("@aws-sdk/client-cognito-identity-provider");
|
|
2736
2736
|
var import_client_dynamodb2 = require("@aws-sdk/client-dynamodb");
|
|
2737
|
-
var
|
|
2737
|
+
var import_types8 = require("@openhi/types");
|
|
2738
2738
|
var import_workflows3 = __toESM(require_lib2());
|
|
2739
2739
|
|
|
2740
2740
|
// src/data/dynamo/dynamo-control-service.ts
|
|
@@ -2989,6 +2989,16 @@ var MembershipEntity = new import_electrodb2.Entity({
|
|
|
2989
2989
|
msgId: {
|
|
2990
2990
|
type: "string",
|
|
2991
2991
|
required: false
|
|
2992
|
+
},
|
|
2993
|
+
/**
|
|
2994
|
+
* Denormalized `linked-data-identity` Reference (e.g. `Practitioner/abc`).
|
|
2995
|
+
* Populated from the FHIR extension on the Membership resource at write
|
|
2996
|
+
* time so future GSIs can index data-plane identity lookups without
|
|
2997
|
+
* deserializing the full resource JSON. See ADR 2026-03-13-02 §6.
|
|
2998
|
+
*/
|
|
2999
|
+
linkedDataIdentityRef: {
|
|
3000
|
+
type: "string",
|
|
3001
|
+
required: false
|
|
2992
3002
|
}
|
|
2993
3003
|
},
|
|
2994
3004
|
indexes: {
|
|
@@ -3581,8 +3591,1036 @@ var import_types4 = require("@openhi/types");
|
|
|
3581
3591
|
var import_types5 = require("@openhi/types");
|
|
3582
3592
|
|
|
3583
3593
|
// src/data/operations/control/workspace/workspace-create-operation.ts
|
|
3594
|
+
var import_types7 = require("@openhi/types");
|
|
3595
|
+
|
|
3596
|
+
// src/data/dynamo/dynamo-data-service.ts
|
|
3597
|
+
var import_electrodb10 = require("electrodb");
|
|
3598
|
+
|
|
3599
|
+
// src/data/dynamo/entities/data-entity-common.ts
|
|
3600
|
+
var import_electrodb9 = require("electrodb");
|
|
3601
|
+
var dataEntityAttributes = {
|
|
3602
|
+
/** Sort key. "CURRENT" for current version; version history in S3. */
|
|
3603
|
+
sk: {
|
|
3604
|
+
type: "string",
|
|
3605
|
+
required: true,
|
|
3606
|
+
default: "CURRENT"
|
|
3607
|
+
},
|
|
3608
|
+
tenantId: {
|
|
3609
|
+
type: "string",
|
|
3610
|
+
required: true
|
|
3611
|
+
},
|
|
3612
|
+
workspaceId: {
|
|
3613
|
+
type: "string",
|
|
3614
|
+
required: true
|
|
3615
|
+
},
|
|
3616
|
+
/** FHIR Resource.id; logical id in URL and PK. */
|
|
3617
|
+
id: {
|
|
3618
|
+
type: "string",
|
|
3619
|
+
required: true
|
|
3620
|
+
},
|
|
3621
|
+
/** FHIR resource as JSON string. JSON.stringify(resource) on write; JSON.parse(item.resource) on read. */
|
|
3622
|
+
resource: {
|
|
3623
|
+
type: "string",
|
|
3624
|
+
required: true
|
|
3625
|
+
},
|
|
3626
|
+
/**
|
|
3627
|
+
* Summary projection of the FHIR resource as a JSON string (uncompressed). Populated on every
|
|
3628
|
+
* write via `extractSummary(resource)` so GSI projections can surface list/lookup data without
|
|
3629
|
+
* reading the compressed `resource` blob. Kept uncompressed because the summary is small and
|
|
3630
|
+
* must be fast to retrieve without encode/decode overhead.
|
|
3631
|
+
*
|
|
3632
|
+
* @see sites/www-docs/content/architecture/adr/2026-04-17-02-fhir-summary-projection-for-gsi-access-patterns.md
|
|
3633
|
+
*/
|
|
3634
|
+
summary: {
|
|
3635
|
+
type: "string",
|
|
3636
|
+
required: true
|
|
3637
|
+
},
|
|
3638
|
+
/** Version id (e.g. ULID). Tracks current version; S3 history key. */
|
|
3639
|
+
vid: {
|
|
3640
|
+
type: "string",
|
|
3641
|
+
required: true
|
|
3642
|
+
},
|
|
3643
|
+
lastUpdated: {
|
|
3644
|
+
type: "string",
|
|
3645
|
+
required: true
|
|
3646
|
+
},
|
|
3647
|
+
/**
|
|
3648
|
+
* Shard index segment for the GSI1 partition key. Computed deterministically from `id`
|
|
3649
|
+
* via `computeShard` so updates always land on the same shard. Stored as a string because
|
|
3650
|
+
* it appears as a literal segment in the GSI1 PK template; the underlying value is 0..3.
|
|
3651
|
+
* Not `required` because the value is derived via `watch`/`set`; ElectroDB's required-field
|
|
3652
|
+
* check runs before watch propagation, so callers must not fail validation on a derived field.
|
|
3653
|
+
*
|
|
3654
|
+
* @see sites/www-docs/content/packages/@openhi/constructs/data/dynamo/single-table-design.md — GSI1 (sharded)
|
|
3655
|
+
*/
|
|
3656
|
+
gsi1Shard: {
|
|
3657
|
+
type: "string",
|
|
3658
|
+
watch: ["id"],
|
|
3659
|
+
set: (_val, item) => {
|
|
3660
|
+
if (typeof item?.id !== "string" || item.id.length === 0) {
|
|
3661
|
+
return void 0;
|
|
3662
|
+
}
|
|
3663
|
+
return String(computeShard(item.id));
|
|
3664
|
+
}
|
|
3665
|
+
},
|
|
3666
|
+
/**
|
|
3667
|
+
* GSI1 sort key. Written as the index's SK verbatim so list endpoints can
|
|
3668
|
+
* use `BEGINS_WITH` for prefix queries (e.g. `?name=Sm` against Patient).
|
|
3669
|
+
* Computed at write time via `extractSortKey(resource)` per DR-004:
|
|
3670
|
+
* - Labeled types (LABEL_PATHS): `<normalizedLabel>#<id>`
|
|
3671
|
+
* - Unlabeled types: `<ISO-8601 lastUpdated>#<id>`
|
|
3672
|
+
* The factory deliberately does not derive this from `lastUpdated`/`id`
|
|
3673
|
+
* — that would lock every type into the unlabeled fallback and defeat
|
|
3674
|
+
* label-based BEGINS_WITH on labeled types.
|
|
3675
|
+
*
|
|
3676
|
+
* @see openhi-planning DR-004
|
|
3677
|
+
*/
|
|
3678
|
+
gsi1sk: {
|
|
3679
|
+
type: "string",
|
|
3680
|
+
required: true
|
|
3681
|
+
},
|
|
3682
|
+
deleted: {
|
|
3683
|
+
type: "boolean",
|
|
3684
|
+
required: false
|
|
3685
|
+
},
|
|
3686
|
+
bundleId: {
|
|
3687
|
+
type: "string",
|
|
3688
|
+
required: false
|
|
3689
|
+
},
|
|
3690
|
+
msgId: {
|
|
3691
|
+
type: "string",
|
|
3692
|
+
required: false
|
|
3693
|
+
}
|
|
3694
|
+
};
|
|
3695
|
+
function createDataEntity(entity, resourceTypeLabel) {
|
|
3696
|
+
return new import_electrodb9.Entity({
|
|
3697
|
+
model: {
|
|
3698
|
+
entity,
|
|
3699
|
+
service: "data",
|
|
3700
|
+
version: "01"
|
|
3701
|
+
},
|
|
3702
|
+
attributes: dataEntityAttributes,
|
|
3703
|
+
indexes: {
|
|
3704
|
+
/** Base table: PK, SK (data store key names). PK is built from tenantId, workspaceId, id. */
|
|
3705
|
+
record: {
|
|
3706
|
+
pk: {
|
|
3707
|
+
field: "PK",
|
|
3708
|
+
composite: ["tenantId", "workspaceId", "id"],
|
|
3709
|
+
template: `TID#\${tenantId}#WID#\${workspaceId}#RT#${resourceTypeLabel}#ID#\${id}`
|
|
3710
|
+
},
|
|
3711
|
+
sk: {
|
|
3712
|
+
field: "SK",
|
|
3713
|
+
composite: ["sk"]
|
|
3714
|
+
}
|
|
3715
|
+
},
|
|
3716
|
+
/**
|
|
3717
|
+
* GSI1 — Unified Sharded List: list all resources of this type in a workspace; reads fan
|
|
3718
|
+
* out across the four shards and merge by SK. SK is the writer-supplied `gsi1sk` verbatim
|
|
3719
|
+
* (per DR-004) so labeled types serve `BEGINS_WITH` prefix queries on the natural label.
|
|
3720
|
+
* `casing: "none"` is required on the SK because the writer (`extractSortKey`) already
|
|
3721
|
+
* applies DR-004 normalization — ElectroDB's default lowercasing would mangle the
|
|
3722
|
+
* ISO-8601 unlabeled fallback (`T`/`Z` → `t`/`z`).
|
|
3723
|
+
*/
|
|
3724
|
+
gsi1: {
|
|
3725
|
+
index: "GSI1",
|
|
3726
|
+
pk: {
|
|
3727
|
+
field: "GSI1PK",
|
|
3728
|
+
composite: ["tenantId", "workspaceId", "gsi1Shard"],
|
|
3729
|
+
template: `TID#\${tenantId}#WID#\${workspaceId}#RT#${resourceTypeLabel}#SHARD#\${gsi1Shard}`
|
|
3730
|
+
},
|
|
3731
|
+
sk: {
|
|
3732
|
+
field: "GSI1SK",
|
|
3733
|
+
casing: "none",
|
|
3734
|
+
composite: ["gsi1sk"],
|
|
3735
|
+
template: `\${gsi1sk}`
|
|
3736
|
+
}
|
|
3737
|
+
}
|
|
3738
|
+
}
|
|
3739
|
+
});
|
|
3740
|
+
}
|
|
3741
|
+
|
|
3742
|
+
// src/data/dynamo/entities/data/account-entity.ts
|
|
3743
|
+
var AccountEntity = createDataEntity("account", "Account");
|
|
3744
|
+
|
|
3745
|
+
// src/data/dynamo/entities/data/activity-definition-entity.ts
|
|
3746
|
+
var ActivityDefinitionEntity = createDataEntity(
|
|
3747
|
+
"activitydefinition",
|
|
3748
|
+
"ActivityDefinition"
|
|
3749
|
+
);
|
|
3750
|
+
|
|
3751
|
+
// src/data/dynamo/entities/data/adverse-event-entity.ts
|
|
3752
|
+
var AdverseEventEntity = createDataEntity(
|
|
3753
|
+
"adverseevent",
|
|
3754
|
+
"AdverseEvent"
|
|
3755
|
+
);
|
|
3756
|
+
|
|
3757
|
+
// src/data/dynamo/entities/data/allergy-intolerance-entity.ts
|
|
3758
|
+
var AllergyIntoleranceEntity = createDataEntity(
|
|
3759
|
+
"allergyintolerance",
|
|
3760
|
+
"AllergyIntolerance"
|
|
3761
|
+
);
|
|
3762
|
+
|
|
3763
|
+
// src/data/dynamo/entities/data/appointment-entity.ts
|
|
3764
|
+
var AppointmentEntity = createDataEntity("appointment", "Appointment");
|
|
3765
|
+
|
|
3766
|
+
// src/data/dynamo/entities/data/appointment-response-entity.ts
|
|
3767
|
+
var AppointmentResponseEntity = createDataEntity(
|
|
3768
|
+
"appointmentresponse",
|
|
3769
|
+
"AppointmentResponse"
|
|
3770
|
+
);
|
|
3771
|
+
|
|
3772
|
+
// src/data/dynamo/entities/data/audit-event-entity.ts
|
|
3773
|
+
var AuditEventEntity = createDataEntity("auditevent", "AuditEvent");
|
|
3774
|
+
|
|
3775
|
+
// src/data/dynamo/entities/data/basic-entity.ts
|
|
3776
|
+
var BasicEntity = createDataEntity("basic", "Basic");
|
|
3777
|
+
|
|
3778
|
+
// src/data/dynamo/entities/data/biologically-derived-product-entity.ts
|
|
3779
|
+
var BiologicallyDerivedProductEntity = createDataEntity(
|
|
3780
|
+
"biologicallyderivedproduct",
|
|
3781
|
+
"BiologicallyDerivedProduct"
|
|
3782
|
+
);
|
|
3783
|
+
|
|
3784
|
+
// src/data/dynamo/entities/data/body-structure-entity.ts
|
|
3785
|
+
var BodyStructureEntity = createDataEntity(
|
|
3786
|
+
"bodystructure",
|
|
3787
|
+
"BodyStructure"
|
|
3788
|
+
);
|
|
3789
|
+
|
|
3790
|
+
// src/data/dynamo/entities/data/capability-statement-entity.ts
|
|
3791
|
+
var CapabilityStatementEntity = createDataEntity(
|
|
3792
|
+
"capabilitystatement",
|
|
3793
|
+
"CapabilityStatement"
|
|
3794
|
+
);
|
|
3795
|
+
|
|
3796
|
+
// src/data/dynamo/entities/data/care-plan-entity.ts
|
|
3797
|
+
var CarePlanEntity = createDataEntity("careplan", "CarePlan");
|
|
3798
|
+
|
|
3799
|
+
// src/data/dynamo/entities/data/care-team-entity.ts
|
|
3800
|
+
var CareTeamEntity = createDataEntity("careteam", "CareTeam");
|
|
3801
|
+
|
|
3802
|
+
// src/data/dynamo/entities/data/catalog-entry-entity.ts
|
|
3803
|
+
var CatalogEntryEntity = createDataEntity(
|
|
3804
|
+
"catalogentry",
|
|
3805
|
+
"CatalogEntry"
|
|
3806
|
+
);
|
|
3807
|
+
|
|
3808
|
+
// src/data/dynamo/entities/data/charge-item-definition-entity.ts
|
|
3809
|
+
var ChargeItemDefinitionEntity = createDataEntity(
|
|
3810
|
+
"chargeitemdefinition",
|
|
3811
|
+
"ChargeItemDefinition"
|
|
3812
|
+
);
|
|
3813
|
+
|
|
3814
|
+
// src/data/dynamo/entities/data/charge-item-entity.ts
|
|
3815
|
+
var ChargeItemEntity = createDataEntity("chargeitem", "ChargeItem");
|
|
3816
|
+
|
|
3817
|
+
// src/data/dynamo/entities/data/claim-entity.ts
|
|
3818
|
+
var ClaimEntity = createDataEntity("claim", "Claim");
|
|
3819
|
+
|
|
3820
|
+
// src/data/dynamo/entities/data/claim-response-entity.ts
|
|
3821
|
+
var ClaimResponseEntity = createDataEntity(
|
|
3822
|
+
"claimresponse",
|
|
3823
|
+
"ClaimResponse"
|
|
3824
|
+
);
|
|
3825
|
+
|
|
3826
|
+
// src/data/dynamo/entities/data/clinical-impression-entity.ts
|
|
3827
|
+
var ClinicalImpressionEntity = createDataEntity(
|
|
3828
|
+
"clinicalimpression",
|
|
3829
|
+
"ClinicalImpression"
|
|
3830
|
+
);
|
|
3831
|
+
|
|
3832
|
+
// src/data/dynamo/entities/data/code-system-entity.ts
|
|
3833
|
+
var CodeSystemEntity = createDataEntity("codesystem", "CodeSystem");
|
|
3834
|
+
|
|
3835
|
+
// src/data/dynamo/entities/data/communication-entity.ts
|
|
3836
|
+
var CommunicationEntity = createDataEntity(
|
|
3837
|
+
"communication",
|
|
3838
|
+
"Communication"
|
|
3839
|
+
);
|
|
3840
|
+
|
|
3841
|
+
// src/data/dynamo/entities/data/communication-request-entity.ts
|
|
3842
|
+
var CommunicationRequestEntity = createDataEntity(
|
|
3843
|
+
"communicationrequest",
|
|
3844
|
+
"CommunicationRequest"
|
|
3845
|
+
);
|
|
3846
|
+
|
|
3847
|
+
// src/data/dynamo/entities/data/compartment-definition-entity.ts
|
|
3848
|
+
var CompartmentDefinitionEntity = createDataEntity(
|
|
3849
|
+
"compartmentdefinition",
|
|
3850
|
+
"CompartmentDefinition"
|
|
3851
|
+
);
|
|
3852
|
+
|
|
3853
|
+
// src/data/dynamo/entities/data/composition-entity.ts
|
|
3854
|
+
var CompositionEntity = createDataEntity("composition", "Composition");
|
|
3855
|
+
|
|
3856
|
+
// src/data/dynamo/entities/data/concept-map-entity.ts
|
|
3857
|
+
var ConceptMapEntity = createDataEntity("conceptmap", "ConceptMap");
|
|
3858
|
+
|
|
3859
|
+
// src/data/dynamo/entities/data/condition-entity.ts
|
|
3860
|
+
var ConditionEntity = createDataEntity("condition", "Condition");
|
|
3861
|
+
|
|
3862
|
+
// src/data/dynamo/entities/data/consent-entity.ts
|
|
3863
|
+
var ConsentEntity = createDataEntity("consent", "Consent");
|
|
3864
|
+
|
|
3865
|
+
// src/data/dynamo/entities/data/contract-entity.ts
|
|
3866
|
+
var ContractEntity = createDataEntity("contract", "Contract");
|
|
3867
|
+
|
|
3868
|
+
// src/data/dynamo/entities/data/coverage-eligibility-request-entity.ts
|
|
3869
|
+
var CoverageEligibilityRequestEntity = createDataEntity(
|
|
3870
|
+
"coverageeligibilityrequest",
|
|
3871
|
+
"CoverageEligibilityRequest"
|
|
3872
|
+
);
|
|
3873
|
+
|
|
3874
|
+
// src/data/dynamo/entities/data/coverage-eligibility-response-entity.ts
|
|
3875
|
+
var CoverageEligibilityResponseEntity = createDataEntity(
|
|
3876
|
+
"coverageeligibilityresponse",
|
|
3877
|
+
"CoverageEligibilityResponse"
|
|
3878
|
+
);
|
|
3879
|
+
|
|
3880
|
+
// src/data/dynamo/entities/data/coverage-entity.ts
|
|
3881
|
+
var CoverageEntity = createDataEntity("coverage", "Coverage");
|
|
3882
|
+
|
|
3883
|
+
// src/data/dynamo/entities/data/detected-issue-entity.ts
|
|
3884
|
+
var DetectedIssueEntity = createDataEntity(
|
|
3885
|
+
"detectedissue",
|
|
3886
|
+
"DetectedIssue"
|
|
3887
|
+
);
|
|
3888
|
+
|
|
3889
|
+
// src/data/dynamo/entities/data/device-definition-entity.ts
|
|
3890
|
+
var DeviceDefinitionEntity = createDataEntity(
|
|
3891
|
+
"devicedefinition",
|
|
3892
|
+
"DeviceDefinition"
|
|
3893
|
+
);
|
|
3894
|
+
|
|
3895
|
+
// src/data/dynamo/entities/data/device-entity.ts
|
|
3896
|
+
var DeviceEntity = createDataEntity("device", "Device");
|
|
3897
|
+
|
|
3898
|
+
// src/data/dynamo/entities/data/device-metric-entity.ts
|
|
3899
|
+
var DeviceMetricEntity = createDataEntity(
|
|
3900
|
+
"devicemetric",
|
|
3901
|
+
"DeviceMetric"
|
|
3902
|
+
);
|
|
3903
|
+
|
|
3904
|
+
// src/data/dynamo/entities/data/device-request-entity.ts
|
|
3905
|
+
var DeviceRequestEntity = createDataEntity(
|
|
3906
|
+
"devicerequest",
|
|
3907
|
+
"DeviceRequest"
|
|
3908
|
+
);
|
|
3909
|
+
|
|
3910
|
+
// src/data/dynamo/entities/data/device-use-statement-entity.ts
|
|
3911
|
+
var DeviceUseStatementEntity = createDataEntity(
|
|
3912
|
+
"deviceusestatement",
|
|
3913
|
+
"DeviceUseStatement"
|
|
3914
|
+
);
|
|
3915
|
+
|
|
3916
|
+
// src/data/dynamo/entities/data/diagnostic-report-entity.ts
|
|
3917
|
+
var DiagnosticReportEntity = createDataEntity(
|
|
3918
|
+
"diagnosticreport",
|
|
3919
|
+
"DiagnosticReport"
|
|
3920
|
+
);
|
|
3921
|
+
|
|
3922
|
+
// src/data/dynamo/entities/data/document-manifest-entity.ts
|
|
3923
|
+
var DocumentManifestEntity = createDataEntity(
|
|
3924
|
+
"documentmanifest",
|
|
3925
|
+
"DocumentManifest"
|
|
3926
|
+
);
|
|
3927
|
+
|
|
3928
|
+
// src/data/dynamo/entities/data/document-reference-entity.ts
|
|
3929
|
+
var DocumentReferenceEntity = createDataEntity(
|
|
3930
|
+
"documentreference",
|
|
3931
|
+
"DocumentReference"
|
|
3932
|
+
);
|
|
3933
|
+
|
|
3934
|
+
// src/data/dynamo/entities/data/effect-evidence-synthesis-entity.ts
|
|
3935
|
+
var EffectEvidenceSynthesisEntity = createDataEntity(
|
|
3936
|
+
"effectevidencesynthesis",
|
|
3937
|
+
"EffectEvidenceSynthesis"
|
|
3938
|
+
);
|
|
3939
|
+
|
|
3940
|
+
// src/data/dynamo/entities/data/encounter-entity.ts
|
|
3941
|
+
var EncounterEntity = createDataEntity("encounter", "Encounter");
|
|
3942
|
+
|
|
3943
|
+
// src/data/dynamo/entities/data/endpoint-entity.ts
|
|
3944
|
+
var EndpointEntity = createDataEntity("endpoint", "Endpoint");
|
|
3945
|
+
|
|
3946
|
+
// src/data/dynamo/entities/data/enrollment-request-entity.ts
|
|
3947
|
+
var EnrollmentRequestEntity = createDataEntity(
|
|
3948
|
+
"enrollmentrequest",
|
|
3949
|
+
"EnrollmentRequest"
|
|
3950
|
+
);
|
|
3951
|
+
|
|
3952
|
+
// src/data/dynamo/entities/data/enrollment-response-entity.ts
|
|
3953
|
+
var EnrollmentResponseEntity = createDataEntity(
|
|
3954
|
+
"enrollmentresponse",
|
|
3955
|
+
"EnrollmentResponse"
|
|
3956
|
+
);
|
|
3957
|
+
|
|
3958
|
+
// src/data/dynamo/entities/data/episode-of-care-entity.ts
|
|
3959
|
+
var EpisodeOfCareEntity = createDataEntity(
|
|
3960
|
+
"episodeofcare",
|
|
3961
|
+
"EpisodeOfCare"
|
|
3962
|
+
);
|
|
3963
|
+
|
|
3964
|
+
// src/data/dynamo/entities/data/event-definition-entity.ts
|
|
3965
|
+
var EventDefinitionEntity = createDataEntity(
|
|
3966
|
+
"eventdefinition",
|
|
3967
|
+
"EventDefinition"
|
|
3968
|
+
);
|
|
3969
|
+
|
|
3970
|
+
// src/data/dynamo/entities/data/evidence-entity.ts
|
|
3971
|
+
var EvidenceEntity = createDataEntity("evidence", "Evidence");
|
|
3972
|
+
|
|
3973
|
+
// src/data/dynamo/entities/data/evidence-variable-entity.ts
|
|
3974
|
+
var EvidenceVariableEntity = createDataEntity(
|
|
3975
|
+
"evidencevariable",
|
|
3976
|
+
"EvidenceVariable"
|
|
3977
|
+
);
|
|
3978
|
+
|
|
3979
|
+
// src/data/dynamo/entities/data/example-scenario-entity.ts
|
|
3980
|
+
var ExampleScenarioEntity = createDataEntity(
|
|
3981
|
+
"examplescenario",
|
|
3982
|
+
"ExampleScenario"
|
|
3983
|
+
);
|
|
3984
|
+
|
|
3985
|
+
// src/data/dynamo/entities/data/explanation-of-benefit-entity.ts
|
|
3986
|
+
var ExplanationOfBenefitEntity = createDataEntity(
|
|
3987
|
+
"explanationofbenefit",
|
|
3988
|
+
"ExplanationOfBenefit"
|
|
3989
|
+
);
|
|
3990
|
+
|
|
3991
|
+
// src/data/dynamo/entities/data/family-member-history-entity.ts
|
|
3992
|
+
var FamilyMemberHistoryEntity = createDataEntity(
|
|
3993
|
+
"familymemberhistory",
|
|
3994
|
+
"FamilyMemberHistory"
|
|
3995
|
+
);
|
|
3996
|
+
|
|
3997
|
+
// src/data/dynamo/entities/data/flag-entity.ts
|
|
3998
|
+
var FlagEntity = createDataEntity("flag", "Flag");
|
|
3999
|
+
|
|
4000
|
+
// src/data/dynamo/entities/data/goal-entity.ts
|
|
4001
|
+
var GoalEntity = createDataEntity("goal", "Goal");
|
|
4002
|
+
|
|
4003
|
+
// src/data/dynamo/entities/data/graph-definition-entity.ts
|
|
4004
|
+
var GraphDefinitionEntity = createDataEntity(
|
|
4005
|
+
"graphdefinition",
|
|
4006
|
+
"GraphDefinition"
|
|
4007
|
+
);
|
|
4008
|
+
|
|
4009
|
+
// src/data/dynamo/entities/data/group-entity.ts
|
|
4010
|
+
var GroupEntity = createDataEntity("group", "Group");
|
|
4011
|
+
|
|
4012
|
+
// src/data/dynamo/entities/data/guidance-response-entity.ts
|
|
4013
|
+
var GuidanceResponseEntity = createDataEntity(
|
|
4014
|
+
"guidanceresponse",
|
|
4015
|
+
"GuidanceResponse"
|
|
4016
|
+
);
|
|
4017
|
+
|
|
4018
|
+
// src/data/dynamo/entities/data/healthcare-service-entity.ts
|
|
4019
|
+
var HealthcareServiceEntity = createDataEntity(
|
|
4020
|
+
"healthcareservice",
|
|
4021
|
+
"HealthcareService"
|
|
4022
|
+
);
|
|
4023
|
+
|
|
4024
|
+
// src/data/dynamo/entities/data/imaging-study-entity.ts
|
|
4025
|
+
var ImagingStudyEntity = createDataEntity(
|
|
4026
|
+
"imagingstudy",
|
|
4027
|
+
"ImagingStudy"
|
|
4028
|
+
);
|
|
4029
|
+
|
|
4030
|
+
// src/data/dynamo/entities/data/immunization-entity.ts
|
|
4031
|
+
var ImmunizationEntity = createDataEntity(
|
|
4032
|
+
"immunization",
|
|
4033
|
+
"Immunization"
|
|
4034
|
+
);
|
|
4035
|
+
|
|
4036
|
+
// src/data/dynamo/entities/data/immunization-evaluation-entity.ts
|
|
4037
|
+
var ImmunizationEvaluationEntity = createDataEntity(
|
|
4038
|
+
"immunizationevaluation",
|
|
4039
|
+
"ImmunizationEvaluation"
|
|
4040
|
+
);
|
|
4041
|
+
|
|
4042
|
+
// src/data/dynamo/entities/data/immunization-recommendation-entity.ts
|
|
4043
|
+
var ImmunizationRecommendationEntity = createDataEntity(
|
|
4044
|
+
"immunizationrecommendation",
|
|
4045
|
+
"ImmunizationRecommendation"
|
|
4046
|
+
);
|
|
4047
|
+
|
|
4048
|
+
// src/data/dynamo/entities/data/implementation-guide-entity.ts
|
|
4049
|
+
var ImplementationGuideEntity = createDataEntity(
|
|
4050
|
+
"implementationguide",
|
|
4051
|
+
"ImplementationGuide"
|
|
4052
|
+
);
|
|
4053
|
+
|
|
4054
|
+
// src/data/dynamo/entities/data/insurance-plan-entity.ts
|
|
4055
|
+
var InsurancePlanEntity = createDataEntity(
|
|
4056
|
+
"insuranceplan",
|
|
4057
|
+
"InsurancePlan"
|
|
4058
|
+
);
|
|
4059
|
+
|
|
4060
|
+
// src/data/dynamo/entities/data/invoice-entity.ts
|
|
4061
|
+
var InvoiceEntity = createDataEntity("invoice", "Invoice");
|
|
4062
|
+
|
|
4063
|
+
// src/data/dynamo/entities/data/library-entity.ts
|
|
4064
|
+
var LibraryEntity = createDataEntity("library", "Library");
|
|
4065
|
+
|
|
4066
|
+
// src/data/dynamo/entities/data/linkage-entity.ts
|
|
4067
|
+
var LinkageEntity = createDataEntity("linkage", "Linkage");
|
|
4068
|
+
|
|
4069
|
+
// src/data/dynamo/entities/data/list-entity.ts
|
|
4070
|
+
var ListEntity = createDataEntity("list", "List");
|
|
4071
|
+
|
|
4072
|
+
// src/data/dynamo/entities/data/location-entity.ts
|
|
4073
|
+
var LocationEntity = createDataEntity("location", "Location");
|
|
4074
|
+
|
|
4075
|
+
// src/data/dynamo/entities/data/measure-entity.ts
|
|
4076
|
+
var MeasureEntity = createDataEntity("measure", "Measure");
|
|
4077
|
+
|
|
4078
|
+
// src/data/dynamo/entities/data/measure-report-entity.ts
|
|
4079
|
+
var MeasureReportEntity = createDataEntity(
|
|
4080
|
+
"measurereport",
|
|
4081
|
+
"MeasureReport"
|
|
4082
|
+
);
|
|
4083
|
+
|
|
4084
|
+
// src/data/dynamo/entities/data/media-entity.ts
|
|
4085
|
+
var MediaEntity = createDataEntity("media", "Media");
|
|
4086
|
+
|
|
4087
|
+
// src/data/dynamo/entities/data/medication-administration-entity.ts
|
|
4088
|
+
var MedicationAdministrationEntity = createDataEntity(
|
|
4089
|
+
"medicationadministration",
|
|
4090
|
+
"MedicationAdministration"
|
|
4091
|
+
);
|
|
4092
|
+
|
|
4093
|
+
// src/data/dynamo/entities/data/medication-dispense-entity.ts
|
|
4094
|
+
var MedicationDispenseEntity = createDataEntity(
|
|
4095
|
+
"medicationdispense",
|
|
4096
|
+
"MedicationDispense"
|
|
4097
|
+
);
|
|
4098
|
+
|
|
4099
|
+
// src/data/dynamo/entities/data/medication-entity.ts
|
|
4100
|
+
var MedicationEntity = createDataEntity("medication", "Medication");
|
|
4101
|
+
|
|
4102
|
+
// src/data/dynamo/entities/data/medication-knowledge-entity.ts
|
|
4103
|
+
var MedicationKnowledgeEntity = createDataEntity(
|
|
4104
|
+
"medicationknowledge",
|
|
4105
|
+
"MedicationKnowledge"
|
|
4106
|
+
);
|
|
4107
|
+
|
|
4108
|
+
// src/data/dynamo/entities/data/medication-request-entity.ts
|
|
4109
|
+
var MedicationRequestEntity = createDataEntity(
|
|
4110
|
+
"medicationrequest",
|
|
4111
|
+
"MedicationRequest"
|
|
4112
|
+
);
|
|
4113
|
+
|
|
4114
|
+
// src/data/dynamo/entities/data/medication-statement-entity.ts
|
|
4115
|
+
var MedicationStatementEntity = createDataEntity(
|
|
4116
|
+
"medicationstatement",
|
|
4117
|
+
"MedicationStatement"
|
|
4118
|
+
);
|
|
4119
|
+
|
|
4120
|
+
// src/data/dynamo/entities/data/medicinal-product-authorization-entity.ts
|
|
4121
|
+
var MedicinalProductAuthorizationEntity = createDataEntity(
|
|
4122
|
+
"medicinalproductauthorization",
|
|
4123
|
+
"MedicinalProductAuthorization"
|
|
4124
|
+
);
|
|
4125
|
+
|
|
4126
|
+
// src/data/dynamo/entities/data/medicinal-product-contraindication-entity.ts
|
|
4127
|
+
var MedicinalProductContraindicationEntity = createDataEntity(
|
|
4128
|
+
"medicinalproductcontraindication",
|
|
4129
|
+
"MedicinalProductContraindication"
|
|
4130
|
+
);
|
|
4131
|
+
|
|
4132
|
+
// src/data/dynamo/entities/data/medicinal-product-entity.ts
|
|
4133
|
+
var MedicinalProductEntity = createDataEntity(
|
|
4134
|
+
"medicinalproduct",
|
|
4135
|
+
"MedicinalProduct"
|
|
4136
|
+
);
|
|
4137
|
+
|
|
4138
|
+
// src/data/dynamo/entities/data/medicinal-product-indication-entity.ts
|
|
4139
|
+
var MedicinalProductIndicationEntity = createDataEntity(
|
|
4140
|
+
"medicinalproductindication",
|
|
4141
|
+
"MedicinalProductIndication"
|
|
4142
|
+
);
|
|
4143
|
+
|
|
4144
|
+
// src/data/dynamo/entities/data/medicinal-product-ingredient-entity.ts
|
|
4145
|
+
var MedicinalProductIngredientEntity = createDataEntity(
|
|
4146
|
+
"medicinalproductingredient",
|
|
4147
|
+
"MedicinalProductIngredient"
|
|
4148
|
+
);
|
|
4149
|
+
|
|
4150
|
+
// src/data/dynamo/entities/data/medicinal-product-interaction-entity.ts
|
|
4151
|
+
var MedicinalProductInteractionEntity = createDataEntity(
|
|
4152
|
+
"medicinalproductinteraction",
|
|
4153
|
+
"MedicinalProductInteraction"
|
|
4154
|
+
);
|
|
4155
|
+
|
|
4156
|
+
// src/data/dynamo/entities/data/medicinal-product-manufactured-entity.ts
|
|
4157
|
+
var MedicinalProductManufacturedEntity = createDataEntity(
|
|
4158
|
+
"medicinalproductmanufactured",
|
|
4159
|
+
"MedicinalProductManufactured"
|
|
4160
|
+
);
|
|
4161
|
+
|
|
4162
|
+
// src/data/dynamo/entities/data/medicinal-product-packaged-entity.ts
|
|
4163
|
+
var MedicinalProductPackagedEntity = createDataEntity(
|
|
4164
|
+
"medicinalproductpackaged",
|
|
4165
|
+
"MedicinalProductPackaged"
|
|
4166
|
+
);
|
|
4167
|
+
|
|
4168
|
+
// src/data/dynamo/entities/data/medicinal-product-pharmaceutical-entity.ts
|
|
4169
|
+
var MedicinalProductPharmaceuticalEntity = createDataEntity(
|
|
4170
|
+
"medicinalproductpharmaceutical",
|
|
4171
|
+
"MedicinalProductPharmaceutical"
|
|
4172
|
+
);
|
|
4173
|
+
|
|
4174
|
+
// src/data/dynamo/entities/data/medicinal-product-undesirable-effect-entity.ts
|
|
4175
|
+
var MedicinalProductUndesirableEffectEntity = createDataEntity(
|
|
4176
|
+
"medicinalproductundesirableeffect",
|
|
4177
|
+
"MedicinalProductUndesirableEffect"
|
|
4178
|
+
);
|
|
4179
|
+
|
|
4180
|
+
// src/data/dynamo/entities/data/message-definition-entity.ts
|
|
4181
|
+
var MessageDefinitionEntity = createDataEntity(
|
|
4182
|
+
"messagedefinition",
|
|
4183
|
+
"MessageDefinition"
|
|
4184
|
+
);
|
|
4185
|
+
|
|
4186
|
+
// src/data/dynamo/entities/data/message-header-entity.ts
|
|
4187
|
+
var MessageHeaderEntity = createDataEntity(
|
|
4188
|
+
"messageheader",
|
|
4189
|
+
"MessageHeader"
|
|
4190
|
+
);
|
|
4191
|
+
|
|
4192
|
+
// src/data/dynamo/entities/data/molecular-sequence-entity.ts
|
|
4193
|
+
var MolecularSequenceEntity = createDataEntity(
|
|
4194
|
+
"molecularsequence",
|
|
4195
|
+
"MolecularSequence"
|
|
4196
|
+
);
|
|
4197
|
+
|
|
4198
|
+
// src/data/dynamo/entities/data/naming-system-entity.ts
|
|
4199
|
+
var NamingSystemEntity = createDataEntity(
|
|
4200
|
+
"namingsystem",
|
|
4201
|
+
"NamingSystem"
|
|
4202
|
+
);
|
|
4203
|
+
|
|
4204
|
+
// src/data/dynamo/entities/data/nutrition-order-entity.ts
|
|
4205
|
+
var NutritionOrderEntity = createDataEntity(
|
|
4206
|
+
"nutritionorder",
|
|
4207
|
+
"NutritionOrder"
|
|
4208
|
+
);
|
|
4209
|
+
|
|
4210
|
+
// src/data/dynamo/entities/data/observation-definition-entity.ts
|
|
4211
|
+
var ObservationDefinitionEntity = createDataEntity(
|
|
4212
|
+
"observationdefinition",
|
|
4213
|
+
"ObservationDefinition"
|
|
4214
|
+
);
|
|
4215
|
+
|
|
4216
|
+
// src/data/dynamo/entities/data/observation-entity.ts
|
|
4217
|
+
var ObservationEntity = createDataEntity("observation", "Observation");
|
|
4218
|
+
|
|
4219
|
+
// src/data/dynamo/entities/data/operation-definition-entity.ts
|
|
4220
|
+
var OperationDefinitionEntity = createDataEntity(
|
|
4221
|
+
"operationdefinition",
|
|
4222
|
+
"OperationDefinition"
|
|
4223
|
+
);
|
|
4224
|
+
|
|
4225
|
+
// src/data/dynamo/entities/data/organization-affiliation-entity.ts
|
|
4226
|
+
var OrganizationAffiliationEntity = createDataEntity(
|
|
4227
|
+
"organizationaffiliation",
|
|
4228
|
+
"OrganizationAffiliation"
|
|
4229
|
+
);
|
|
4230
|
+
|
|
4231
|
+
// src/data/dynamo/entities/data/organization-entity.ts
|
|
4232
|
+
var OrganizationEntity = createDataEntity(
|
|
4233
|
+
"organization",
|
|
4234
|
+
"Organization"
|
|
4235
|
+
);
|
|
4236
|
+
|
|
4237
|
+
// src/data/dynamo/entities/data/patient-entity.ts
|
|
4238
|
+
var PatientEntity = createDataEntity("patient", "Patient");
|
|
4239
|
+
|
|
4240
|
+
// src/data/dynamo/entities/data/payment-notice-entity.ts
|
|
4241
|
+
var PaymentNoticeEntity = createDataEntity(
|
|
4242
|
+
"paymentnotice",
|
|
4243
|
+
"PaymentNotice"
|
|
4244
|
+
);
|
|
4245
|
+
|
|
4246
|
+
// src/data/dynamo/entities/data/payment-reconciliation-entity.ts
|
|
4247
|
+
var PaymentReconciliationEntity = createDataEntity(
|
|
4248
|
+
"paymentreconciliation",
|
|
4249
|
+
"PaymentReconciliation"
|
|
4250
|
+
);
|
|
4251
|
+
|
|
4252
|
+
// src/data/dynamo/entities/data/person-entity.ts
|
|
4253
|
+
var PersonEntity = createDataEntity("person", "Person");
|
|
4254
|
+
|
|
4255
|
+
// src/data/dynamo/entities/data/plan-definition-entity.ts
|
|
4256
|
+
var PlanDefinitionEntity = createDataEntity(
|
|
4257
|
+
"plandefinition",
|
|
4258
|
+
"PlanDefinition"
|
|
4259
|
+
);
|
|
4260
|
+
|
|
4261
|
+
// src/data/dynamo/entities/data/practitioner-entity.ts
|
|
4262
|
+
var PractitionerEntity = createDataEntity(
|
|
4263
|
+
"practitioner",
|
|
4264
|
+
"Practitioner"
|
|
4265
|
+
);
|
|
4266
|
+
|
|
4267
|
+
// src/data/dynamo/entities/data/practitioner-role-entity.ts
|
|
4268
|
+
var PractitionerRoleEntity = createDataEntity(
|
|
4269
|
+
"practitionerrole",
|
|
4270
|
+
"PractitionerRole"
|
|
4271
|
+
);
|
|
4272
|
+
|
|
4273
|
+
// src/data/dynamo/entities/data/procedure-entity.ts
|
|
4274
|
+
var ProcedureEntity = createDataEntity("procedure", "Procedure");
|
|
4275
|
+
|
|
4276
|
+
// src/data/dynamo/entities/data/provenance-entity.ts
|
|
4277
|
+
var ProvenanceEntity = createDataEntity("provenance", "Provenance");
|
|
4278
|
+
|
|
4279
|
+
// src/data/dynamo/entities/data/questionnaire-entity.ts
|
|
4280
|
+
var QuestionnaireEntity = createDataEntity(
|
|
4281
|
+
"questionnaire",
|
|
4282
|
+
"Questionnaire"
|
|
4283
|
+
);
|
|
4284
|
+
|
|
4285
|
+
// src/data/dynamo/entities/data/questionnaire-response-entity.ts
|
|
4286
|
+
var QuestionnaireResponseEntity = createDataEntity(
|
|
4287
|
+
"questionnaireresponse",
|
|
4288
|
+
"QuestionnaireResponse"
|
|
4289
|
+
);
|
|
4290
|
+
|
|
4291
|
+
// src/data/dynamo/entities/data/related-person-entity.ts
|
|
4292
|
+
var RelatedPersonEntity = createDataEntity(
|
|
4293
|
+
"relatedperson",
|
|
4294
|
+
"RelatedPerson"
|
|
4295
|
+
);
|
|
4296
|
+
|
|
4297
|
+
// src/data/dynamo/entities/data/request-group-entity.ts
|
|
4298
|
+
var RequestGroupEntity = createDataEntity(
|
|
4299
|
+
"requestgroup",
|
|
4300
|
+
"RequestGroup"
|
|
4301
|
+
);
|
|
4302
|
+
|
|
4303
|
+
// src/data/dynamo/entities/data/research-definition-entity.ts
|
|
4304
|
+
var ResearchDefinitionEntity = createDataEntity(
|
|
4305
|
+
"researchdefinition",
|
|
4306
|
+
"ResearchDefinition"
|
|
4307
|
+
);
|
|
4308
|
+
|
|
4309
|
+
// src/data/dynamo/entities/data/research-element-definition-entity.ts
|
|
4310
|
+
var ResearchElementDefinitionEntity = createDataEntity(
|
|
4311
|
+
"researchelementdefinition",
|
|
4312
|
+
"ResearchElementDefinition"
|
|
4313
|
+
);
|
|
4314
|
+
|
|
4315
|
+
// src/data/dynamo/entities/data/research-study-entity.ts
|
|
4316
|
+
var ResearchStudyEntity = createDataEntity(
|
|
4317
|
+
"researchstudy",
|
|
4318
|
+
"ResearchStudy"
|
|
4319
|
+
);
|
|
4320
|
+
|
|
4321
|
+
// src/data/dynamo/entities/data/research-subject-entity.ts
|
|
4322
|
+
var ResearchSubjectEntity = createDataEntity(
|
|
4323
|
+
"researchsubject",
|
|
4324
|
+
"ResearchSubject"
|
|
4325
|
+
);
|
|
4326
|
+
|
|
4327
|
+
// src/data/dynamo/entities/data/risk-assessment-entity.ts
|
|
4328
|
+
var RiskAssessmentEntity = createDataEntity(
|
|
4329
|
+
"riskassessment",
|
|
4330
|
+
"RiskAssessment"
|
|
4331
|
+
);
|
|
4332
|
+
|
|
4333
|
+
// src/data/dynamo/entities/data/risk-evidence-synthesis-entity.ts
|
|
4334
|
+
var RiskEvidenceSynthesisEntity = createDataEntity(
|
|
4335
|
+
"riskevidencesynthesis",
|
|
4336
|
+
"RiskEvidenceSynthesis"
|
|
4337
|
+
);
|
|
4338
|
+
|
|
4339
|
+
// src/data/dynamo/entities/data/schedule-entity.ts
|
|
4340
|
+
var ScheduleEntity = createDataEntity("schedule", "Schedule");
|
|
4341
|
+
|
|
4342
|
+
// src/data/dynamo/entities/data/search-parameter-entity.ts
|
|
4343
|
+
var SearchParameterEntity = createDataEntity(
|
|
4344
|
+
"searchparameter",
|
|
4345
|
+
"SearchParameter"
|
|
4346
|
+
);
|
|
4347
|
+
|
|
4348
|
+
// src/data/dynamo/entities/data/service-request-entity.ts
|
|
4349
|
+
var ServiceRequestEntity = createDataEntity(
|
|
4350
|
+
"servicerequest",
|
|
4351
|
+
"ServiceRequest"
|
|
4352
|
+
);
|
|
4353
|
+
|
|
4354
|
+
// src/data/dynamo/entities/data/slot-entity.ts
|
|
4355
|
+
var SlotEntity = createDataEntity("slot", "Slot");
|
|
4356
|
+
|
|
4357
|
+
// src/data/dynamo/entities/data/specimen-definition-entity.ts
|
|
4358
|
+
var SpecimenDefinitionEntity = createDataEntity(
|
|
4359
|
+
"specimendefinition",
|
|
4360
|
+
"SpecimenDefinition"
|
|
4361
|
+
);
|
|
4362
|
+
|
|
4363
|
+
// src/data/dynamo/entities/data/specimen-entity.ts
|
|
4364
|
+
var SpecimenEntity = createDataEntity("specimen", "Specimen");
|
|
4365
|
+
|
|
4366
|
+
// src/data/dynamo/entities/data/structure-definition-entity.ts
|
|
4367
|
+
var StructureDefinitionEntity = createDataEntity(
|
|
4368
|
+
"structuredefinition",
|
|
4369
|
+
"StructureDefinition"
|
|
4370
|
+
);
|
|
4371
|
+
|
|
4372
|
+
// src/data/dynamo/entities/data/structure-map-entity.ts
|
|
4373
|
+
var StructureMapEntity = createDataEntity(
|
|
4374
|
+
"structuremap",
|
|
4375
|
+
"StructureMap"
|
|
4376
|
+
);
|
|
4377
|
+
|
|
4378
|
+
// src/data/dynamo/entities/data/subscription-entity.ts
|
|
4379
|
+
var SubscriptionEntity = createDataEntity(
|
|
4380
|
+
"subscription",
|
|
4381
|
+
"Subscription"
|
|
4382
|
+
);
|
|
4383
|
+
|
|
4384
|
+
// src/data/dynamo/entities/data/substance-entity.ts
|
|
4385
|
+
var SubstanceEntity = createDataEntity("substance", "Substance");
|
|
4386
|
+
|
|
4387
|
+
// src/data/dynamo/entities/data/substance-nucleic-acid-entity.ts
|
|
4388
|
+
var SubstanceNucleicAcidEntity = createDataEntity(
|
|
4389
|
+
"substancenucleicacid",
|
|
4390
|
+
"SubstanceNucleicAcid"
|
|
4391
|
+
);
|
|
4392
|
+
|
|
4393
|
+
// src/data/dynamo/entities/data/substance-polymer-entity.ts
|
|
4394
|
+
var SubstancePolymerEntity = createDataEntity(
|
|
4395
|
+
"substancepolymer",
|
|
4396
|
+
"SubstancePolymer"
|
|
4397
|
+
);
|
|
4398
|
+
|
|
4399
|
+
// src/data/dynamo/entities/data/substance-protein-entity.ts
|
|
4400
|
+
var SubstanceProteinEntity = createDataEntity(
|
|
4401
|
+
"substanceprotein",
|
|
4402
|
+
"SubstanceProtein"
|
|
4403
|
+
);
|
|
4404
|
+
|
|
4405
|
+
// src/data/dynamo/entities/data/substance-reference-information-entity.ts
|
|
4406
|
+
var SubstanceReferenceInformationEntity = createDataEntity(
|
|
4407
|
+
"substancereferenceinformation",
|
|
4408
|
+
"SubstanceReferenceInformation"
|
|
4409
|
+
);
|
|
4410
|
+
|
|
4411
|
+
// src/data/dynamo/entities/data/substance-source-material-entity.ts
|
|
4412
|
+
var SubstanceSourceMaterialEntity = createDataEntity(
|
|
4413
|
+
"substancesourcematerial",
|
|
4414
|
+
"SubstanceSourceMaterial"
|
|
4415
|
+
);
|
|
4416
|
+
|
|
4417
|
+
// src/data/dynamo/entities/data/substance-specification-entity.ts
|
|
4418
|
+
var SubstanceSpecificationEntity = createDataEntity(
|
|
4419
|
+
"substancespecification",
|
|
4420
|
+
"SubstanceSpecification"
|
|
4421
|
+
);
|
|
4422
|
+
|
|
4423
|
+
// src/data/dynamo/entities/data/supply-delivery-entity.ts
|
|
4424
|
+
var SupplyDeliveryEntity = createDataEntity(
|
|
4425
|
+
"supplydelivery",
|
|
4426
|
+
"SupplyDelivery"
|
|
4427
|
+
);
|
|
4428
|
+
|
|
4429
|
+
// src/data/dynamo/entities/data/supply-request-entity.ts
|
|
4430
|
+
var SupplyRequestEntity = createDataEntity(
|
|
4431
|
+
"supplyrequest",
|
|
4432
|
+
"SupplyRequest"
|
|
4433
|
+
);
|
|
4434
|
+
|
|
4435
|
+
// src/data/dynamo/entities/data/task-entity.ts
|
|
4436
|
+
var TaskEntity = createDataEntity("task", "Task");
|
|
4437
|
+
|
|
4438
|
+
// src/data/dynamo/entities/data/terminology-capabilities-entity.ts
|
|
4439
|
+
var TerminologyCapabilitiesEntity = createDataEntity(
|
|
4440
|
+
"terminologycapabilities",
|
|
4441
|
+
"TerminologyCapabilities"
|
|
4442
|
+
);
|
|
4443
|
+
|
|
4444
|
+
// src/data/dynamo/entities/data/test-report-entity.ts
|
|
4445
|
+
var TestReportEntity = createDataEntity("testreport", "TestReport");
|
|
4446
|
+
|
|
4447
|
+
// src/data/dynamo/entities/data/test-script-entity.ts
|
|
4448
|
+
var TestScriptEntity = createDataEntity("testscript", "TestScript");
|
|
4449
|
+
|
|
4450
|
+
// src/data/dynamo/entities/data/value-set-entity.ts
|
|
4451
|
+
var ValueSetEntity = createDataEntity("valueset", "ValueSet");
|
|
4452
|
+
|
|
4453
|
+
// src/data/dynamo/entities/data/verification-result-entity.ts
|
|
4454
|
+
var VerificationResultEntity = createDataEntity(
|
|
4455
|
+
"verificationresult",
|
|
4456
|
+
"VerificationResult"
|
|
4457
|
+
);
|
|
4458
|
+
|
|
4459
|
+
// src/data/dynamo/entities/data/vision-prescription-entity.ts
|
|
4460
|
+
var VisionPrescriptionEntity = createDataEntity(
|
|
4461
|
+
"visionprescription",
|
|
4462
|
+
"VisionPrescription"
|
|
4463
|
+
);
|
|
4464
|
+
|
|
4465
|
+
// src/data/dynamo/dynamo-data-service.ts
|
|
4466
|
+
var dataPlaneEntities = {
|
|
4467
|
+
account: AccountEntity,
|
|
4468
|
+
activitydefinition: ActivityDefinitionEntity,
|
|
4469
|
+
adverseevent: AdverseEventEntity,
|
|
4470
|
+
allergyintolerance: AllergyIntoleranceEntity,
|
|
4471
|
+
appointment: AppointmentEntity,
|
|
4472
|
+
appointmentresponse: AppointmentResponseEntity,
|
|
4473
|
+
auditevent: AuditEventEntity,
|
|
4474
|
+
basic: BasicEntity,
|
|
4475
|
+
biologicallyderivedproduct: BiologicallyDerivedProductEntity,
|
|
4476
|
+
bodystructure: BodyStructureEntity,
|
|
4477
|
+
capabilitystatement: CapabilityStatementEntity,
|
|
4478
|
+
careplan: CarePlanEntity,
|
|
4479
|
+
careteam: CareTeamEntity,
|
|
4480
|
+
catalogentry: CatalogEntryEntity,
|
|
4481
|
+
codesystem: CodeSystemEntity,
|
|
4482
|
+
chargeitem: ChargeItemEntity,
|
|
4483
|
+
chargeitemdefinition: ChargeItemDefinitionEntity,
|
|
4484
|
+
claim: ClaimEntity,
|
|
4485
|
+
claimresponse: ClaimResponseEntity,
|
|
4486
|
+
clinicalimpression: ClinicalImpressionEntity,
|
|
4487
|
+
communication: CommunicationEntity,
|
|
4488
|
+
communicationrequest: CommunicationRequestEntity,
|
|
4489
|
+
compartmentdefinition: CompartmentDefinitionEntity,
|
|
4490
|
+
composition: CompositionEntity,
|
|
4491
|
+
conceptmap: ConceptMapEntity,
|
|
4492
|
+
condition: ConditionEntity,
|
|
4493
|
+
consent: ConsentEntity,
|
|
4494
|
+
contract: ContractEntity,
|
|
4495
|
+
coverage: CoverageEntity,
|
|
4496
|
+
coverageeligibilityrequest: CoverageEligibilityRequestEntity,
|
|
4497
|
+
coverageeligibilityresponse: CoverageEligibilityResponseEntity,
|
|
4498
|
+
detectedissue: DetectedIssueEntity,
|
|
4499
|
+
device: DeviceEntity,
|
|
4500
|
+
devicedefinition: DeviceDefinitionEntity,
|
|
4501
|
+
devicemetric: DeviceMetricEntity,
|
|
4502
|
+
devicerequest: DeviceRequestEntity,
|
|
4503
|
+
deviceusestatement: DeviceUseStatementEntity,
|
|
4504
|
+
diagnosticreport: DiagnosticReportEntity,
|
|
4505
|
+
documentmanifest: DocumentManifestEntity,
|
|
4506
|
+
documentreference: DocumentReferenceEntity,
|
|
4507
|
+
effectevidencesynthesis: EffectEvidenceSynthesisEntity,
|
|
4508
|
+
encounter: EncounterEntity,
|
|
4509
|
+
examplescenario: ExampleScenarioEntity,
|
|
4510
|
+
endpoint: EndpointEntity,
|
|
4511
|
+
enrollmentrequest: EnrollmentRequestEntity,
|
|
4512
|
+
enrollmentresponse: EnrollmentResponseEntity,
|
|
4513
|
+
episodeofcare: EpisodeOfCareEntity,
|
|
4514
|
+
eventdefinition: EventDefinitionEntity,
|
|
4515
|
+
evidence: EvidenceEntity,
|
|
4516
|
+
evidencevariable: EvidenceVariableEntity,
|
|
4517
|
+
explanationofbenefit: ExplanationOfBenefitEntity,
|
|
4518
|
+
familymemberhistory: FamilyMemberHistoryEntity,
|
|
4519
|
+
flag: FlagEntity,
|
|
4520
|
+
goal: GoalEntity,
|
|
4521
|
+
graphdefinition: GraphDefinitionEntity,
|
|
4522
|
+
group: GroupEntity,
|
|
4523
|
+
guidanceresponse: GuidanceResponseEntity,
|
|
4524
|
+
healthcareservice: HealthcareServiceEntity,
|
|
4525
|
+
immunization: ImmunizationEntity,
|
|
4526
|
+
immunizationevaluation: ImmunizationEvaluationEntity,
|
|
4527
|
+
immunizationrecommendation: ImmunizationRecommendationEntity,
|
|
4528
|
+
imagingstudy: ImagingStudyEntity,
|
|
4529
|
+
implementationguide: ImplementationGuideEntity,
|
|
4530
|
+
insuranceplan: InsurancePlanEntity,
|
|
4531
|
+
invoice: InvoiceEntity,
|
|
4532
|
+
library: LibraryEntity,
|
|
4533
|
+
linkage: LinkageEntity,
|
|
4534
|
+
list: ListEntity,
|
|
4535
|
+
location: LocationEntity,
|
|
4536
|
+
medication: MedicationEntity,
|
|
4537
|
+
medicationadministration: MedicationAdministrationEntity,
|
|
4538
|
+
medicationdispense: MedicationDispenseEntity,
|
|
4539
|
+
medicationknowledge: MedicationKnowledgeEntity,
|
|
4540
|
+
medicationrequest: MedicationRequestEntity,
|
|
4541
|
+
medicationstatement: MedicationStatementEntity,
|
|
4542
|
+
medicinalproduct: MedicinalProductEntity,
|
|
4543
|
+
medicinalproductauthorization: MedicinalProductAuthorizationEntity,
|
|
4544
|
+
medicinalproductcontraindication: MedicinalProductContraindicationEntity,
|
|
4545
|
+
medicinalproductingredient: MedicinalProductIngredientEntity,
|
|
4546
|
+
medicinalproductindication: MedicinalProductIndicationEntity,
|
|
4547
|
+
medicinalproductinteraction: MedicinalProductInteractionEntity,
|
|
4548
|
+
medicinalproductmanufactured: MedicinalProductManufacturedEntity,
|
|
4549
|
+
medicinalproductpackaged: MedicinalProductPackagedEntity,
|
|
4550
|
+
medicinalproductpharmaceutical: MedicinalProductPharmaceuticalEntity,
|
|
4551
|
+
medicinalproductundesirableeffect: MedicinalProductUndesirableEffectEntity,
|
|
4552
|
+
media: MediaEntity,
|
|
4553
|
+
measure: MeasureEntity,
|
|
4554
|
+
measurereport: MeasureReportEntity,
|
|
4555
|
+
messagedefinition: MessageDefinitionEntity,
|
|
4556
|
+
messageheader: MessageHeaderEntity,
|
|
4557
|
+
molecularsequence: MolecularSequenceEntity,
|
|
4558
|
+
namingsystem: NamingSystemEntity,
|
|
4559
|
+
nutritionorder: NutritionOrderEntity,
|
|
4560
|
+
observation: ObservationEntity,
|
|
4561
|
+
observationdefinition: ObservationDefinitionEntity,
|
|
4562
|
+
operationdefinition: OperationDefinitionEntity,
|
|
4563
|
+
organization: OrganizationEntity,
|
|
4564
|
+
organizationaffiliation: OrganizationAffiliationEntity,
|
|
4565
|
+
patient: PatientEntity,
|
|
4566
|
+
paymentnotice: PaymentNoticeEntity,
|
|
4567
|
+
paymentreconciliation: PaymentReconciliationEntity,
|
|
4568
|
+
person: PersonEntity,
|
|
4569
|
+
plandefinition: PlanDefinitionEntity,
|
|
4570
|
+
practitioner: PractitionerEntity,
|
|
4571
|
+
practitionerrole: PractitionerRoleEntity,
|
|
4572
|
+
procedure: ProcedureEntity,
|
|
4573
|
+
provenance: ProvenanceEntity,
|
|
4574
|
+
questionnaire: QuestionnaireEntity,
|
|
4575
|
+
questionnaireresponse: QuestionnaireResponseEntity,
|
|
4576
|
+
requestgroup: RequestGroupEntity,
|
|
4577
|
+
relatedperson: RelatedPersonEntity,
|
|
4578
|
+
researchdefinition: ResearchDefinitionEntity,
|
|
4579
|
+
researchelementdefinition: ResearchElementDefinitionEntity,
|
|
4580
|
+
researchstudy: ResearchStudyEntity,
|
|
4581
|
+
researchsubject: ResearchSubjectEntity,
|
|
4582
|
+
riskassessment: RiskAssessmentEntity,
|
|
4583
|
+
riskevidencesynthesis: RiskEvidenceSynthesisEntity,
|
|
4584
|
+
schedule: ScheduleEntity,
|
|
4585
|
+
searchparameter: SearchParameterEntity,
|
|
4586
|
+
servicerequest: ServiceRequestEntity,
|
|
4587
|
+
specimen: SpecimenEntity,
|
|
4588
|
+
specimendefinition: SpecimenDefinitionEntity,
|
|
4589
|
+
structuredefinition: StructureDefinitionEntity,
|
|
4590
|
+
structuremap: StructureMapEntity,
|
|
4591
|
+
substance: SubstanceEntity,
|
|
4592
|
+
substancenucleicacid: SubstanceNucleicAcidEntity,
|
|
4593
|
+
substancepolymer: SubstancePolymerEntity,
|
|
4594
|
+
substanceprotein: SubstanceProteinEntity,
|
|
4595
|
+
substancereferenceinformation: SubstanceReferenceInformationEntity,
|
|
4596
|
+
substancespecification: SubstanceSpecificationEntity,
|
|
4597
|
+
substancesourcematerial: SubstanceSourceMaterialEntity,
|
|
4598
|
+
subscription: SubscriptionEntity,
|
|
4599
|
+
terminologycapabilities: TerminologyCapabilitiesEntity,
|
|
4600
|
+
testreport: TestReportEntity,
|
|
4601
|
+
testscript: TestScriptEntity,
|
|
4602
|
+
valueset: ValueSetEntity,
|
|
4603
|
+
supplydelivery: SupplyDeliveryEntity,
|
|
4604
|
+
supplyrequest: SupplyRequestEntity,
|
|
4605
|
+
slot: SlotEntity,
|
|
4606
|
+
task: TaskEntity,
|
|
4607
|
+
visionprescription: VisionPrescriptionEntity,
|
|
4608
|
+
verificationresult: VerificationResultEntity
|
|
4609
|
+
};
|
|
4610
|
+
var dataPlaneService = new import_electrodb10.Service(dataPlaneEntities, {
|
|
4611
|
+
table: defaultTableName,
|
|
4612
|
+
client: dynamoClient
|
|
4613
|
+
});
|
|
4614
|
+
var DynamoDataService = {
|
|
4615
|
+
entities: dataPlaneService.entities
|
|
4616
|
+
};
|
|
4617
|
+
|
|
4618
|
+
// src/data/operations/data-operations-common.ts
|
|
3584
4619
|
var import_types6 = require("@openhi/types");
|
|
3585
4620
|
|
|
4621
|
+
// src/lib/compression.ts
|
|
4622
|
+
var import_node_zlib = require("zlib");
|
|
4623
|
+
|
|
3586
4624
|
// src/workflows/control-plane/seed-demo-data/seed-demo-data.handler.ts
|
|
3587
4625
|
var SEED_DEMO_DATA_USER_POOL_ID_ENV_VAR = "SEED_DEMO_DATA_USER_POOL_ID";
|
|
3588
4626
|
|
|
@@ -3608,7 +4646,7 @@ var SeedDemoDataLambda = class extends import_constructs11.Construct {
|
|
|
3608
4646
|
[SEED_DEMO_DATA_USER_POOL_ID_ENV_VAR]: props.userPool.userPoolId
|
|
3609
4647
|
}
|
|
3610
4648
|
});
|
|
3611
|
-
const roleReadKeys = Object.values(
|
|
4649
|
+
const roleReadKeys = Object.values(import_types9.PLATFORM_ROLE_IDS).map(rolePartitionKey);
|
|
3612
4650
|
this.lambda.addToRolePolicy(
|
|
3613
4651
|
new import_aws_iam3.PolicyStatement({
|
|
3614
4652
|
effect: import_aws_iam3.Effect.ALLOW,
|
|
@@ -3697,7 +4735,7 @@ var SEED_SYSTEM_DATA_CONTROL_BUS_ENV_VAR = "CONTROL_EVENT_BUS_NAME";
|
|
|
3697
4735
|
// src/workflows/control-plane/seed-system-data/seed-system-data-lambda.ts
|
|
3698
4736
|
var import_node_fs8 = __toESM(require("fs"));
|
|
3699
4737
|
var import_node_path8 = __toESM(require("path"));
|
|
3700
|
-
var
|
|
4738
|
+
var import_types10 = require("@openhi/types");
|
|
3701
4739
|
var import_aws_cdk_lib13 = require("aws-cdk-lib");
|
|
3702
4740
|
var import_aws_events7 = require("aws-cdk-lib/aws-events");
|
|
3703
4741
|
var import_aws_events_targets3 = require("aws-cdk-lib/aws-events-targets");
|
|
@@ -3726,7 +4764,7 @@ var SeedSystemDataLambda = class extends import_constructs13.Construct {
|
|
|
3726
4764
|
[SEED_SYSTEM_DATA_CONTROL_BUS_ENV_VAR]: props.controlEventBus.eventBusName
|
|
3727
4765
|
}
|
|
3728
4766
|
});
|
|
3729
|
-
const roleArns = Object.values(
|
|
4767
|
+
const roleArns = Object.values(import_types10.PLATFORM_ROLE_IDS).map(
|
|
3730
4768
|
(id) => `role#id#${id}`
|
|
3731
4769
|
);
|
|
3732
4770
|
this.lambda.addToRolePolicy(
|