Adriano Freitas
12/22/2023, 1:02 PMrahul1
12/23/2023, 6:22 AMGET or Post request?
I just tried this using the Medplum CLI:
medplum post 'ValueSet' '{
"resourceType": "ValueSet",
"id": "96967653-45a0-4a82-a621-3e2c0bbcbe5e",
"goal": {
"lastUpdated": "2020-03-13T21:12:15.917+00:00"
},
"language": "pt-BR",
"url": "http://www.saude.gov.br/fhir/r4/ValueSet/BRPais-1.0",
"version": "1.0",
"name": "Country",
"status": "active",
"experimental": false,
"date": "2020-03-13T21:12:40.0380164+00:00",
"publisher": "Brazilian Ministry of Health",
"description": "Codes for country representation.",
"immutable": false,
"compose": {
"include": [
{
"system": "http://www.saude.gov.br/fhir/r4/CodeSystem/BRPais"
}
]
}
}'
which returned the following error:
Error: Invalid additional property "goal" (ValueSet.goal)rahul1
12/23/2023, 6:22 AMrahul1
12/23/2023, 6:23 AMmedplum post 'ValueSet' '{
"resourceType": "ValueSet",
"id": "96967653-45a0-4a82-a621-3e2c0bbcbe5e",
"language": "pt-BR",
"url": "http://www.saude.gov.br/fhir/r4/ValueSet/BRPais-1.0",
"version": "1.0",
"name": "Country",
"status": "active",
"experimental": false,
"date": "2020-03-13T21:12:40.0380164+00:00",
"publisher": "Brazilian Ministry of Health",
"description": "Codes for country representation.",
"immutable": false,
"compose": {
"include": [
{
"system": "http://www.saude.gov.br/fhir/r4/CodeSystem/BRPais"
}
]
}
}'Adriano Freitas
12/28/2023, 11:59 AMreshma
12/28/2023, 2:48 PM