Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.morf.health/docs/llms.txt

Use this file to discover all available pages before exploring further.

images/intakeq.svg

Delivery Logic

Morf uses the following logic to determine whether the questionnaire is sent via email or phone:
  • If no Client ID is specified, the client ID on the Morf profile is used and the questionnaire is sent to the email on the IntakeQ client.
  • If Client Full Name is specified, either email or phone must also be specified.
    • If both email and phone are specified, the questionnaire is sent via email.
Use the answers map to automatically populate office-use only questions.

Parameters

Action
Parameters
{
  "$result_object_key": {
    "appointment_id": "12342",
    "client_email": "john.smith@example.com",
    "client_id": 42,
    "client_name": "John Smith",
    "consent_forms": [
      {
        "document_type": "HIPAA",
        "id": "12342",
        "name": "HIPAA Consent",
        "signed": true,
        "submitted_at": "2024-01-23T10:30:00Z"
      }
    ],
    "created_at": "2024-01-23T10:00:00Z",
    "external_client_id": "a7699305-7142-4599-a661-717b6bcd3305",
    "id": "12342",
    "practitioner": "acbdefg",
    "practitioner_name": "Dr. Marie Curie",
    "questionnaire_name": "Initial Intake Form",
    "questions": [
      {
        "answer": "Back pain",
        "attachments": [
          {
            "content_type": "application/pdf",
            "file_name": "medical_report.pdf",
            "id": "12342",
            "url": "https://example.com/attachment.pdf"
          }
        ],
        "client_profile_field_id": "primary_concern",
        "column_names": [
          "Symptom",
          "Severity"
        ],
        "id": "12342",
        "office_note": "Patient reported severe pain",
        "office_use": false,
        "question_type": "text",
        "rows": [
          {
            "answers": [
              "Back pain",
              "Severe"
            ],
            "text": "Back pain"
          }
        ],
        "text": "What is your primary concern?"
      }
    ],
    "status": "Submitted",
    "submitted_at": "2024-01-23T10:30:00Z"
  }
}
{
  "$result_object_key": {
    "appointment_id": "ID of the associated appointment",
    "client_email": "Email address of the client",
    "client_id": "IntakeQ's unique identifier for the client",
    "client_name": "Full name of the client",
    "consent_forms": {
      "document_type": "Type of the consent document",
      "id": "Unique identifier for the consent form",
      "name": "Name of the consent form",
      "signed": "Whether the consent form has been signed",
      "submitted_at": "Time the consent form was submitted"
    },
    "created_at": "Time the intake form was created",
    "external_client_id": "External system client ID",
    "id": "Unique identifier for the intake form",
    "practitioner": "ID of the practitioner",
    "practitioner_name": "Name of the practitioner",
    "questionnaire_name": "Name of the questionnaire",
    "questions": {
      "answer": "Answer to the question",
      "attachments": {
        "content_type": "Content type of the attachment",
        "file_name": "Name of the attached file",
        "id": "Unique identifier for the attachment",
        "url": "URL of the attachment"
      },
      "client_profile_field_id": "ID of the client profile field this question maps to",
      "column_names": "Column names for table/grid questions",
      "id": "Unique identifier for the question",
      "office_note": "Office note for the question",
      "office_use": "Whether the question is for office use only",
      "question_type": "Type of the question",
      "rows": {
        "answers": "Answers for each column in the row",
        "text": "Text for the row"
      },
      "text": "Text of the question"
    },
    "status": "Status of the intake form",
    "submitted_at": "Time the intake form was submitted"
  }
}

Result Object Field Details

You can use the result of the action’s data as inputs to downstream workflow actions. Each fetch action requires a result object key to be specified which will nest the action’s result data inside the downstream data context in the Workflow. Here we demonstrate how to refer to this data using the prefix $result_object_key.
IntakeForm
Fetch Action Response Object