HAPI FHIR Server

create-type: Create a new DirectMessage instance

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

Body

FHIR-JSON-RESOURCE

FHIR-JSON-RESOURCEobject

A FHIR resource

Response

200

Success

FHIR-JSON-RESOURCE

FHIR-JSON-RESOURCEobject

A FHIR resource

post/DirectMessage

Body

{
  "resourceType": "DirectMessage",
  "meta": {
    "profile": [
      "http://healthgorilla.com/fhir/Profile/DirectMessage"
    ]
  }
}
{ "resourceType": "DirectMessage", "meta": { "profile": [ "http://healthgorilla.com/fhir/Profile/DirectMessage" ] } }
 
curl --request POST \
  --url http://localhost:8080/fhir/R4/DirectMessage \
  --header 'Accept: application/fhir+json, application/fhir+xml' \
  --header 'Authorization: Bearer ' \
  --header 'Content-Type: application/fhir+json' \
  --data '{
  "resourceType": "DirectMessage",
  "meta": {
    "profile": [
      "http://healthgorilla.com/fhir/Profile/DirectMessage"
    ]
  }
}'
200
{}