This code system https://fhir.hl7.org.uk/CodeSystem/UKCore-MedicationPrescribingOrganization defines the following codes:

CodeDisplay
prescribed-at-gp-practicePrescribed at GP practice
prescribed-by-another-organisationPrescribed by another organisation