Skip to content

Commit

Permalink
Update provenanceBundle resource
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlipovka committed Jan 22, 2025
1 parent 9a47643 commit 5fb7265
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function prepareFormInitialParams(
props: Props & {
provenance?: WithId<Provenance>;
author?: WithId<Practitioner | Patient | Organization>;
provenanceBundle?: Bundle<Provenance>;
provenanceBundle?: Bundle<WithId<Provenance>>;
},
): QuestionnaireResponseFormProps {
const {
Expand Down Expand Up @@ -161,10 +161,10 @@ export function usePatientDocument(props: Props): {
);
const lastProvenance = descSortedProvenances[0];

const provenanceBundle: Bundle<Provenance> = {
const provenanceBundle: Bundle<WithId<Provenance>> = {
resourceType: 'Bundle',
type: 'collection',
entry: provenanceResponse.data,
entry: provenanceResponse.data.map((provenance) => ({ resource: provenance })),
};

const formInitialParams = prepareFormInitialParams({
Expand Down

0 comments on commit 5fb7265

Please sign in to comment.