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