HAPI FHIR Server

create-type: Create a new ServiceRequest instance

post
http://localhost:8080/fhir/R4/ServiceRequest

Body

FHIR-JSON-RESOURCE

FHIR-JSON-RESOURCEobject

A FHIR resource

Response

200

Success

FHIR-JSON-RESOURCE

FHIR-JSON-RESOURCEobject

A FHIR resource

post/ServiceRequest

Body

{
  "resourceType": "ServiceRequest"
}
{ "resourceType": "ServiceRequest" }
 
curl --request POST \
  --url http://localhost:8080/fhir/R4/ServiceRequest \
  --header 'Accept: application/fhir+json, application/fhir+xml' \
  --header 'Authorization: Bearer ' \
  --header 'Content-Type: application/fhir+json' \
  --data '{
  "resourceType": "ServiceRequest"
}'
200
{}