-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.fhir_synthea.medication_request`
(
  basedOn ARRAY<STRUCT<carePlanId STRING, medicationRequestId STRING, procedureRequestId STRING, referralRequestId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, display STRING>>, display STRING>>, display STRING>>,
  category STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>,
  definition ARRAY<STRUCT<activityDefinitionId STRING, planDefinitionId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, display STRING>>, display STRING>>, display STRING>>,
  detectedIssue ARRAY<STRUCT<detectedIssueId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, display STRING>>, display STRING>>, display STRING>>,
  dispenseRequest STRUCT<validityPeriod STRUCT<start STRING, `end` STRING>, numberOfRepeatsAllowed INT64, quantity STRUCT<value FLOAT64, unit STRING, system STRING, code STRING>, expectedSupplyDuration STRUCT<value FLOAT64, comparator STRING, unit STRING, system STRING, code STRING>, performer STRUCT<organizationId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, display STRING>>, display STRING>>, display STRING>>,
  eventHistory ARRAY<STRUCT<provenanceId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, display STRING>>, display STRING>>, display STRING>>,
  groupIdentifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>>, display STRING>>, display STRING>>,
  identifier ARRAY<STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, display STRING>>, display STRING>>>,
  implicitRules STRING,
  language STRING,
  note ARRAY<STRUCT<author STRUCT<reference STRUCT<practitionerId STRING, patientId STRING, relatedPersonId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, display STRING>>, display STRING>>, display STRING>, string STRING>, time STRING, text STRING>>,
  priorPrescription STRUCT<medicationRequestId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, display STRING>>, display STRING>>, display STRING>,
  priority STRING,
  reasonCode ARRAY<STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>>,
  recorder STRUCT<practitionerId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, display STRING>>, display STRING>>, display STRING>,
  substitution STRUCT<allowed BOOL, reason STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>>,
  supportingInformation ARRAY<STRUCT<resourceId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, display STRING>>, display STRING>>, display STRING>>,
  text STRUCT<status STRING, div STRING>,
  shr_action_RequestedContext_extension STRUCT<shr_action_RequestIntent_extension STRUCT<value STRUCT<code STRING>>, shr_action_Status_extension STRUCT<value STRUCT<code STRING>>>,
  shr_base_ActionCode_extension STRUCT<value STRUCT<codeableConcept STRUCT<coding ARRAY<STRUCT<code STRING, display STRING, system STRING>>, text STRING>>>,
  authoredOn STRING,
  context STRUCT<display STRING, episodeOfCareId STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, display STRING>>, display STRING>>, reference STRING, encounterId STRING>,
  dosageInstruction ARRAY<STRUCT<maxDosePerAdministration STRUCT<value FLOAT64, unit STRING, system STRING, code STRING>, maxDosePerLifetime STRUCT<value FLOAT64, unit STRING, system STRING, code STRING>, maxDosePerPeriod STRUCT<numerator STRUCT<value FLOAT64, comparator STRING, unit STRING, system STRING, code STRING>, denominator STRUCT<value FLOAT64, comparator STRING, unit STRING, system STRING, code STRING>>, method STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, patientInstruction STRING, rate STRUCT<ratio STRUCT<numerator STRUCT<value FLOAT64, comparator STRING, unit STRING, system STRING, code STRING>, denominator STRUCT<value FLOAT64, comparator STRING, unit STRING, system STRING, code STRING>>, `range` STRUCT<low STRUCT<value FLOAT64, unit STRING, system STRING, code STRING>, high STRUCT<value FLOAT64, unit STRING, system STRING, code STRING>>, quantity STRUCT<value FLOAT64, unit STRING, system STRING, code STRING>>, route STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, site STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, text STRING, additionalInstruction ARRAY<STRUCT<coding ARRAY<STRUCT<userSelected BOOL, version STRING, code STRING, display STRING, system STRING>>, text STRING>>, asNeeded STRUCT<codeableConcept STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, boolean BOOL>, dose STRUCT<`range` STRUCT<low STRUCT<value FLOAT64, unit STRING, system STRING, code STRING>, high STRUCT<value FLOAT64, unit STRING, system STRING, code STRING>>, quantity STRUCT<code STRING, system STRING, unit STRING, value FLOAT64>>, sequence INT64, timing STRUCT<code STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, event ARRAY<STRING>, repeat STRUCT<bounds STRUCT<duration STRUCT<value FLOAT64, comparator STRING, unit STRING, system STRING, code STRING>, `range` STRUCT<low STRUCT<value FLOAT64, unit STRING, system STRING, code STRING>, high STRUCT<value FLOAT64, unit STRING, system STRING, code STRING>>, period STRUCT<start STRING, `end` STRING>>, count INT64, countMax INT64, dayOfWeek ARRAY<STRING>, duration FLOAT64, durationMax FLOAT64, durationUnit STRING, frequencyMax INT64, offset INT64, periodMax FLOAT64, timeOfDay ARRAY<STRING>, `when` ARRAY<STRING>, frequency INT64, period FLOAT64, periodUnit STRING>>>>,
  id STRING,
  intent STRING,
  medication STRUCT<reference STRUCT<medicationId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, display STRING>>, display STRING>>, display STRING>, codeableConcept STRUCT<coding ARRAY<STRUCT<userSelected BOOL, version STRING, code STRING, display STRING, system STRING>>, text STRING>>,
  meta STRUCT<lastUpdated TIMESTAMP, security ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, tag ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, versionId STRING, profile ARRAY<STRING>>,
  reasonReference ARRAY<STRUCT<display STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, display STRING>>, display STRING>>, observationId STRING, reference STRING, conditionId STRING>>,
  requester STRUCT<agent STRUCT<deviceId STRING, display STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, display STRING>>, display STRING>>, organizationId STRING, patientId STRING, reference STRING, relatedPersonId STRING, practitionerId STRING>, onBehalfOf STRUCT<display STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, display STRING>>, display STRING>>, reference STRING, organizationId STRING>>,
  status STRING,
  subject STRUCT<display STRING, groupId STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, identifier STRUCT<use STRING, type STRUCT<coding ARRAY<STRUCT<system STRING, version STRING, code STRING, display STRING, userSelected BOOL>>, text STRING>, system STRING, value STRING, period STRUCT<start STRING, `end` STRING>, assigner STRUCT<organizationId STRING, reference STRING, display STRING>>, display STRING>>, reference STRING, patientId STRING>
);

INSERT INTO `bigquery-public-data.fhir_synthea.medication_request` (basedOn, category, definition, detectedIssue, dispenseRequest, eventHistory, groupIdentifier, identifier, implicitRules, language, note, priorPrescription, priority, reasonCode, recorder, substitution, supportingInformation, text, shr_action_RequestedContext_extension, shr_base_ActionCode_extension, authoredOn, context, dosageInstruction, id, intent, medication, meta, reasonReference, requester, status, subject) VALUES ('[]', NULL, '[]', '[]', NULL, '[]', NULL, '[]', NULL, NULL, '[]', NULL, NULL, '[]', NULL, NULL, '[]', NULL, {'shr_action_RequestIntent_extension': {'value': {'code': 'original-order'}}, 'shr_action_Status_extension': {'value': {'code': 'completed'}}}, {'value': {'codeableConcept': {'coding': "[{'code': '33633005', 'display': 'Prescription of drug (procedure)', 'system': 'http://snomed.info/sct'}]", 'text': 'Prescription of drug (procedure)'}}}, '1975-06-17T05:54:38+00:00', {'display': None, 'episodeOfCareId': None, 'identifier': None, 'reference': None, 'encounterId': 'c642ee8e-e49f-4e93-b28b-61a6ede4becc'}, '[]', '45c839fd-2a60-423c-87f4-00532788409b', 'order', {'reference': None, 'codeableConcept': {'coding': "[{'userSelected': None, 'version': None, 'code': '4337', 'display': 'Fentanyl', 'system': 'http://www.nlm.nih.gov/research/umls/rxnorm'}]", 'text': 'Fentanyl'}}, {'lastUpdated': None, 'security': '[]', 'tag': '[]', 'versionId': None, 'profile': "['http://standardhealthrecord.org/fhir/StructureDefinition/shr-medication-MedicationRequested']"}, '[]', {'agent': {'deviceId': None, 'display': None, 'identifier': None, 'organizationId': None, 'patientId': None, 'reference': None, 'relatedPersonId': None, 'practitionerId': '03c7fb00-f9fb-465c-bebf-a3d384e55f12'}, 'onBehalfOf': {'display': None, 'identifier': None, 'reference': None, 'organizationId': 'fbf6180e-b800-3ebe-b91d-93d0288c400e'}}, 'stopped', {'display': None, 'groupId': None, 'identifier': None, 'reference': None, 'patientId': '275a0f3c-c6e9-484e-bd46-fa021c09bd3c'}), ('[]', NULL, '[]', '[]', NULL, '[]', NULL, '[]', NULL, NULL, '[]', NULL, NULL, '[]', NULL, NULL, '[]', NULL, {'shr_action_RequestIntent_extension': {'value': {'code': 'original-order'}}, 'shr_action_Status_extension': {'value': {'code': 'completed'}}}, {'value': {'codeableConcept': {'coding': "[{'code': '33633005', 'display': 'Prescription of drug (procedure)', 'system': 'http://snomed.info/sct'}]", 'text': 'Prescription of drug (procedure)'}}}, '2016-04-03T11:37:47+00:00', {'display': None, 'episodeOfCareId': None, 'identifier': None, 'reference': None, 'encounterId': 'bbdbd385-c79a-411c-bceb-5b1252c760fe'}, '[]', 'bbaeeacc-2289-4bf0-9ffb-00bd116223c9', 'order', {'reference': None, 'codeableConcept': {'coding': "[{'userSelected': None, 'version': None, 'code': '4337', 'display': 'Fentanyl', 'system': 'http://www.nlm.nih.gov/research/umls/rxnorm'}]", 'text': 'Fentanyl'}}, {'lastUpdated': None, 'security': '[]', 'tag': '[]', 'versionId': None, 'profile': "['http://standardhealthrecord.org/fhir/StructureDefinition/shr-medication-MedicationRequested']"}, '[]', {'agent': {'deviceId': None, 'display': None, 'identifier': None, 'organizationId': None, 'patientId': None, 'reference': None, 'relatedPersonId': None, 'practitionerId': '30fcc684-a3be-47d4-9b3b-c1d55caa4d51'}, 'onBehalfOf': {'display': None, 'identifier': None, 'reference': None, 'organizationId': 'cbbee84d-7644-3b24-9f41-e3747f5050df'}}, 'stopped', {'display': None, 'groupId': None, 'identifier': None, 'reference': None, 'patientId': '2da2602e-8a60-4e2e-ab4f-00c4fe487348'}), ('[]', NULL, '[]', '[]', NULL, '[]', NULL, '[]', NULL, NULL, '[]', NULL, NULL, '[]', NULL, NULL, '[]', NULL, {'shr_action_RequestIntent_extension': {'value': {'code': 'original-order'}}, 'shr_action_Status_extension': {'value': {'code': 'completed'}}}, {'value': {'codeableConcept': {'coding': "[{'code': '33633005', 'display': 'Prescription of drug (procedure)', 'system': 'http://snomed.info/sct'}]", 'text': 'Prescription of drug (procedure)'}}}, '2018-02-16T19:21:42+00:00', {'display': None, 'episodeOfCareId': None, 'identifier': None, 'reference': None, 'encounterId': '82c14701-26d3-4fc5-b919-aaeebc125353'}, '[]', '0e64d6f6-caff-4d97-bebe-17e3994156a9', 'order', {'reference': None, 'codeableConcept': {'coding': "[{'userSelected': None, 'version': None, 'code': '4337', 'display': 'Fentanyl', 'system': 'http://www.nlm.nih.gov/research/umls/rxnorm'}]", 'text': 'Fentanyl'}}, {'lastUpdated': None, 'security': '[]', 'tag': '[]', 'versionId': None, 'profile': "['http://standardhealthrecord.org/fhir/StructureDefinition/shr-medication-MedicationRequested']"}, '[]', {'agent': {'deviceId': None, 'display': None, 'identifier': None, 'organizationId': None, 'patientId': None, 'reference': None, 'relatedPersonId': None, 'practitionerId': '99d69b67-4c13-42fe-bc69-71b3aec29d72'}, 'onBehalfOf': {'display': None, 'identifier': None, 'reference': None, 'organizationId': '331f4c11-d298-308b-aaa1-d7825b29b57f'}}, 'stopped', {'display': None, 'groupId': None, 'identifier': None, 'reference': None, 'patientId': '83b3cb4f-86b4-40d6-bee4-249507de55c3'}), ('[]', NULL, '[]', '[]', NULL, '[]', NULL, '[]', NULL, NULL, '[]', NULL, NULL, '[]', NULL, NULL, '[]', NULL, {'shr_action_RequestIntent_extension': {'value': {'code': 'original-order'}}, 'shr_action_Status_extension': {'value': {'code': 'completed'}}}, {'value': {'codeableConcept': {'coding': "[{'code': '33633005', 'display': 'Prescription of drug (procedure)', 'system': 'http://snomed.info/sct'}]", 'text': 'Prescription of drug (procedure)'}}}, '2017-07-07T16:35:18+00:00', {'display': None, 'episodeOfCareId': None, 'identifier': None, 'reference': None, 'encounterId': 'cdb01910-4440-4e21-9d54-8b024b0b05d3'}, '[]', 'ac224255-9c67-4baf-9962-a23a3a178da4', 'order', {'reference': None, 'codeableConcept': {'coding': "[{'userSelected': None, 'version': None, 'code': '4337', 'display': 'Fentanyl', 'system': 'http://www.nlm.nih.gov/research/umls/rxnorm'}]", 'text': 'Fentanyl'}}, {'lastUpdated': None, 'security': '[]', 'tag': '[]', 'versionId': None, 'profile': "['http://standardhealthrecord.org/fhir/StructureDefinition/shr-medication-MedicationRequested']"}, '[]', {'agent': {'deviceId': None, 'display': None, 'identifier': None, 'organizationId': None, 'patientId': None, 'reference': None, 'relatedPersonId': None, 'practitionerId': '52431be0-6832-481c-8da2-490ee1e3fe56'}, 'onBehalfOf': {'display': None, 'identifier': None, 'reference': None, 'organizationId': '465de31f-3098-365c-af70-48a071e1f5aa'}}, 'stopped', {'display': None, 'groupId': None, 'identifier': None, 'reference': None, 'patientId': '619c341a-4c8e-418c-a8db-4d291cbc9052'}), ('[]', NULL, '[]', '[]', NULL, '[]', NULL, '[]', NULL, NULL, '[]', NULL, NULL, '[]', NULL, NULL, '[]', NULL, {'shr_action_RequestIntent_extension': {'value': {'code': 'original-order'}}, 'shr_action_Status_extension': {'value': {'code': 'completed'}}}, {'value': {'codeableConcept': {'coding': "[{'code': '33633005', 'display': 'Prescription of drug (procedure)', 'system': 'http://snomed.info/sct'}]", 'text': 'Prescription of drug (procedure)'}}}, '2013-08-06T12:46:05+00:00', {'display': None, 'episodeOfCareId': None, 'identifier': None, 'reference': None, 'encounterId': '64611af4-c807-43ae-aa77-b366530496cd'}, '[]', 'd75672ab-25da-4d34-902c-9e6177d65bc6', 'order', {'reference': None, 'codeableConcept': {'coding': "[{'userSelected': None, 'version': None, 'code': '4337', 'display': 'Fentanyl', 'system': 'http://www.nlm.nih.gov/research/umls/rxnorm'}]", 'text': 'Fentanyl'}}, {'lastUpdated': None, 'security': '[]', 'tag': '[]', 'versionId': None, 'profile': "['http://standardhealthrecord.org/fhir/StructureDefinition/shr-medication-MedicationRequested']"}, '[]', {'agent': {'deviceId': None, 'display': None, 'identifier': None, 'organizationId': None, 'patientId': None, 'reference': None, 'relatedPersonId': None, 'practitionerId': '2898500f-6277-4f82-b2a1-4e198232482a'}, 'onBehalfOf': {'display': None, 'identifier': None, 'reference': None, 'organizationId': 'ebc3f5c4-6700-34af-8323-85621c313726'}}, 'stopped', {'display': None, 'groupId': None, 'identifier': None, 'reference': None, 'patientId': 'cd2824a3-db58-41b3-930c-cd63d90dc457'});