This code system http://hl7.org/fhir/medication-statement-category defines the following codes:

CodeDisplayDefinition
inpatientInpatientIncludes orders for medications to be administered or consumed in an inpatient or acute care setting
outpatientOutpatientIncludes orders for medications to be administered or consumed in an outpatient setting (for example, Emergency Department, Outpatient Clinic, Outpatient Surgery, Doctor's office)
communityCommunityIncludes orders for medications to be administered or consumed by the patient in their home (this would include long term care or nursing homes, hospices, etc)
patientspecifiedPatient SpecifiedIncludes statements about medication use, including over the counter medication, provided by the patient, agent or another provider