{
  "resourceType": "StructureDefinition",
  "id": "profile-Parameters-coverage-application-end",
  "url": "https://bpcs.exchange/fhir/StructureDefinition/profile-Parameters-coverage-application-end",
  "name": "ParametersCoverageApplicationEnd",
  "title": "Family Coverage Application End Parameters Profile",
  "status": "active",
  "experimental": false,
  "description": "The parameters passed into the family coverage application status end operation.",
  "fhirVersion": "5.0.0",
  "mapping": [
    {
      "identity": "BPCS",
      "name": "Internal BPCS API"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Parameters",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Parameters",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Parameters.parameter",
        "path": "Parameters.parameter",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "name"
            }
          ],
          "rules": "closed"
        }
      },
      {
        "id": "Parameters.parameter:note",
        "path": "Parameters.parameter",
        "sliceName": "note",
        "short": "User comment",
        "definition": "A user comment justifying/explaining the reason for the status change",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Parameters.parameter:note.name",
        "path": "Parameters.parameter.name",
        "patternString": "note"
      },
      {
        "id": "Parameters.parameter:note.value[x]",
        "path": "Parameters.parameter.value[x]",
        "short": "Content of note",
        "definition": "The text to be inserted as the body of the new application note associated with the status change",
        "min": 1,
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "BPCS",
            "map": "ApplicationNoteDTO.note"
          }
        ]
      },
      {
        "id": "Parameters.parameter:note.resource",
        "path": "Parameters.parameter.resource",
        "max": "0"
      },
      {
        "id": "Parameters.parameter:note.part",
        "path": "Parameters.parameter.part",
        "max": "0"
      },
      {
        "id": "Parameters.parameter:endDate",
        "path": "Parameters.parameter",
        "sliceName": "endDate",
        "short": "Coverage end date",
        "definition": "The date to assert as the new end date for the family coverage being updated",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Parameters.parameter:endDate.name",
        "path": "Parameters.parameter.name",
        "patternString": "endDate"
      },
      {
        "id": "Parameters.parameter:endDate.value[x]",
        "path": "Parameters.parameter.value[x]",
        "short": "Date value",
        "definition": "Coverage end date",
        "min": 1,
        "type": [
          {
            "code": "date",
            "profile": [
              "https://bpcs.exchange/fhir/StructureDefinition/profile-date-full"
            ]
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "BPCS",
            "map": "FamilyDTO.enrollmentEndDate"
          }
        ]
      },
      {
        "id": "Parameters.parameter:endDate.resource",
        "path": "Parameters.parameter.resource",
        "max": "0"
      },
      {
        "id": "Parameters.parameter:endDate.part",
        "path": "Parameters.parameter.part",
        "max": "0"
      }
    ]
  }
}