-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle op:add for same path in patch (#2370)
* handle add for same path in patch * clean up naming
- Loading branch information
1 parent
6140c8a
commit 81c435b
Showing
5 changed files
with
228 additions
and
20 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
[ | ||
{ | ||
"op": "replace", | ||
"path": "/activity/6/detail/status", | ||
"value": "in-progress" | ||
}, | ||
{ | ||
"op": "add", | ||
"path": "/activity/-", | ||
"value": { | ||
"outcomeReference": [ | ||
{ | ||
"reference": "Task/4f26da79-4571-4442-911a-c3a707e3e662", | ||
"display": "Viral Load Collection" | ||
} | ||
], | ||
"detail": { | ||
"kind": "Task", | ||
"code": { | ||
"coding": [ | ||
{ | ||
"system": "https://d-tree.org/", | ||
"code": "art-client-viral-load-collection" | ||
} | ||
] | ||
}, | ||
"status": "in-progress", | ||
"scheduledPeriod": { | ||
"start": "2023-11-15T11:45:40+02:00", | ||
"end": "2023-12-14T11:10:34.227+03:00" | ||
}, | ||
"performer": [ | ||
{ | ||
"reference": "Practitioner/311015", | ||
"display": "John Doe" | ||
} | ||
], | ||
"description": "Viral Load Collection" | ||
} | ||
} | ||
}, | ||
{ | ||
"op": "add", | ||
"path": "/activity/-", | ||
"value": { | ||
"outcomeReference": [ | ||
{ | ||
"reference": "Task/6f6e6672-ef2d-4e57-9854-0a04cd0fb001", | ||
"display": "Index Case Testing" | ||
} | ||
], | ||
"detail": { | ||
"kind": "Task", | ||
"code": { | ||
"coding": [ | ||
{ | ||
"system": "https://d-tree.org/", | ||
"code": "art-client-index-case-testing" | ||
} | ||
] | ||
}, | ||
"status": "in-progress", | ||
"scheduledPeriod": { | ||
"start": "2023-11-15T11:45:40+02:00", | ||
"end": "2023-12-14T11:10:34.227+03:00" | ||
}, | ||
"performer": [ | ||
{ | ||
"reference": "Practitioner/311015", | ||
"display": "John Doe" | ||
} | ||
], | ||
"description": "Index Case Testing" | ||
} | ||
} | ||
} | ||
] |
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,42 @@ | ||
[ | ||
{ | ||
"op": "replace", | ||
"path": "/activity/6/detail/status", | ||
"value": "in-progress" | ||
}, | ||
{ | ||
"op": "add", | ||
"path": "/activity/-", | ||
"value": { | ||
"outcomeReference": [ | ||
{ | ||
"reference": "Task/4f26da79-4571-4442-911a-c3a707e3e662", | ||
"display": "Viral Load Collection" | ||
} | ||
], | ||
"detail": { | ||
"kind": "Task", | ||
"code": { | ||
"coding": [ | ||
{ | ||
"system": "https://d-tree.org/", | ||
"code": "art-client-viral-load-collection" | ||
} | ||
] | ||
}, | ||
"status": "in-progress", | ||
"scheduledPeriod": { | ||
"start": "2023-11-15T11:45:40+02:00", | ||
"end": "2023-12-14T11:10:34.227+03:00" | ||
}, | ||
"performer": [ | ||
{ | ||
"reference": "Practitioner/311015", | ||
"display": "John Doe" | ||
} | ||
], | ||
"description": "Viral Load Collection" | ||
} | ||
} | ||
} | ||
] |
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,37 @@ | ||
[ | ||
{ | ||
"op": "add", | ||
"path": "/activity/-", | ||
"value": { | ||
"outcomeReference": [ | ||
{ | ||
"reference": "Task/6f6e6672-ef2d-4e57-9854-0a04cd0fb001", | ||
"display": "Index Case Testing" | ||
} | ||
], | ||
"detail": { | ||
"kind": "Task", | ||
"code": { | ||
"coding": [ | ||
{ | ||
"system": "https://d-tree.org/", | ||
"code": "art-client-index-case-testing" | ||
} | ||
] | ||
}, | ||
"status": "in-progress", | ||
"scheduledPeriod": { | ||
"start": "2023-11-15T11:45:40+02:00", | ||
"end": "2023-12-14T11:10:34.227+03:00" | ||
}, | ||
"performer": [ | ||
{ | ||
"reference": "Practitioner/311015", | ||
"display": "John Doe" | ||
} | ||
], | ||
"description": "Index Case Testing" | ||
} | ||
} | ||
} | ||
] |