Create an encounter

post

/Encounter

Creates an individual encounter.

Authorization Types

This operation supports the following authorization types:

Request

Supported Media Types
Header Parameters
Body ()
The body of the create operation
Root Schema : EncounterCreateBody
Type: object
Show Source
  • The classification of the encounter. Direct writing of class is not supported. This field is inferred on a write.
    Example: inpatient
  • A client-defined custom attribute for the encounter.
    Note:
    • The custom-attribute ID field cannot be set.
    • custom-attribute-name and custom-attribute-value are both required.
    • ID and valueString for custom-attribute-name are required.
    • custom-attribute-value can be of type string, integer, dateTime, or CodeableConcept.
    • CodeableConcept can have the following systems:
      • https://fhir.cerner.com/{EHR source id}/nomenclature
      • https://fhir.cerner.com/{EHR source id}/codeSet/{code set}
    Example: [ { "extension": [ { "id": "ENCNTR:2822522", "valueString": "ICD-9 Code", "url": "custom-attribute-name" }, { "valueString": "test string", "url": "custom-attribute-value" } ], "url": "https://fhir-ehr.cerner.com/r4/StructureDefinition/custom-attribute" } ]
  • hospitalization
    The details about the admission to a healthcare service. Only the admitSource and dischargeDisposition fields are supported on a write.
  • identifier
    The identifiers by which this encounter is known.
  • The location where the encounter takes place. Only one location reference is permitted. Cannot be provided when serviceProvider is present.
    Example: [ { "location": { "reference": "Location/21250409" } } ]
  • The security labels applied to this resource. Encounters created with meta.security that are set with a code value of UNCERTREL are returned with an external encounter type.
    Example: [ { "security": [ { "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationValue", "code": "UNCERTREL" } ] } ]
  • participant
    The list of people responsible for providing the service.
  • The start and end times of the encounter. A date with the time must be provided.
    Example: { "start": "2020-03-02T01:13:00Z", "end": "2020-03-05T00:00:00Z" }
  • Identification of the condition, problem, or diagnosis.
    Example: [ { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/v3-ActPriority", "code": "O" } ] } ]
  • The reason that the encounter is taking place. ICD-10 and SNOMED codes with text fields are supported.
    Example: [ { "coding": [ { "system": "http://snomed.info/sct", "code": "208388003", "display": "Fracture At Wrist And/Or Hand Level", "userSelected": true } ] }, { "text": "Neck pain" } ]
  • The FHIR resource type. resourceType must be Encounter.
    Example: Encounter
  • The organization (facility) responsible for this encounter. Cannot be provided when location is present.
    Example: { "reference": "Organization/619848" }
  • The status of the encounter. Currently, the cancelled or entered-in-error statuses are not supported.
    Example: in-progress
  • The patient present at the encounter.
    Example: { "reference": "Patient/4342011" }
  • The specific type of encounter.
    Example: [ { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/v2-0004", "code": "O" } ] } ]
Nested Schema : hospitalization
Type: object
The details about the admission to a healthcare service. Only the admitSource and dischargeDisposition fields are supported on a write.
Show Source
Example:
{
  "admitSource": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/admit-source",
        "code": "born"
      }
    ]
  },
  "dischargeDisposition": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/discharge-disposition",
        "code": "other-hcf"
      }
    ]
  }
}
Nested Schema : identifier
Type: object
The identifiers by which this encounter is known.
Show Source
Example:
[
   {
     "use": "usual",
     "type": {
       "coding": [
         {
           "system": "https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/319",
           "code": "1077",
           "display": "FIN NBR"
         }
       ]
     },
     "system": "urn:oid:3.3.3.3.3.3",
     "value": "2009",
     "period": {
       "start": "2017-01-17T20:39:40.000Z"
     }
   }
 ]
Nested Schema : participant
Type: object
The list of people responsible for providing the service.
Show Source
Example:
[
  {
    "type": [
      {
        "coding": [
          {
            "system": "http://hl7.org/fhir/v3/ParticipationType",
            "code": "ATND"
          }
        ]
      }
    ],
    "period": {
      "start": "2017-03-02T20:01:13.000Z"
    },
    "individual": {
      "reference": "Practitioner/1912007"
    }
  }
]
  
Nested Schema : type
Type: object
The type for the identifier that can be used to determine which identifier is appropriate for a specific purpose.
Example:
{
  "type": {
    "coding": [
      {
        "system": "https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/319",
        "code": "1077",
        "display": "FIN NBR"
      }
    ]
  }
}
Back to Top

Response

Supported Media Types

201 Response

Example Request:
POST https://fhir-ehr-code.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Encounter
Example Response:
  Cache-Control: no-cache
  Content-Length: 0
  Content-Type: application/fhir+json
  Date: Wed, 27 Mar 2019 15:59:33 GMT
  Etag: W/"0"
  Last-Modified: Wed, 27 Mar 2019 15:59:30 GMT
  Location: https://fhir-ehr-code.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Encounter/1621910
  Vary: Origin
  X-Request-Id: 11111111111111111111111111111111
The ETag response header includes the current If-Match version to use on a subsequent update.
Back to Top