Starfish API Documentation

createContactLensNoMandatoryPrescription

Creates a contact lense without mandatory prescription.

CreateContactLensNoMandatoryPrescriptionMutationInput

Autogenerated input type of CreateContactLensNoMandatoryPrescriptionMutation

  • clientMutationId: String

    A unique identifier for the client performing the mutation.

  • userId: ID!required

    ID of user

  • createdById: ID!required

    ID of user

  • leftEye: ProductVariantSpecificationInput

    A specification (characteristics) for the contact lens product variant for the left eye

  • rightEye: ProductVariantSpecificationInput

    A specification (characteristics) for the contact lens product variant for the right eye

  • patient: PatientInput!required

  • prescribingLocationId: ID

    The location where the prescription was issued

  • prescriptionToReplaceId: ID

    The prescription to be replaced

  • contactLensCheckDate: ISO8601Date!required

    The date the prescription was checked by staff

  • recallDate: ISO8601Date

    The date the patient should be recalled

CreateContactLensNoMandatoryPrescriptionMutationPayload

Autogenerated return type of CreateContactLensNoMandatoryPrescriptionMutation.

Query

mutation($input: CreateContactLensNoMandatoryPrescriptionMutationInput!) {
  createContactLensNoMandatoryPrescription(input: $input) {
    prescription {
      id
      leftEye {
        product {
          id
          name
        }
        properties {
          name
          value
        }
      }
      patient {
        dateOfBirth
        firstName
        lastName
        pmsPatientIdentifier
        personalIdentityNumber
      }
      status
      contactLensCheckDate
      recallDate
      url
      prescribingLocation {
        id
      }
      createdBy {
        id
      }
    }
  }
}

Variables

{
  "input": {
    "userId": "AccountHolder-XL3FBMGL86",
    "patient": {
      "firstName": "Bob",
      "lastName": "Carpe",
      "dateOfBirth": "1980-02-02",
      "personalIdentityNumber": "19920801-1234",
      "pmsPatientIdentifier": "ABC123"
    },
    "leftEye": {
      "productId": "Product-6DPSXO6DEDY",
      "properties": [
        {
          "name": "power",
          "value": "+1.00"
        },
        {
          "name": "bc",
          "value": "9.0"
        },
        {
          "name": "dia",
          "value": "14.2"
        }
      ]
    },
    "contactLensCheckDate": "2021-05-19",
    "recallDate": "2021-06-21",
    "prescribingLocationId": "Location-9R3TMR8XMV4",
    "createdById": "StaffMember-WVNFD3KPVRD"
  }
}

Response

{
  "data": {
    "createContactLensNoMandatoryPrescription": {
      "prescription": {
        "id": "ContactLensPrescription-XD2IP77V26N",
        "leftEye": {
          "product": {
            "id": "Product-6DPSXO6DEDY",
            "name": "1-Day Acuvue Moist 30 pack"
          },
          "properties": [
            {
              "name": "power",
              "value": "+1.00"
            },
            {
              "name": "bc",
              "value": "9.0"
            },
            {
              "name": "dia",
              "value": "14.2"
            }
          ]
        },
        "patient": {
          "dateOfBirth": "1980-02-02",
          "firstName": "Bob",
          "lastName": "Carpe",
          "pmsPatientIdentifier": "ABC123",
          "personalIdentityNumber": "19920801-1234"
        },
        "status": "self_certified",
        "contactLensCheckDate": "2021-05-19",
        "recallDate": "2021-06-21",
        "url": "http://acme.platform.localhost:3000/en-US/contact-lens-prescriptions/XD2IP77V26N",
        "prescribingLocation": {
          "id": "Location-9R3TMR8XMV4"
        },
        "createdBy": {
          "id": "StaffMember-WVNFD3KPVRD"
        }
      }
    }
  }
}