{
  "resourceType": "StructureDefinition",
  "id": "profile-Coverage-individual-private",
  "url": "https://bpcs.exchange/fhir/StructureDefinition/profile-Coverage-individual-private",
  "name": "CoverageIndividualPrivate",
  "title": "Coverage Individual Private Profile",
  "status": "active",
  "experimental": false,
  "description": "The set of coverage elements returned for individual private coverage when searching (or providing the results of a create/update)",
  "fhirVersion": "5.0.0",
  "mapping": [
    {
      "identity": "BPCS",
      "name": "Internal BPCS API"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Coverage",
  "baseDefinition": "https://bpcs.exchange/fhir/StructureDefinition/profile-Coverage-individual-private-create",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Coverage.meta",
        "path": "Coverage.meta",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Coverage.meta.versionId",
        "path": "Coverage.meta.versionId",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "BPCS",
            "map": "RecipientInsuranceDTO.recCreateCustomTimestamp / FamilyMemberHistoryDTO.recCreateCustomTimestamp (no separators)"
          }
        ]
      },
      {
        "id": "Coverage.meta.lastUpdated",
        "path": "Coverage.meta.lastUpdated",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "BPCS",
            "map": "RecipientInsuranceDTO.recCreateCustomTimestamp / FamilyMemberHistoryDTO.recCreateCustomTimestamp (convert to valid FHIR format timestamp)"
          }
        ]
      },
      {
        "id": "Coverage.meta.extension",
        "path": "Coverage.meta.extension",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Coverage.meta.extension:effectiveDate",
        "path": "Coverage.meta.extension",
        "sliceName": "effectiveDate",
        "comment": "This associates the income information to the verson of the Trillium insurance application the private coverage information is associated with.",
        "min": 1,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://bpcs.exchange/fhir/StructureDefinition/ext-Meta-effectiveDate"
            ]
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "BPCS",
            "map": "RecipientInsuranceDTO.recEffDate, FamilyMemberHistory.recEffDate"
          }
        ]
      },
      {
        "id": "Coverage.contained",
        "path": "Coverage.contained",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Coverage.contained:provenance",
        "path": "Coverage.contained",
        "sliceName": "provenance",
        "short": "Creation/Update/etc. Metadata",
        "definition": "Nested Provenance information referring to this resource that describes the creation, and sometimes the most recent update and/or inactivation of the record, specifically who was responsible and when it occurred",
        "min": 1,
        "type": [
          {
            "code": "Provenance",
            "profile": [
              "https://bpcs.exchange/fhir/StructureDefinition/profile-Provenance"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Coverage.extension",
        "path": "Coverage.extension",
        "min": 1
      },
      {
        "id": "Coverage.insurer.display",
        "path": "Coverage.insurer.display",
        "definition": "The registered name of the insurer.  For BPCS, this will be 'Benefit Program Client Servies'",
        "example": [
          {
            "label": "For BPCS",
            "valueString": "Benefit Program Client Services"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "BPCS",
            "map": "RecipientInsuranceDTO.insuranceName1 or insuranceName2.  Can also be looked up in the code system based on FamilyMemberHistoryDTO.companyId1 or companyId2"
          }
        ]
      }
    ]
  }
}