<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="profile-Patient-application" />
  <url value="https://bpcs.exchange/fhir/StructureDefinition/profile-Patient-application" />
  <name value="PatientApplication" />
  <title value="Recipient Application Profile" />
  <status value="active" />
  <experimental value="false" />
  <description value="Information about a recipient used when submitting a family coverage application" />
  <fhirVersion value="5.0.0" />
  <mapping>
    <identity value="BPCS" />
    <name value="Internal BPCS API" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Patient" />
  <baseDefinition value="https://bpcs.exchange/fhir/StructureDefinition/profile-Patient-create" />
  <derivation value="constraint" />
  <differential>
    <element id="Patient.id">
      <path value="Patient.id" />
      <comment value="This should be the patient's ODB Number" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.extension:problemCode">
      <path value="Patient.extension" />
      <sliceName value="problemCode" />
      <type>
        <code value="Extension" />
        <profile value="https://bpcs.exchange/fhir/StructureDefinition/ext-Resource-ProblemCode" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="BPCS" />
        <map value="FamilyMemberDTO.problemCodes" />
      </mapping>
    </element>
    <element id="Patient.extension:problemCode.value[x]">
      <path value="Patient.extension.value[x]" />
      <binding>
        <strength value="required" />
        <valueSet value="https://bpcs.exchange/fhir/ValueSet/vs-Problem-patient-create" />
      </binding>
    </element>
  </differential>
</StructureDefinition>