---
schema_version: "1"
id: 1112e5272094fb5507adad5c322586a4216b4767048a0fb899538719fed73e7f
title: Patient Upsert
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/health_cloud_object_reference/connect_responses_patient_upsert_output.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/connect_responses_patient_upsert_output.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 69ef79122ea4d551a31fbd0ee322e9fb35912e22f327be46a1a862260a8a5b50
description: Output representation of result after a Patient FHIR resource is created.
---
# Patient Upsert

Output representation of result after a Patient FHIR resource is created.

<table class="featureTable sort_table" summary="">
          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader vertical-align-top " id="d712969e28">Property Name</th>
              <th class="featureTableHeader vertical-align-top " id="d712969e30">Type</th>
              <th class="featureTableHeader vertical-align-top " id="d712969e32">Description</th>
              <th class="featureTableHeader vertical-align-top " id="d712969e34">Filter Group and Version</th>
              <th class="featureTableHeader vertical-align-top " id="d712969e36">Available Version</th>
            </tr>
          </thead>
          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d712969e28" data-title="Property Name"><samp class="codeph nolang">errorCode</samp></td>
              <td class="entry" headers="d712969e30" data-title="Type">Integer</td>
              <td class="entry" headers="d712969e32" data-title="Description">The error code in case of failure.</td>
              <td class="entry" headers="d712969e34" data-title="Filter Group and Version">Small, 53.0</td>
              <td class="entry" headers="d712969e36" data-title="Available Version">53.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d712969e28" data-title="Property Name"><samp class="codeph nolang">errorMessage</samp></td>
              <td class="entry" headers="d712969e30" data-title="Type">String</td>
              <td class="entry" headers="d712969e32" data-title="Description">The error message in case of failure.</td>
              <td class="entry" headers="d712969e34" data-title="Filter Group and Version">Small, 53.0</td>
              <td class="entry" headers="d712969e36" data-title="Available Version">53.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d712969e28" data-title="Property Name"><samp class="codeph nolang">failedCount</samp></td>
              <td class="entry" headers="d712969e30" data-title="Type">Integer</td>
              <td class="entry" headers="d712969e32" data-title="Description">Specifies the failed count number.</td>
              <td class="entry" headers="d712969e34" data-title="Filter Group and Version">Small, 53.0</td>
              <td class="entry" headers="d712969e36" data-title="Available Version">53.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d712969e28" data-title="Property Name"><samp class="codeph nolang">failedRecords</samp></td>
              <td class="entry" headers="d712969e30" data-title="Type">
                <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/connect_responses_fhir_patient_output.htm" title="The output representation of the patient stored in Salesforce, as specified in the input request.">FHIR Patient</a>[]
              </td>
              <td class="entry" headers="d712969e32" data-title="Description">Represents the failed records.</td>
              <td class="entry" headers="d712969e34" data-title="Filter Group and Version">Small, 53.0</td>
              <td class="entry" headers="d712969e36" data-title="Available Version">53.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d712969e28" data-title="Property Name"><samp class="codeph nolang">status</samp></td>
              <td class="entry" headers="d712969e30" data-title="Type">String</td>
              <td class="entry" headers="d712969e32" data-title="Description">Specifies the status of the request.<div class="p">Possible values are:<ul class="ul bulletList">
                    <li class="li">
                      <samp class="codeph nolang">Failure</samp>—Specifies that the
                      upsert request of the Patient FHIR resource couldn’t be completed.
                    </li>

                    <li class="li">
                      <samp class="codeph nolang">Success</samp>—Specifies that the
                      upsert request of the Patient FHIR resource is successfully completed.
                    </li>

                  </ul>
                </div>
              </td>
              <td class="entry" headers="d712969e34" data-title="Filter Group and Version">Small, 53.0</td>
              <td class="entry" headers="d712969e36" data-title="Available Version">53.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d712969e28" data-title="Property Name"><samp class="codeph nolang">successRecords</samp></td>
              <td class="entry" headers="d712969e30" data-title="Type">
                <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/connect_responses_fhir_patient_output.htm" title="The output representation of the patient stored in Salesforce, as specified in the input request.">FHIR Patient</a>[]
              </td>
              <td class="entry" headers="d712969e32" data-title="Description">Represents the records that got successfully created.</td>
              <td class="entry" headers="d712969e34" data-title="Filter Group and Version">Small, 53.0</td>
              <td class="entry" headers="d712969e36" data-title="Available Version">53.0</td>
            </tr>
          </tbody>
        </table>