{
  "resourceType": "StructureDefinition",
  "id": "ext-Coverage-NotPayingPeriod",
  "url": "https://bpcs.exchange/fhir/StructureDefinition/ext-Coverage-NotPayingPeriod",
  "name": "CoverageNotPayingPeriod",
  "title": "Coverage Not Paying Period",
  "status": "active",
  "experimental": false,
  "description": "Indicates the period of time over which the member's private coverage is not contributing to drug costs - typically because the patient has reached their maximum for the benefit period.  Coverage will reset when the private plan starts a new coverage period.",
  "fhirVersion": "5.0.0",
  "mapping": [
    {
      "identity": "BPCS",
      "name": "Internal BPCS API"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "Coverage.period"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Coverage not paying period",
        "definition": "Indicates the period of time over which the member's private coverage is not contributing to drug costs - typically because the patient has reached their maximum for the benefit period.  Coverage will reset when the private plan starts a new coverage period.",
        "max": "1"
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "https://bpcs.exchange/fhir/StructureDefinition/ext-Coverage-NotPayingPeriod"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "type": [
          {
            "code": "Period"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Extension.value[x].start",
        "path": "Extension.value[x].start",
        "short": "maximumReachedDate",
        "definition": "The most recent date within the overall coverage period for the private insurance when its maximum covered amount is reached.  I.e. after this date, this private insurance will no longer reimburse for eligible costs.",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "BPCS",
            "map": "RecipientInsuranceDTO/FamilyMemberHistoryDTO.maximumReachedDate1 or maximumReachedDate2, FamilyMemberInsuranceDTO.maximumReachedDate, InsuranceDTO.maximumReachedDate"
          }
        ]
      },
      {
        "id": "Extension.value[x].end",
        "path": "Extension.value[x].end",
        "short": "reinstatementDate",
        "definition": "The first date when the private insurance max reached is reset and coverage will be resumed.  For example, if the coverage limits to $2000 within a year and the maximum had been exceeded, when the renewal date is reached, the counter starts again at zero and the private insurance will again make payments for receipts after that date.",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "BPCS",
            "map": "RecipientInsuranceDTO/FamilyMemberHistoryDTO.reinstatementDate1 or reinstatementDate2, FamilyMemberInsuranceDTO.reinstatementDate, InsuranceDTO.reinstatementDate"
          }
        ]
      }
    ]
  }
}