---
schema_version: "1"
id: c102d00ea7d79d815db4a0fc40514b3bd68bff63246b350b92f2f30f151e62a4
title: Patient Upsert
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/life_sciences_dev_guide/connect_responses_patient_upsert_output.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/connect_responses_patient_upsert_output.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: b6a57b3f0a6af677cc2d503a349bf77bc9dc9ce5d2b8547f3299217ae1428b8b
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="d386163e28">Property Name</th>
              <th class="featureTableHeader vertical-align-top " id="d386163e30">Type</th>
              <th class="featureTableHeader vertical-align-top " id="d386163e32">Description</th>
              <th class="featureTableHeader vertical-align-top " id="d386163e34">Filter Group and Version</th>
              <th class="featureTableHeader vertical-align-top " id="d386163e36">Available Version</th>
            </tr>
          </thead>
          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d386163e28" data-title="Property Name"><samp class="codeph nolang">errorCode</samp></td>
              <td class="entry" headers="d386163e30" data-title="Type">Integer</td>
              <td class="entry" headers="d386163e32" data-title="Description">The error code in case of failure.</td>
              <td class="entry" headers="d386163e34" data-title="Filter Group and Version">Small, 53.0</td>
              <td class="entry" headers="d386163e36" data-title="Available Version">53.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d386163e28" data-title="Property Name"><samp class="codeph nolang">errorMessage</samp></td>
              <td class="entry" headers="d386163e30" data-title="Type">String</td>
              <td class="entry" headers="d386163e32" data-title="Description">The error message in case of failure.</td>
              <td class="entry" headers="d386163e34" data-title="Filter Group and Version">Small, 53.0</td>
              <td class="entry" headers="d386163e36" data-title="Available Version">53.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d386163e28" data-title="Property Name"><samp class="codeph nolang">failedCount</samp></td>
              <td class="entry" headers="d386163e30" data-title="Type">Integer</td>
              <td class="entry" headers="d386163e32" data-title="Description">Specifies the failed count number.</td>
              <td class="entry" headers="d386163e34" data-title="Filter Group and Version">Small, 53.0</td>
              <td class="entry" headers="d386163e36" data-title="Available Version">53.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d386163e28" data-title="Property Name"><samp class="codeph nolang">failedRecords</samp></td>
              <td class="entry" headers="d386163e30" data-title="Type">
                <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/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="d386163e32" data-title="Description">Represents the failed records.</td>
              <td class="entry" headers="d386163e34" data-title="Filter Group and Version">Small, 53.0</td>
              <td class="entry" headers="d386163e36" data-title="Available Version">53.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d386163e28" data-title="Property Name"><samp class="codeph nolang">status</samp></td>
              <td class="entry" headers="d386163e30" data-title="Type">String</td>
              <td class="entry" headers="d386163e32" 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="d386163e34" data-title="Filter Group and Version">Small, 53.0</td>
              <td class="entry" headers="d386163e36" data-title="Available Version">53.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d386163e28" data-title="Property Name"><samp class="codeph nolang">successRecords</samp></td>
              <td class="entry" headers="d386163e30" data-title="Type">
                <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/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="d386163e32" data-title="Description">Represents the records that got successfully created.</td>
              <td class="entry" headers="d386163e34" data-title="Filter Group and Version">Small, 53.0</td>
              <td class="entry" headers="d386163e36" data-title="Available Version">53.0</td>
            </tr>
          </tbody>
        </table>