Amanulla Ashraff
Amanulla Ashraff

Reputation: 1

Error when creating an FHIR resource in google cloud healthcare API (Ruby)

I'm trying to create a Patient type resource using the service

and create_project_location_dataset_fhir_store_fhir method in ruby. I keep on getting this error missing required field: resourceType

more details on the function im using: https://googleapis.dev/ruby/google-api-client/latest/Google/Apis/HealthcareV1/CloudHealthcareService.html#create_project_location_dataset_fhir_store_fhir-instance_method

if anyone has come across this and knows how to fix it

this is how i create my request body:

Upvotes: 0

Views: 429

Answers (1)

Spindoctor
Spindoctor

Reputation: 471

The body could be missing the proper resourceType: Patient as you can find at this link - hl7.org/fhir/patient-example.json.html

Upvotes: 0

Related Questions