-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: return deleted resources object from submitChanges (#445)
* feat: return deleted resources object from submitChanges * fixed eslint issues and added test cases * added jsdoc * Update FHIRModel.js * Update FHIRUtils.js * Update FHIRUtils.js * Update FHIRUtils.js * Update FHIRUtils.js * incorporated review comments * incorporated review comments * incorporated review comments * incorporated review comments * Fixed ESLint issue
- Loading branch information
1 parent
707b026
commit 2081bd8
Showing
7 changed files
with
202 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
test/localService/BundleWithDeleteSuccessAndFailureEntries.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"resourceType": "Bundle", | ||
"id": "934953d3-35a3-477d-8c9e-0948a7e553ec", | ||
"links": [], | ||
"type": "batch-response", | ||
"entry": [ | ||
{ | ||
"response": { | ||
"status": "409 CONFLICT", | ||
"outcome": { | ||
"issue": [ | ||
{ | ||
"severity": "error", | ||
"code": "conflict", | ||
"details": { | ||
"text": "Referenced resource exist 'e1692049-4bdc-4e40-abb5-4eae27ce0b8b' for resource 'Patient}'" | ||
}, | ||
"diagnostics": "Referenced resource exist 'e1692049-4bdc-4e40-abb5-4eae27ce0b8b' for resource 'Patient}'" | ||
} | ||
], | ||
"resourceType": "OperationOutcome", | ||
"meta": { | ||
"profile": [ | ||
"http://hl7.org/fhir/StructureDefinition/OperationOutcome" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"response": { | ||
"status": "204 NO_CONTENT" | ||
}, | ||
"fullUrl": "urn:uuid:cb62c497-ee6c-4c26-9721-2668f797e6c8" | ||
} | ||
], | ||
"total": 2, | ||
"meta": { | ||
"profile": [ | ||
"http://hl7.org/fhir/StructureDefinition/Bundle" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters