[guided]We define the proposed global extension by letting the same formulas that define $p$ over $M$ decide instances over the whole monster model. For every formula $\varphi(x;y)$ and every parameter tuple $c \in \mathfrak C^{|y|}$, put
\begin{align*}
\varphi(x;c) \in \tilde q
\quad \iff \quad
\mathfrak C \models d_p\varphi(c).
\end{align*}
Equivalently,
\begin{align*}
\tilde q(x)
=
\{\,\varphi(x;c) : \varphi(x;y) \text{ is a formula},\ c \in \mathfrak C^{|y|},\ \mathfrak C \models d_p\varphi(c)\,\}.
\end{align*}
The first point to verify is completeness. Fix a formula $\varphi(x;y)$ and a tuple $c \in \mathfrak C^{|y|}$. A complete type must decide exactly one of $\varphi(x;c)$ and $\neg\varphi(x;c)$. The coherence of the definitional scheme gives
\begin{align*}
d_p(\neg \varphi)(c) \leftrightarrow \neg d_p\varphi(c).
\end{align*}
Therefore exactly one of the two predicates $d_p\varphi(c)$ and $d_p(\neg\varphi)(c)$ holds in $\mathfrak C$. By the definition of $\tilde q$, exactly one of $\varphi(x;c)$ and $\neg\varphi(x;c)$ lies in $\tilde q$.
The second point is finite consistency. Suppose
\begin{align*}
\varphi_1(x;c_1),\dots,\varphi_r(x;c_r)
\end{align*}
are finitely many formulas from $\tilde q$, where each $\varphi_i(x;y_i)$ is a formula and each $c_i \in \mathfrak C^{|y_i|}$. We must prove that these formulas can be realized simultaneously. Define the conjunction
\begin{align*}
\theta(x;y_1,\dots,y_r) := \bigwedge_{i=1}^{r} \varphi_i(x;y_i).
\end{align*}
Because each $\varphi_i(x;c_i)$ belongs to $\tilde q$, we have
\begin{align*}
\mathfrak C \models d_p\varphi_i(c_i)
\end{align*}
for every $1 \le i \le r$. Coherence of the definitional scheme turns the separate decisions into a decision for the conjunction:
\begin{align*}
\mathfrak C \models d_p\theta(c_1,\dots,c_r).
\end{align*}
Now we prove that the conjunction is realized. Suppose toward a contradiction that
\begin{align*}
\mathfrak C \models \neg \exists x\,\theta(x;c_1,\dots,c_r).
\end{align*}
Then the tuple $(c_1,\dots,c_r)$ realizes the $M$-definable condition
\begin{align*}
d_p\theta(y_1,\dots,y_r) \wedge \neg \exists x\,\theta(x;y_1,\dots,y_r).
\end{align*}
All parameters in $d_p\theta$ lie in $M$. Since $M \preceq \mathfrak C$, elementarity transfers the existence of such a tuple from $\mathfrak C$ down to $M$. Hence there are tuples $m_i \in M^{|y_i|}$ such that
\begin{align*}
\mathfrak C \models d_p\theta(m_1,\dots,m_r)
\wedge
\neg \exists x\,\theta(x;m_1,\dots,m_r).
\end{align*}
The first conjunct says, by the defining property of the scheme over $M$, that
\begin{align*}
\theta(x;m_1,\dots,m_r) \in p.
\end{align*}
But $p$ is a complete type over $M$, so every formula in $p$ is consistent with the elementary diagram of $M$. Therefore
\begin{align*}
\mathfrak C \models \exists x\,\theta(x;m_1,\dots,m_r),
\end{align*}
which contradicts the second conjunct. This proves that every finite subset of $\tilde q$ is satisfiable in $\mathfrak C$. By compactness, $\tilde q$ is consistent. Since we already proved that $\tilde q$ decides every formula with parameters from $\mathfrak C$, this consistent set of formulas is a complete global type over $\mathfrak C$.[/guided]