charithv
03/26/2025, 4:32 PMconst response = await medplum.patchResource(
'Observation',
'12345',
[
{
op: 'add',
path: '/value',
value: 'test',
},
]
);
this is what we are currently trying to do , we get a success response but doesn't seem to make the changes on the resource .
what we actually need is to patch multiple observations using a batch operation .
regards,
Charith Vrahul1
03/26/2025, 6:02 PMpath here would be to use /valueStringcharithv
03/27/2025, 5:07 AMJSON.stringify or enclose with a string for 'valueString' but overall it works .
parameter: [
{
name: 'operation',
part: [
{ name: 'op', valueCode: 'add' },
{ name: 'path', valueString: '/valueString' },
{
name: 'value',
valueString: '"New updated 2"' << ,
},
],
},
],
overall it works , thanks for the help Rahul.