Create AllergyIntolerance

Create AllergyIntolerance using FHIR R4 4.0.1.

Resource category: AllergyIntolerance.

Endpoint

MethodEndpoint
POST/api/fhir/r4/AllergyIntolerance

Use the R4 base URL from your DDFS instance. Send Authorization: Bearer <access-token> and accept application/fhir+json.

Send Content-Type: application/fhir+json.

Parameters

ParameterLocationRequiredTypeDescription
AllergyIntoleranceJSON request bodyYesFHIR R4 AllergyIntoleranceSupply a valid complete resource. The server assigns the created resource ID.

Authorization

ContextResource scope
Resource-server definition / issued tokensystem/AllergyIntolerance.c
Client grant / token requestddfssystem/AllergyIntolerance.c

Resource constraints still apply. Use the least privilege needed for this operation; see authentication and scope configuration.

Example Request

Replace the example logical IDs, version IDs and connection values with values for your workflow.

POST /api/fhir/r4/AllergyIntolerance
Content-Type: application/fhir+json

{
  "resourceType": "AllergyIntolerance",
  "clinicalStatus": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",
        "code": "active"
      }
    ]
  },
  "verificationStatus": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",
        "code": "confirmed"
      }
    ]
  },
  "category": [
    "medication"
  ],
  "code": {
    "coding": [
      {
        "system": "http://snomed.info/sct",
        "code": "91936005"
      }
    ]
  },
  "patient": {
    "reference": "Patient/patient-438"
  }
}

Responses

Successful statusMeaning
201Resource created; response content follows the supported return preference.

For common error statuses and FHIR-formatted error bodies, see OperationOutcome errors. Authentication/authorization responses follow the shared policy; a protected resource can be concealed as 404. See also interaction responses.

Supported Prefer return preferences control response content; applicable Location, ETag and Last-Modified headers follow the lifecycle contract.