FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packagefi.kela.kanta.res.medication.r4
Resource TypeParameters
IdMedicationList_Perushaku_Parameters_Bundle.json
FHIR VersionR4

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

No narrative content found in resource


Source1

{
  "resourceType": "Parameters",
  "parameter": [
    {
      "name": "medicationlist",
      "resource": {
        "resourceType": "Bundle",
        "id": "b4ebb4e7-ab7e-449e-8cd3-4ff025f7a16c",
        "type": "searchset",
        "total": 17,
        "entry": [
          {
            "fullUrl": "urn:oid:1.2.246.10.11111111.93001.2024.11711543513872123",
            "resource": {
              "resourceType": "MedicationRequest",
              "id": "1.2.246.10.11111111.93001.2024.11711543513872123",
              "meta": {
                "profile": [
                  "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedicationRequest"
                ],
                "tag": [
                  {
                    "system": "http://resepti.kanta.fi/fhir/cdaHeaderTemplateId",
                    "code": "1.2.246.777.11.2023.3"
                  }
                ]
              },
              "contained": [
                {
                  "resourceType": "Medication",
                  "id": "1",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedication"
                    ]
                  },
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/StructureDefinition/extension/pharmaceuticalProductStrength",
                      "valueString": "10 mg"
                    },
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/medicationKnowledgeReference",
                      "valueReference": {
                        "reference": "#2"
                      }
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.6.32.2007",
                        "code": "C09AA05",
                        "display": "ramipriili"
                      }
                    ]
                  },
                  "ingredient": [
                    {
                      "itemCodeableConcept": {
                        "text": "ramipriili"
                      },
                      "isActive": true
                    }
                  ]
                },
                {
                  "resourceType": "MedicationKnowledge",
                  "id": "2",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedicationKnowledge"
                    ]
                  },
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/marketingAuthorizationHolder",
                      "valueString": "SANOFI"
                    },
                    {
                      "url": "http://resepti.kanta.fi/StructureDefinition/extension/narcotic",
                      "valueBoolean": false
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.6.55.2004",
                        "code": "005145",
                        "display": "CARDACE"
                      }
                    ]
                  },
                  "doseForm": {
                    "text": "tabletti"
                  },
                  "amount": {
                    "extension": [
                      {
                        "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/packageFactor",
                        "valuePositiveInt": 1
                      },
                      {
                        "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/packageAmountText",
                        "valueString": "98 fol"
                      }
                    ],
                    "value": 98,
                    "unit": "fol"
                  },
                  "packaging": {
                    "type": {
                      "text": "läpipainopakkaus"
                    }
                  },
                  "medicineClassification": [
                    {
                      "type": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.12.2002.126",
                            "code": "164",
                            "display": "valmisteen laji"
                          }
                        ]
                      },
                      "classification": [
                        {
                          "coding": [
                            {
                              "system": "urn:oid:1.2.246.537.6.604.2014",
                              "code": "1"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Patient",
                  "id": "3",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListPatient"
                    ]
                  },
                  "identifier": [
                    {
                      "use": "official",
                      "system": "urn:oid:1.2.246.21",
                      "value": "050566-909R"
                    }
                  ],
                  "name": [
                    {
                      "use": "official",
                      "family": "Potilas",
                      "_family": {
                        "extension": [
                          {
                            "url": "http://hl7.org/fhir/StructureDefinition/humanname-own-name",
                            "valueString": "Potilas"
                          }
                        ]
                      },
                      "given": [
                        "Mikko"
                      ]
                    },
                    {
                      "use": "nickname",
                      "given": [
                        "Mikko"
                      ]
                    }
                  ],
                  "gender": "male",
                  "birthDate": "1966-05-05"
                },
                {
                  "resourceType": "PractitionerRole",
                  "id": "4",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListPractitionerRole"
                    ]
                  },
                  "practitioner": {
                    "reference": "#5"
                  },
                  "organization": {
                    "reference": "#6"
                  },
                  "code": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LAL"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Practitioner",
                  "id": "5",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListPractitioner"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:oid:1.2.246.537.25",
                      "value": "030429"
                    },
                    {
                      "system": "urn:oid:1.2.246.537.26",
                      "value": "01098701780"
                    }
                  ],
                  "name": [
                    {
                      "use": "official",
                      "family": "Meikäläinen",
                      "given": [
                        "Matti"
                      ]
                    }
                  ],
                  "qualification": [
                    {
                      "code": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.140.2008",
                            "code": "034"
                          }
                        ]
                      }
                    },
                    {
                      "code": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.148.2008",
                            "code": "86161-580"
                          }
                        ]
                      }
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "6",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListOrganization"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.537.26.1098701780"
                    }
                  ],
                  "name": "Testi terveysasema, palveluyksikkö",
                  "partOf": {
                    "reference": "#7"
                  },
                  "contact": [
                    {
                      "telecom": [
                        {
                          "system": "phone",
                          "value": "tel:02063411"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "7",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListOrganization"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.537.26.1098701780"
                    }
                  ]
                },
                {
                  "resourceType": "Basic",
                  "id": "8",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListRenewalBasic"
                    ],
                    "tag": [
                      {
                        "system": "http://resepti.kanta.fi/fhir/cdaHeaderTemplateId",
                        "code": "1.2.246.777.11.2023.3"
                      }
                    ]
                  },
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/effectiveTime",
                      "valueDateTime": "2024-03-01T11:45:14+02:00"
                    },
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/note",
                      "valueString": "Potilas käynyt verikokeissa"
                    },
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/patientTelecom",
                      "valueContactPoint": {
                        "system": "phone",
                        "value": "tel:0401332011"
                      }
                    },
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/renewalRecorder",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.5.40129.202301",
                        "code": "2"
                      }
                    }
                  ],
                  "identifier": [
                    {
                      "system": "http://resepti.kanta.fi/fhir/id/id",
                      "value": "urn:oid:1.2.246.10.11111111.93001.2024.117286489685961232160310007"
                    },
                    {
                      "system": "http://resepti.kanta.fi/fhir/id/setId",
                      "value": "urn:oid:1.2.246.10.11111111.93001.2024.117286489685961232160310007"
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.5.40105.2006",
                        "code": "8"
                      }
                    ]
                  },
                  "subject": {
                    "reference": "#9"
                  }
                },
                {
                  "resourceType": "Organization",
                  "id": "9",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListOrganization"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.537.26.1098701780"
                    }
                  ],
                  "name": "Uusimispyynnön vastaanottaja organisaation nimi"
                },
                {
                  "resourceType": "Basic",
                  "id": "10",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListStatusBasic"
                    ],
                    "tag": [
                      {
                        "system": "http://resepti.kanta.fi/fhir/cdaHeaderTemplateId",
                        "code": "1.2.246.777.11.2023.3"
                      }
                    ]
                  },
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/effectiveTime",
                      "valueDateTime": "2024-03-27T12:15:14+02:00"
                    },
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/comment",
                      "valueString": "Annosjakeluvarattu"
                    }
                  ],
                  "identifier": [
                    {
                      "system": "http://resepti.kanta.fi/fhir/id/id",
                      "value": "urn:oid:1.2.246.10.11111111.93001.2024.117286489685961232160880008"
                    },
                    {
                      "system": "http://resepti.kanta.fi/fhir/id/setId",
                      "value": "urn:oid:1.2.246.10.11111111.93001.2024.117286489685961232160880008"
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.5.40105.2006",
                        "code": "16"
                      }
                    ]
                  },
                  "author": {
                    "reference": "#11"
                  }
                },
                {
                  "resourceType": "Organization",
                  "id": "11",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListOrganization"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.10.818238.10.1"
                    }
                  ]
                }
              ],
              "extension": [
                {
                  "url": "http://resepti.kanta.fi/StructureDefinition/extension/versionNumber",
                  "valuePositiveInt": 1
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/effectiveTime",
                  "valueDateTime": "2024-03-19T10:57:30+02:00"
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/continuum",
                  "extension": [
                    {
                      "url": "medicineId",
                      "valueIdentifier": {
                        "system": "urn:ietf:rfc:3986",
                        "value": "urn:oid:1.2.246.10.11111111.93001.2024.11711543513872123.0"
                      }
                    },
                    {
                      "url": "medicineIdPart",
                      "valuePositiveInt": 2135345448
                    },
                    {
                      "url": "newest",
                      "valueBoolean": true
                    }
                  ]
                },
                {
                  "url": "http://resepti.kanta.fi/StructureDefinition/extension/dosageIfNeeded",
                  "valueBoolean": false
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/dosageInfo",
                  "extension": [
                    {
                      "url": "sicLabel",
                      "valueBoolean": true
                    },
                    {
                      "url": "sicReasonCode",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.6.615.202301",
                        "code": "99"
                      }
                    },
                    {
                      "url": "sicReasonText",
                      "valueString": "Annostus ainoastaan akuuttihoitoon"
                    },
                    {
                      "url": "onlyTextDosageInUse",
                      "valueBoolean": false
                    },
                    {
                      "url": "dosageChangesAllowed",
                      "valueBoolean": true
                    }
                  ]
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/structuredIndication",
                  "valueCoding": {
                    "system": "urn:oid:1.2.246.537.6.1.1999",
                    "code": "I10"
                  }
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/administrativeInformation",
                  "extension": [
                    {
                      "url": "doctorFee",
                      "valueMoney": {
                        "value": 125,
                        "currency": "EUR"
                      }
                    },
                    {
                      "url": "specialDoctorFee",
                      "valueBoolean": false
                    },
                    {
                      "url": "treatmentType",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.5.40101.2006",
                        "code": "S"
                      }
                    },
                    {
                      "url": "dosePackaging",
                      "valueBoolean": true
                    }
                  ]
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/initiationOfMedication",
                  "valueBoolean": true
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/renewalNotAllowed",
                  "extension": [
                    {
                      "url": "renewalNotAllowed",
                      "valueBoolean": false
                    }
                  ]
                },
                {
                  "url": "http://resepti.kanta.fi/StructureDefinition/extension/usage",
                  "valueString": "Kohonneen verenpaineen hoitoon"
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/contagiousDiseaseMedicine",
                  "valueBoolean": false
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/statusInformation",
                  "extension": [
                    {
                      "url": "lockStatus",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.5.40124.2006",
                        "code": "1"
                      }
                    },
                    {
                      "url": "reservedStatus",
                      "extension": [
                        {
                          "url": "reservedStatus",
                          "valueCoding": {
                            "system": "urn:oid:1.2.246.537.5.40122.2006",
                            "code": "4"
                          }
                        }
                      ]
                    },
                    {
                      "url": "renewalStatus",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.5.40106.2006",
                        "code": "4"
                      }
                    },
                    {
                      "url": "dispenseStatus",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.5.40123.2006",
                        "code": "2"
                      }
                    }
                  ]
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/originalStartdate",
                  "valueDateTime": "2024-03-19T10:57:30+02:00"
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/useRegularity",
                  "valueCoding": {
                    "system": "urn:oid:1.2.246.537.6.613.202301",
                    "code": "1"
                  }
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/renewalBasicReference",
                  "valueReference": {
                    "reference": "#8"
                  }
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/statusBasicReference",
                  "valueReference": {
                    "reference": "#10"
                  }
                }
              ],
              "identifier": [
                {
                  "system": "http://resepti.kanta.fi/fhir/id/id",
                  "value": "urn:oid:1.2.246.10.11111111.93001.2024.11711543513872123"
                },
                {
                  "system": "http://resepti.kanta.fi/fhir/id/setId",
                  "value": "urn:oid:1.2.246.10.11111111.93001.2024.11711543513872123"
                }
              ],
              "status": "active",
              "statusReason": {
                "coding": [
                  {
                    "system": "urn:oid:1.2.246.537.5.40105.2006",
                    "code": "1"
                  }
                ]
              },
              "intent": "order",
              "category": [
                {
                  "coding": [
                    {
                      "system": "urn:oid:1.2.246.537.6.605.2014",
                      "code": "1"
                    }
                  ]
                }
              ],
              "medicationReference": {
                "reference": "#1"
              },
              "subject": {
                "reference": "#3"
              },
              "authoredOn": "2025-03-19T10:57:30+02:00",
              "requester": {
                "reference": "#4"
              },
              "courseOfTherapyType": {
                "coding": [
                  {
                    "system": "urn:oid:1.2.246.537.5.40003.2003",
                    "code": "PYS"
                  }
                ]
              },
              "dosageInstruction": [
                {
                  "sequence": 1,
                  "text": "1 tabletti kerran päivässä. Aterian yhteydessä.",
                  "additionalInstruction": [
                    {
                      "text": "Aterian yhteydessä."
                    }
                  ],
                  "timing": {
                    "repeat": {
                      "frequency": 1,
                      "period": 1,
                      "periodUnit": "d"
                    }
                  },
                  "asNeededBoolean": false,
                  "route": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.6.1403.202001",
                        "code": "1055"
                      }
                    ]
                  },
                  "doseAndRate": [
                    {
                      "doseQuantity": {
                        "value": 1,
                        "unit": "tabletti",
                        "system": "urn:oid:1.2.246.537.6.138.202001",
                        "code": "18"
                      }
                    }
                  ]
                }
              ],
              "dispenseRequest": {
                "extension": [
                  {
                    "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/dispenserInstruction",
                    "valueString": "viesti apteekille"
                  },
                  {
                    "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/prescribedAmount",
                    "extension": [
                      {
                        "url": "prescriptionType",
                        "valueCoding": {
                          "system": "urn:oid:1.2.246.537.5.40100.2006",
                          "code": "1"
                        }
                      },
                      {
                        "url": "package",
                        "valuePositiveInt": 8
                      }
                    ]
                  },
                  {
                    "url": "http://resepti.kanta.fi/StructureDefinition/extension/realDispenseStatus",
                    "valueCoding": {
                      "system": "urn:oid:1.2.246.537.5.40123.2006",
                      "code": "2"
                    }
                  }
                ],
                "dispenseInterval": {
                  "value": 10,
                  "unit": "d"
                },
                "validityPeriod": {
                  "end": "2027-03-19"
                },
                "numberOfRepeatsAllowed": 1
              },
              "substitution": {
                "allowedBoolean": true
              }
            }
          },
          {
            "fullUrl": "urn:uuid:c8b04680-15b8-4cfa-b82c-89bda6981efa",
            "resource": {
              "resourceType": "Provenance",
              "id": "c8b04680-15b8-4cfa-b82c-89bda6981efa",
              "meta": {
                "profile": [
                  "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListProvenance"
                ]
              },
              "contained": [
                {
                  "resourceType": "PractitionerRole",
                  "id": "1",
                  "practitioner": {
                    "reference": "#2"
                  },
                  "organization": {
                    "reference": "#3"
                  },
                  "code": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LAL"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Practitioner",
                  "id": "2",
                  "identifier": [
                    {
                      "system": "urn:oid:1.2.246.537.25",
                      "value": "030429"
                    },
                    {
                      "system": "urn:oid:1.2.246.537.26",
                      "value": "01098701780"
                    }
                  ],
                  "name": [
                    {
                      "use": "official",
                      "family": "Meikäläinen",
                      "given": [
                        "Matti"
                      ]
                    }
                  ],
                  "qualification": [
                    {
                      "code": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.140.2008",
                            "code": "034"
                          }
                        ]
                      }
                    },
                    {
                      "code": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.148.2008",
                            "code": "86161-580"
                          }
                        ]
                      }
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "3",
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.537.26.1098701780"
                    }
                  ],
                  "name": "Testi terveysasema, palveluyksikkö",
                  "contact": [
                    {
                      "telecom": [
                        {
                          "system": "phone",
                          "value": "tel:02063411"
                        }
                      ]
                    }
                  ]
                }
              ],
              "extension": [
                {
                  "url": "https://gen.kanta.fi/fhir/StructureDefinition/extension/serviceEvent",
                  "valueIdentifier": {
                    "system": "urn:ietf:rfc:3986",
                    "value": "urn:oid:1.2.246.10.1602257.14.2019.860"
                  }
                }
              ],
              "target": [
                {
                  "reference": "urn:oid:1.2.246.10.11111111.93001.2024.11711543513872123",
                  "type": "MedicationRequest"
                }
              ],
              "recorded": "2024-03-19T10:57:30+02:00",
              "agent": [
                {
                  "role": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LAL"
                        }
                      ]
                    }
                  ],
                  "who": {
                    "reference": "#1"
                  }
                }
              ]
            }
          },
          {
            "fullUrl": "urn:oid:1.2.246.10.11111111.93001.2024.11711545645149123",
            "resource": {
              "resourceType": "MedicationDispense",
              "id": "1.2.246.10.11111111.93001.2024.11711545645149123",
              "meta": {
                "profile": [
                  "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedicationDispense"
                ],
                "tag": [
                  {
                    "system": "http://resepti.kanta.fi/fhir/cdaHeaderTemplateId",
                    "code": "1.2.246.777.11.2023.3"
                  }
                ]
              },
              "contained": [
                {
                  "resourceType": "Medication",
                  "id": "1",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedication"
                    ]
                  },
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/StructureDefinition/extension/pharmaceuticalProductStrength",
                      "valueString": "10 mg"
                    },
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/medicationKnowledgeReference",
                      "valueReference": {
                        "reference": "#2"
                      }
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.6.32.2007",
                        "code": "C09AA05",
                        "display": "ramipriili"
                      }
                    ]
                  },
                  "ingredient": [
                    {
                      "itemCodeableConcept": {
                        "text": "ramipriili"
                      },
                      "isActive": true
                    }
                  ]
                },
                {
                  "resourceType": "MedicationKnowledge",
                  "id": "2",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedicationKnowledge"
                    ]
                  },
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/marketingAuthorizationHolder",
                      "valueString": "SANOFI"
                    },
                    {
                      "url": "http://resepti.kanta.fi/StructureDefinition/extension/narcotic",
                      "valueBoolean": false
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.6.55.2004",
                        "code": "005145",
                        "display": "CARDACE"
                      }
                    ]
                  },
                  "doseForm": {
                    "text": "tabletti"
                  },
                  "amount": {
                    "extension": [
                      {
                        "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/packageFactor",
                        "valuePositiveInt": 1
                      },
                      {
                        "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/packageAmountText",
                        "valueString": "98 fol"
                      }
                    ],
                    "value": 98,
                    "unit": "fol"
                  },
                  "packaging": {
                    "type": {
                      "text": "läpipainopakkaus"
                    }
                  },
                  "medicineClassification": [
                    {
                      "type": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.12.2002.126",
                            "code": "164",
                            "display": "valmisteen laji"
                          }
                        ]
                      },
                      "classification": [
                        {
                          "coding": [
                            {
                              "system": "urn:oid:1.2.246.537.6.604.2014",
                              "code": "1"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "PractitionerRole",
                  "id": "3",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListPractitionerRole"
                    ]
                  },
                  "organization": {
                    "reference": "#5"
                  },
                  "code": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LTE"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "5",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListOrganization"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.10.818238.10.1"
                    }
                  ],
                  "name": "Testi apteekki",
                  "contact": [
                    {
                      "telecom": [
                        {
                          "system": "phone",
                          "value": "tel:02063488"
                        }
                      ]
                    }
                  ]
                }
              ],
              "extension": [
                {
                  "url": "http://resepti.kanta.fi/StructureDefinition/extension/versionNumber",
                  "valuePositiveInt": 2
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/effectiveTime",
                  "valueDateTime": "2024-03-27T13:20:45+02:00"
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/cost",
                  "valueMoney": {
                    "value": 7.56,
                    "currency": "EUR"
                  }
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/dosePackaging",
                  "valueBoolean": true
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/fullyDispensed",
                  "valueBoolean": false
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/continuum",
                  "extension": [
                    {
                      "url": "medicineId",
                      "valueIdentifier": {
                        "system": "urn:ietf:rfc:3986",
                        "value": "urn:oid:1.2.246.10.11111111.93001.2024.11711543513872123.0"
                      }
                    },
                    {
                      "url": "medicineIdPart",
                      "valuePositiveInt": 2135345448
                    }
                  ]
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/additionalInformation",
                  "valueString": "Lääketoimituksen lisäselvitys Kelalle"
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/amountOfPackages",
                  "valuePositiveInt": 1
                }
              ],
              "identifier": [
                {
                  "system": "http://resepti.kanta.fi/fhir/id/id",
                  "value": "urn:oid:1.2.246.10.11111111.93001.2024.11711545645149123"
                },
                {
                  "system": "http://resepti.kanta.fi/fhir/id/setId",
                  "value": "urn:oid:1.2.246.10.11111111.93001.2024.11711545645149123"
                }
              ],
              "status": "completed",
              "statusReasonCodeableConcept": {
                "coding": [
                  {
                    "system": "urn:oid:1.2.246.537.5.40105.2006",
                    "code": "10"
                  }
                ]
              },
              "medicationReference": {
                "reference": "#1"
              },
              "performer": [
                {
                  "actor": {
                    "reference": "#3"
                  }
                }
              ],
              "authorizingPrescription": [
                {
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/prescriptionSetId",
                      "valueIdentifier": {
                        "system": "http://resepti.kanta.fi/fhir/id/setId",
                        "value": "urn:oid:1.2.246.10.11111111.93001.2024.11711543513872123"
                      }
                    }
                  ],
                  "identifier": {
                    "system": "http://resepti.kanta.fi/fhir/id/id",
                    "value": "urn:oid:1.2.246.10.11111111.93001.2024.11711543513872123"
                  }
                }
              ],
              "quantity": {
                "extension": [
                  {
                    "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/remainingAmount",
                    "extension": [
                      {
                        "url": "amountFormula",
                        "extension": [
                          {
                            "url": "value",
                            "valueString": "7X98"
                          },
                          {
                            "url": "unit",
                            "valueString": "fol"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/totalDispensedAmount",
                    "extension": [
                      {
                        "url": "amountAndUnit",
                        "valueQuantity": {
                          "value": 98,
                          "unit": "fol"
                        }
                      }
                    ]
                  }
                ],
                "value": 98,
                "unit": "fol"
              },
              "whenHandedOver": "2024-03-27T13:20:45+02:00",
              "note": [
                {
                  "text": "Apteekin huomautus lääketoimitukseen"
                }
              ],
              "dosageInstruction": [
                {
                  "text": "Kohonneen verenpaineen hoitoon.",
                  "patientInstruction": "1 tabletti kerran päivässä. Aterian yhteydessä."
                }
              ],
              "substitution": {
                "wasSubstituted": false
              }
            }
          },
          {
            "fullUrl": "urn:uuid:04637b4c-ff64-4cd8-b042-fd228c749979",
            "resource": {
              "resourceType": "Provenance",
              "id": "04637b4c-ff64-4cd8-b042-fd228c749979",
              "meta": {
                "profile": [
                  "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListProvenance"
                ]
              },
              "contained": [
                {
                  "resourceType": "PractitionerRole",
                  "id": "1",
                  "organization": {
                    "reference": "#2"
                  },
                  "code": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LTE"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "2",
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.10.818238.10.1"
                    }
                  ],
                  "name": "Testi apteekki",
                  "contact": [
                    {
                      "telecom": [
                        {
                          "system": "phone",
                          "value": "tel:02063488"
                        }
                      ]
                    }
                  ]
                }
              ],
              "extension": [
                {
                  "url": "https://gen.kanta.fi/fhir/StructureDefinition/extension/serviceEvent",
                  "valueIdentifier": {
                    "system": "urn:ietf:rfc:3986",
                    "value": "urn:oid:1.2.246.10.1602257.14.2019.860"
                  }
                }
              ],
              "target": [
                {
                  "reference": "urn:oid:1.2.246.10.11111111.93001.2024.11711545645149123",
                  "type": "MedicationRequest"
                }
              ],
              "recorded": "2024-03-27T13:20:45+02:00",
              "agent": [
                {
                  "role": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LTE"
                        }
                      ]
                    }
                  ],
                  "who": {
                    "reference": "#1"
                  }
                }
              ]
            }
          },
          {
            "fullUrl": "urn:oid:1.2.246.10.11111111.93001.2024.11712309571038123",
            "resource": {
              "resourceType": "MedicationRequest",
              "id": "1.2.246.10.11111111.93001.2024.11712309571038123",
              "meta": {
                "profile": [
                  "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListDiscontinuationMedicationRequest"
                ],
                "tag": [
                  {
                    "system": "http://resepti.kanta.fi/fhir/cdaHeaderTemplateId",
                    "code": "1.2.246.777.11.2023.3"
                  }
                ]
              },
              "contained": [
                {
                  "resourceType": "Medication",
                  "id": "1",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedication"
                    ]
                  },
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/StructureDefinition/extension/pharmaceuticalProductStrength",
                      "valueString": "10 mg"
                    },
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/medicationKnowledgeReference",
                      "valueReference": {
                        "reference": "#2"
                      }
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.6.32.2007",
                        "code": "C09AA05",
                        "display": "ramipriili"
                      }
                    ]
                  }
                },
                {
                  "resourceType": "MedicationKnowledge",
                  "id": "2",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedicationKnowledge"
                    ]
                  },
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.6.55.2004",
                        "code": "005145",
                        "display": "CARDACE"
                      }
                    ]
                  },
                  "doseForm": {
                    "text": "tabletti"
                  }
                },
                {
                  "resourceType": "Patient",
                  "id": "3",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListPatient"
                    ]
                  },
                  "identifier": [
                    {
                      "use": "official",
                      "system": "urn:oid:1.2.246.21",
                      "value": "050566-909R"
                    }
                  ],
                  "name": [
                    {
                      "use": "official",
                      "family": "Potilas",
                      "_family": {
                        "extension": [
                          {
                            "url": "http://hl7.org/fhir/StructureDefinition/humanname-own-name",
                            "valueString": "Potilas"
                          }
                        ]
                      },
                      "given": [
                        "Mikko"
                      ]
                    },
                    {
                      "use": "nickname",
                      "given": [
                        "Mikko"
                      ]
                    }
                  ],
                  "gender": "male",
                  "birthDate": "1966-05-05"
                },
                {
                  "resourceType": "PractitionerRole",
                  "id": "4",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListPractitionerRole"
                    ]
                  },
                  "practitioner": {
                    "reference": "#5"
                  },
                  "organization": {
                    "reference": "#6"
                  },
                  "code": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LLL"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Practitioner",
                  "id": "5",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListPractitioner"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:oid:1.2.246.537.25",
                      "value": "030429"
                    },
                    {
                      "system": "urn:oid:1.2.246.537.26",
                      "value": "01098701780"
                    }
                  ],
                  "name": [
                    {
                      "use": "official",
                      "family": "Meikäläinen",
                      "given": [
                        "Matti"
                      ]
                    }
                  ],
                  "qualification": [
                    {
                      "code": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.140.2008",
                            "code": "034"
                          }
                        ]
                      }
                    },
                    {
                      "code": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.148.2008",
                            "code": "86161-580"
                          }
                        ]
                      }
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "6",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListOrganization"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.537.26.1098701780"
                    }
                  ],
                  "name": "Testi terveysasema, palveluyksikkö",
                  "partOf": {
                    "reference": "#7"
                  },
                  "contact": [
                    {
                      "telecom": [
                        {
                          "system": "phone",
                          "value": "tel:02063411"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "7",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListOrganization"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.537.26.1098701780"
                    }
                  ]
                }
              ],
              "extension": [
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/continuum",
                  "extension": [
                    {
                      "url": "medicineId",
                      "valueIdentifier": {
                        "system": "urn:ietf:rfc:3986",
                        "value": "urn:oid:1.2.246.10.11111111.93001.2024.11711543513872123.0"
                      }
                    },
                    {
                      "url": "medicineIdPart",
                      "valuePositiveInt": 2135345448
                    }
                  ]
                },
                {
                  "url": "http://resepti.kanta.fi/StructureDefinition/extension/versionNumber",
                  "valuePositiveInt": 1
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/effectiveTime",
                  "valueDateTime": "2024-04-27T09:20:45+02:00"
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/stopDate",
                  "valueDateTime": "2024-04-27T09:20:45+02:00"
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/stopReasonCode",
                  "valueCoding": {
                    "system": "urn:oid:1.2.246.537.6.600.2013",
                    "code": "5"
                  }
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/stopReasonText",
                  "valueString": "Lääkkeen lopetuksen lisätiedot"
                }
              ],
              "identifier": [
                {
                  "system": "http://resepti.kanta.fi/fhir/id/id",
                  "value": "urn:oid:1.2.246.10.11111111.93001.2024.11712309571038123"
                },
                {
                  "system": "http://resepti.kanta.fi/fhir/id/setId",
                  "value": "urn:oid:1.2.246.10.11111111.93001.2024.11712309571038123"
                }
              ],
              "status": "active",
              "statusReason": {
                "coding": [
                  {
                    "system": "urn:oid:1.2.246.537.5.40105.2006",
                    "code": "23"
                  }
                ]
              },
              "intent": "order",
              "medicationReference": {
                "reference": "#1"
              },
              "subject": {
                "reference": "#3"
              },
              "requester": {
                "reference": "#4"
              }
            }
          },
          {
            "fullUrl": "urn:uuid:dd38af6f-e21a-3554-adae-8f3d3ecfcc18",
            "resource": {
              "resourceType": "Provenance",
              "id": "dd38af6f-e21a-3554-adae-8f3d3ecfcc18",
              "meta": {
                "profile": [
                  "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListProvenance"
                ]
              },
              "contained": [
                {
                  "resourceType": "PractitionerRole",
                  "id": "1",
                  "organization": {
                    "reference": "#2"
                  },
                  "code": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LLL"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "2",
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.537.26.1098701780"
                    }
                  ],
                  "name": "Testi terveysasema, palveluyksikkö",
                  "contact": [
                    {
                      "telecom": [
                        {
                          "system": "phone",
                          "value": "tel:02063411"
                        }
                      ]
                    }
                  ]
                }
              ],
              "extension": [
                {
                  "url": "https://gen.kanta.fi/fhir/StructureDefinition/extension/serviceEvent",
                  "valueIdentifier": {
                    "system": "urn:ietf:rfc:3986",
                    "value": "urn:oid:1.2.246.10.1602257.14.2019.860"
                  }
                }
              ],
              "target": [
                {
                  "reference": "urn:oid:1.2.246.10.11111111.93001.2024.11712309571038123",
                  "type": "MedicationRequest"
                }
              ],
              "recorded": "2024-04-27T09:20:45+02:00",
              "agent": [
                {
                  "role": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LLL"
                        }
                      ]
                    }
                  ],
                  "who": {
                    "reference": "#1"
                  }
                }
              ]
            }
          },
          {
            "fullUrl": "urn:oid:1.2.246.10.11111111.93001.2024.11889663514872133",
            "resource": {
              "resourceType": "MedicationRequest",
              "id": "1.2.246.10.11111111.93001.2024.11889663514872133",
              "meta": {
                "profile": [
                  "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedicationRequest"
                ],
                "tag": [
                  {
                    "system": "http://resepti.kanta.fi/fhir/cdaHeaderTemplateId",
                    "code": "1.2.246.777.11.2023.3"
                  }
                ]
              },
              "contained": [
                {
                  "resourceType": "Medication",
                  "id": "1",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedication"
                    ]
                  },
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/StructureDefinition/extension/pharmaceuticalProductStrength",
                      "valueString": "600 mg"
                    },
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/medicationKnowledgeReference",
                      "valueReference": {
                        "reference": "#2"
                      }
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.6.32.2007",
                        "code": "M01AE01",
                        "display": "ibuprofeeni"
                      }
                    ]
                  },
                  "ingredient": [
                    {
                      "itemCodeableConcept": {
                        "text": "ibuprofeeni"
                      },
                      "isActive": true
                    }
                  ]
                },
                {
                  "resourceType": "MedicationKnowledge",
                  "id": "2",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedicationKnowledge"
                    ]
                  },
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/marketingAuthorizationHolder",
                      "valueString": "ORION CORPORATION"
                    },
                    {
                      "url": "http://resepti.kanta.fi/StructureDefinition/extension/narcotic",
                      "valueBoolean": false
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.6.55.2004",
                        "code": "552190",
                        "display": "BURANA"
                      }
                    ]
                  },
                  "doseForm": {
                    "text": "tabletti, kalvopäällysteinen"
                  },
                  "amount": {
                    "extension": [
                      {
                        "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/packageFactor",
                        "valuePositiveInt": 1
                      },
                      {
                        "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/packageAmountText",
                        "valueString": "30 fol"
                      }
                    ],
                    "value": 30,
                    "unit": "fol"
                  },
                  "packaging": {
                    "type": {
                      "text": "läpipainopakkaus"
                    }
                  },
                  "medicineClassification": [
                    {
                      "type": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.12.2002.126",
                            "code": "164",
                            "display": "valmisteen laji"
                          }
                        ]
                      },
                      "classification": [
                        {
                          "coding": [
                            {
                              "system": "urn:oid:1.2.246.537.6.604.2014",
                              "code": "1"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Patient",
                  "id": "3",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListPatient"
                    ]
                  },
                  "identifier": [
                    {
                      "use": "official",
                      "system": "urn:oid:1.2.246.21",
                      "value": "050566-909R"
                    }
                  ],
                  "name": [
                    {
                      "use": "official",
                      "family": "Potilas",
                      "_family": {
                        "extension": [
                          {
                            "url": "http://hl7.org/fhir/StructureDefinition/humanname-own-name",
                            "valueString": "Potilas"
                          }
                        ]
                      },
                      "given": [
                        "Mikko"
                      ]
                    },
                    {
                      "use": "nickname",
                      "given": [
                        "Mikko"
                      ]
                    }
                  ],
                  "gender": "male",
                  "birthDate": "1966-05-05"
                },
                {
                  "resourceType": "PractitionerRole",
                  "id": "4",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListPractitionerRole"
                    ]
                  },
                  "practitioner": {
                    "reference": "#5"
                  },
                  "organization": {
                    "reference": "#6"
                  },
                  "code": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LAL"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Practitioner",
                  "id": "5",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListPractitioner"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:oid:1.2.246.537.25",
                      "value": "030429"
                    },
                    {
                      "system": "urn:oid:1.2.246.537.26",
                      "value": "01098701780"
                    }
                  ],
                  "name": [
                    {
                      "use": "official",
                      "family": "Meikäläinen",
                      "given": [
                        "Matti"
                      ]
                    }
                  ],
                  "qualification": [
                    {
                      "code": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.140.2008",
                            "code": "034"
                          }
                        ]
                      }
                    },
                    {
                      "code": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.148.2008",
                            "code": "86161-580"
                          }
                        ]
                      }
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "6",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListOrganization"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.537.26.1098701780"
                    }
                  ],
                  "name": "Testi terveysasema, palveluyksikkö",
                  "partOf": {
                    "reference": "#7"
                  },
                  "contact": [
                    {
                      "telecom": [
                        {
                          "system": "phone",
                          "value": "tel:02063411"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "7",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListOrganization"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.537.26.1098701780"
                    }
                  ]
                },
                {
                  "resourceType": "Basic",
                  "id": "8",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListRenewalBasic"
                    ],
                    "tag": [
                      {
                        "system": "http://resepti.kanta.fi/fhir/cdaHeaderTemplateId",
                        "code": "1.2.246.777.11.2023.3"
                      }
                    ]
                  },
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/effectiveTime",
                      "valueDateTime": "2024-03-01T11:45:14+02:00"
                    },
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/infoText",
                      "valueString": "Lääkärin kirjoittama perustelu uusimispyynnön hylkäämiselle"
                    },
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/patientInformed",
                      "valueBoolean": false
                    },
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/renewalRecorder",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.5.40129.202301",
                        "code": "2"
                      }
                    }
                  ],
                  "identifier": [
                    {
                      "system": "http://resepti.kanta.fi/fhir/id/id",
                      "value": "urn:oid:1.2.246.10.11111111.93001.2024.117286489685961232160310007"
                    },
                    {
                      "system": "http://resepti.kanta.fi/fhir/id/setId",
                      "value": "urn:oid:1.2.246.10.11111111.93001.2024.117286489685961232160310007"
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.5.40105.2006",
                        "code": "9"
                      }
                    ]
                  },
                  "author": {
                    "reference": "#9"
                  }
                },
                {
                  "resourceType": "Organization",
                  "id": "9",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListOrganization"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.537.26.1098701780"
                    }
                  ],
                  "name": "Uusimispyynnön käsittelijän organisaation nimi"
                },
                {
                  "resourceType": "Basic",
                  "id": "10",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListStatusBasic"
                    ],
                    "tag": [
                      {
                        "system": "http://resepti.kanta.fi/fhir/cdaHeaderTemplateId",
                        "code": "1.2.246.777.11.2023.3"
                      }
                    ]
                  },
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/effectiveTime",
                      "valueDateTime": "2024-03-27T12:15:14+02:00"
                    },
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/comment",
                      "valueString": "Annosjakeluvarattu"
                    }
                  ],
                  "identifier": [
                    {
                      "system": "http://resepti.kanta.fi/fhir/id/id",
                      "value": "urn:oid:1.2.246.10.11111111.93001.2024.117286489685961232160880008"
                    },
                    {
                      "system": "http://resepti.kanta.fi/fhir/id/setId",
                      "value": "urn:oid:1.2.246.10.11111111.93001.2024.117286489685961232160880008"
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.5.40105.2006",
                        "code": "16"
                      }
                    ]
                  },
                  "author": {
                    "reference": "#11"
                  }
                },
                {
                  "resourceType": "Organization",
                  "id": "11",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListOrganization"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.10.818238.10.1"
                    }
                  ]
                }
              ],
              "extension": [
                {
                  "url": "http://resepti.kanta.fi/StructureDefinition/extension/versionNumber",
                  "valuePositiveInt": 1
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/effectiveTime",
                  "valueDateTime": "2024-01-31T10:57:30+02:00"
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/continuum",
                  "extension": [
                    {
                      "url": "medicineId",
                      "valueIdentifier": {
                        "system": "urn:ietf:rfc:3986",
                        "value": "urn:oid:1.2.246.10.11111111.93001.2024.11889663514872133.0"
                      }
                    },
                    {
                      "url": "medicineIdPart",
                      "valuePositiveInt": 1728648970
                    },
                    {
                      "url": "newest",
                      "valueBoolean": true
                    }
                  ]
                },
                {
                  "url": "http://resepti.kanta.fi/StructureDefinition/extension/dosageIfNeeded",
                  "valueBoolean": false
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/dosageInfo",
                  "extension": [
                    {
                      "url": "sicLabel",
                      "valueBoolean": true
                    },
                    {
                      "url": "sicReasonCode",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.6.615.202301",
                        "code": "99"
                      }
                    },
                    {
                      "url": "sicReasonText",
                      "valueString": "Annostus ainoastaan akuuttihoitoon"
                    },
                    {
                      "url": "onlyTextDosageInUse",
                      "valueBoolean": false
                    },
                    {
                      "url": "dosageChangesAllowed",
                      "valueBoolean": true
                    }
                  ]
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/structuredIndication",
                  "valueCoding": {
                    "system": "urn:oid:1.2.246.537.6.1.1999",
                    "code": "J06.9"
                  }
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/administrativeInformation",
                  "extension": [
                    {
                      "url": "doctorFee",
                      "valueMoney": {
                        "value": 125,
                        "currency": "EUR"
                      }
                    },
                    {
                      "url": "specialDoctorFee",
                      "valueBoolean": false
                    },
                    {
                      "url": "treatmentType",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.5.40101.2006",
                        "code": "S"
                      }
                    },
                    {
                      "url": "dosePackaging",
                      "valueBoolean": false
                    }
                  ]
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/initiationOfMedication",
                  "valueBoolean": true
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/renewalNotAllowed",
                  "extension": [
                    {
                      "url": "renewalNotAllowed",
                      "valueBoolean": false
                    }
                  ]
                },
                {
                  "url": "http://resepti.kanta.fi/StructureDefinition/extension/usage",
                  "valueString": "Tulehduskipulääke."
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/contagiousDiseaseMedicine",
                  "valueBoolean": false
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/statusInformation",
                  "extension": [
                    {
                      "url": "lockStatus",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.5.40124.2006",
                        "code": "1"
                      }
                    },
                    {
                      "url": "reservedStatus",
                      "extension": [
                        {
                          "url": "reservedStatus",
                          "valueCoding": {
                            "system": "urn:oid:1.2.246.537.5.40122.2006",
                            "code": "4"
                          }
                        }
                      ]
                    },
                    {
                      "url": "renewalStatus",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.5.40106.2006",
                        "code": "2"
                      }
                    },
                    {
                      "url": "dispenseStatus",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.5.40123.2006",
                        "code": "3"
                      }
                    }
                  ]
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/originalStartdate",
                  "valueDateTime": "2024-01-31T10:57:30+02:00"
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/useRegularity",
                  "valueCoding": {
                    "system": "urn:oid:1.2.246.537.6.613.202301",
                    "code": "1"
                  }
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/renewalBasicReference",
                  "valueReference": {
                    "reference": "#8"
                  }
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/statusBasicReference",
                  "valueReference": {
                    "reference": "#10"
                  }
                }
              ],
              "identifier": [
                {
                  "system": "http://resepti.kanta.fi/fhir/id/id",
                  "value": "urn:oid:1.2.246.10.11111111.93001.2024.11889663514872133"
                },
                {
                  "system": "http://resepti.kanta.fi/fhir/id/setId",
                  "value": "urn:oid:1.2.246.10.11111111.93001.2024.11889663514872133"
                }
              ],
              "status": "stopped",
              "statusReason": {
                "coding": [
                  {
                    "system": "urn:oid:1.2.246.537.5.40105.2006",
                    "code": "1"
                  }
                ]
              },
              "intent": "order",
              "category": [
                {
                  "coding": [
                    {
                      "system": "urn:oid:1.2.246.537.6.605.2014",
                      "code": "1"
                    }
                  ]
                }
              ],
              "medicationReference": {
                "reference": "#1"
              },
              "subject": {
                "reference": "#3"
              },
              "authoredOn": "2025-01-31T10:57:30+02:00",
              "requester": {
                "reference": "#4"
              },
              "courseOfTherapyType": {
                "coding": [
                  {
                    "system": "urn:oid:1.2.246.537.5.40003.2003",
                    "code": "KER"
                  }
                ]
              },
              "dosageInstruction": [
                {
                  "sequence": 1,
                  "text": "1 tabletti 1-3 kertaa päivässä. Ei tyhjään vatsaan.",
                  "additionalInstruction": [
                    {
                      "text": "Ei tyhjään vatsaan."
                    }
                  ],
                  "timing": {
                    "repeat": {
                      "frequency": 1,
                      "frequencyMax": 3,
                      "period": 1,
                      "periodUnit": "d"
                    }
                  },
                  "asNeededBoolean": false,
                  "route": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.6.1403.202001",
                        "code": "1055"
                      }
                    ]
                  },
                  "doseAndRate": [
                    {
                      "doseQuantity": {
                        "value": 1,
                        "unit": "tabletti",
                        "system": "urn:oid:1.2.246.537.6.138.202001",
                        "code": "18"
                      }
                    }
                  ]
                }
              ],
              "dispenseRequest": {
                "extension": [
                  {
                    "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/dispenserInstruction",
                    "valueString": "viesti apteekille"
                  },
                  {
                    "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/prescribedAmount",
                    "extension": [
                      {
                        "url": "prescriptionType",
                        "valueCoding": {
                          "system": "urn:oid:1.2.246.537.5.40100.2006",
                          "code": "1"
                        }
                      },
                      {
                        "url": "package",
                        "valuePositiveInt": 1
                      }
                    ]
                  },
                  {
                    "url": "http://resepti.kanta.fi/StructureDefinition/extension/realDispenseStatus",
                    "valueCoding": {
                      "system": "urn:oid:1.2.246.537.5.40123.2006",
                      "code": "3"
                    }
                  }
                ],
                "dispenseInterval": {
                  "value": 10,
                  "unit": "d"
                },
                "validityPeriod": {
                  "end": "2027-01-31"
                },
                "numberOfRepeatsAllowed": 1
              },
              "substitution": {
                "allowedBoolean": true
              }
            }
          },
          {
            "fullUrl": "urn:uuid:659f469e-4520-4e34-82b6-f088899bf229",
            "resource": {
              "resourceType": "Provenance",
              "id": "659f469e-4520-4e34-82b6-f088899bf229",
              "meta": {
                "profile": [
                  "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListProvenance"
                ]
              },
              "contained": [
                {
                  "resourceType": "PractitionerRole",
                  "id": "1",
                  "practitioner": {
                    "reference": "#2"
                  },
                  "organization": {
                    "reference": "#3"
                  },
                  "code": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LAL"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Practitioner",
                  "id": "2",
                  "identifier": [
                    {
                      "system": "urn:oid:1.2.246.537.25",
                      "value": "030429"
                    },
                    {
                      "system": "urn:oid:1.2.246.537.26",
                      "value": "01098701780"
                    }
                  ],
                  "name": [
                    {
                      "use": "official",
                      "family": "Meikäläinen",
                      "given": [
                        "Matti"
                      ]
                    }
                  ],
                  "qualification": [
                    {
                      "code": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.140.2008",
                            "code": "034"
                          }
                        ]
                      }
                    },
                    {
                      "code": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.148.2008",
                            "code": "86161-580"
                          }
                        ]
                      }
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "3",
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.537.26.1098701780"
                    }
                  ],
                  "name": "Testi terveysasema, palveluyksikkö",
                  "contact": [
                    {
                      "telecom": [
                        {
                          "system": "phone",
                          "value": "tel:02063411"
                        }
                      ]
                    }
                  ]
                }
              ],
              "extension": [
                {
                  "url": "https://gen.kanta.fi/fhir/StructureDefinition/extension/serviceEvent",
                  "valueIdentifier": {
                    "system": "urn:ietf:rfc:3986",
                    "value": "urn:oid:1.2.246.10.1602257.14.2019.860"
                  }
                }
              ],
              "target": [
                {
                  "reference": "urn:oid:1.2.246.10.11111111.93001.2024.11889663514872133",
                  "type": "MedicationRequest"
                }
              ],
              "recorded": "2024-01-31T10:57:30+02:00",
              "agent": [
                {
                  "role": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LAL"
                        }
                      ]
                    }
                  ],
                  "who": {
                    "reference": "#1"
                  }
                }
              ]
            }
          },
          {
            "fullUrl": "urn:oid:1.2.246.10.11111111.93001.2024.88915563368271567",
            "resource": {
              "resourceType": "MedicationDispense",
              "id": "1.2.246.10.11111111.93001.2024.88915563368271567",
              "meta": {
                "profile": [
                  "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedicationDispense"
                ],
                "tag": [
                  {
                    "system": "http://resepti.kanta.fi/fhir/cdaHeaderTemplateId",
                    "code": "1.2.246.777.11.2023.3"
                  }
                ]
              },
              "contained": [
                {
                  "resourceType": "Medication",
                  "id": "1",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedication"
                    ]
                  },
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/StructureDefinition/extension/pharmaceuticalProductStrength",
                      "valueString": "600 mg"
                    },
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/medicationKnowledgeReference",
                      "valueReference": {
                        "reference": "#2"
                      }
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.6.32.2007",
                        "code": "M01AE01",
                        "display": "ibuprofeeni"
                      }
                    ]
                  },
                  "ingredient": [
                    {
                      "itemCodeableConcept": {
                        "text": "ibuprofeeni"
                      },
                      "isActive": true
                    }
                  ]
                },
                {
                  "resourceType": "MedicationKnowledge",
                  "id": "2",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedicationKnowledge"
                    ]
                  },
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/marketingAuthorizationHolder",
                      "valueString": "ORION CORPORATION"
                    },
                    {
                      "url": "http://resepti.kanta.fi/StructureDefinition/extension/narcotic",
                      "valueBoolean": false
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.6.55.2004",
                        "code": "552190",
                        "display": "BURANA"
                      }
                    ]
                  },
                  "doseForm": {
                    "text": "tabletti, kalvopäällysteinen"
                  },
                  "amount": {
                    "extension": [
                      {
                        "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/packageFactor",
                        "valuePositiveInt": 1
                      },
                      {
                        "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/packageAmountText",
                        "valueString": "30 fol"
                      }
                    ],
                    "value": 30,
                    "unit": "fol"
                  },
                  "packaging": {
                    "type": {
                      "text": "läpipainopakkaus"
                    }
                  },
                  "medicineClassification": [
                    {
                      "type": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.12.2002.126",
                            "code": "164",
                            "display": "valmisteen laji"
                          }
                        ]
                      },
                      "classification": [
                        {
                          "coding": [
                            {
                              "system": "urn:oid:1.2.246.537.6.604.2014",
                              "code": "1"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "PractitionerRole",
                  "id": "3",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListPractitionerRole"
                    ]
                  },
                  "organization": {
                    "reference": "#5"
                  },
                  "code": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LTE"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "5",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListOrganization"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.10.818238.10.1"
                    }
                  ],
                  "name": "Testi apteekki",
                  "contact": [
                    {
                      "telecom": [
                        {
                          "system": "phone",
                          "value": "tel:02063488"
                        }
                      ]
                    }
                  ]
                }
              ],
              "extension": [
                {
                  "url": "http://resepti.kanta.fi/StructureDefinition/extension/versionNumber",
                  "valuePositiveInt": 1
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/effectiveTime",
                  "valueDateTime": "2024-01-31T16:00:05+02:00"
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/cost",
                  "valueMoney": {
                    "value": 3.78,
                    "currency": "EUR"
                  }
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/dosePackaging",
                  "valueBoolean": false
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/fullyDispensed",
                  "valueBoolean": true
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/continuum",
                  "extension": [
                    {
                      "url": "medicineId",
                      "valueIdentifier": {
                        "system": "urn:ietf:rfc:3986",
                        "value": "urn:oid:1.2.246.10.11111111.93001.2024.11889663514872133.0"
                      }
                    },
                    {
                      "url": "medicineIdPart",
                      "valuePositiveInt": 1728648970
                    }
                  ]
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/additionalInformation",
                  "valueString": "Lääketoimituksen lisäselvitys Kelalle"
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/amountOfPackages",
                  "valuePositiveInt": 1
                }
              ],
              "identifier": [
                {
                  "system": "http://resepti.kanta.fi/fhir/id/id",
                  "value": "urn:oid:1.2.246.10.11111111.93001.2024.88915563368271567"
                },
                {
                  "system": "http://resepti.kanta.fi/fhir/id/setId",
                  "value": "urn:oid:1.2.246.10.11111111.93001.2024.88915563368271567"
                }
              ],
              "status": "completed",
              "statusReasonCodeableConcept": {
                "coding": [
                  {
                    "system": "urn:oid:1.2.246.537.5.40105.2006",
                    "code": "10"
                  }
                ]
              },
              "medicationReference": {
                "reference": "#1"
              },
              "performer": [
                {
                  "actor": {
                    "reference": "#3"
                  }
                }
              ],
              "authorizingPrescription": [
                {
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/prescriptionSetId",
                      "valueIdentifier": {
                        "system": "http://resepti.kanta.fi/fhir/id/setId",
                        "value": "urn:oid:1.2.246.10.11111111.93001.2023.11889663514123456"
                      }
                    }
                  ],
                  "identifier": {
                    "system": "http://resepti.kanta.fi/fhir/id/id",
                    "value": "urn:oid:1.2.246.10.11111111.93001.2024.11889663514872133"
                  }
                }
              ],
              "quantity": {
                "extension": [
                  {
                    "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/remainingAmount",
                    "extension": [
                      {
                        "url": "amountFormula",
                        "extension": [
                          {
                            "url": "value",
                            "valueString": "1X30"
                          },
                          {
                            "url": "unit",
                            "valueString": "fol"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/totalDispensedAmount",
                    "extension": [
                      {
                        "url": "amountAndUnit",
                        "valueQuantity": {
                          "value": 30,
                          "unit": "fol"
                        }
                      }
                    ]
                  }
                ],
                "value": 30,
                "unit": "fol"
              },
              "whenHandedOver": "2024-01-31T16:00:05+02:00",
              "note": [
                {
                  "text": "Apteekin huomautus lääketoimitukseen"
                }
              ],
              "dosageInstruction": [
                {
                  "text": "Tulehduskipulääke.",
                  "patientInstruction": "1 tabletti 1-3 kertaa päivässä. Ei tyhjään vatsaan.."
                }
              ],
              "substitution": {
                "wasSubstituted": false
              }
            }
          },
          {
            "fullUrl": "urn:uuid:04637b4c-cd64-4cd8-b042-fd228c759876",
            "resource": {
              "resourceType": "Provenance",
              "id": "04637b4c-cd64-4cd8-b042-fd228c759876",
              "meta": {
                "profile": [
                  "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListProvenance"
                ]
              },
              "contained": [
                {
                  "resourceType": "PractitionerRole",
                  "id": "1",
                  "organization": {
                    "reference": "#2"
                  },
                  "code": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LTE"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "2",
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.10.818238.10.1"
                    }
                  ],
                  "name": "Testi apteekki",
                  "contact": [
                    {
                      "telecom": [
                        {
                          "system": "phone",
                          "value": "tel:02063488"
                        }
                      ]
                    }
                  ]
                }
              ],
              "extension": [
                {
                  "url": "https://gen.kanta.fi/fhir/StructureDefinition/extension/serviceEvent",
                  "valueIdentifier": {
                    "system": "urn:ietf:rfc:3986",
                    "value": "urn:oid:1.2.246.10.1602257.14.2019.860"
                  }
                }
              ],
              "target": [
                {
                  "reference": "urn:oid:1.2.246.10.11111111.93001.2024.88915563368271567",
                  "type": "MedicationDispense"
                }
              ],
              "recorded": "2024-01-31T16:00:05+02:00",
              "agent": [
                {
                  "role": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LTE"
                        }
                      ]
                    }
                  ],
                  "who": {
                    "reference": "#1"
                  }
                }
              ]
            }
          },
          {
            "fullUrl": "urn:oid:1.2.246.10.11111111.93001.2024.365985521475872134",
            "resource": {
              "resourceType": "MedicationRequest",
              "id": "1.2.246.10.11111111.93001.2024.365985521475872134",
              "meta": {
                "profile": [
                  "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListDiscontinuationMedicationRequest"
                ],
                "tag": [
                  {
                    "system": "http://resepti.kanta.fi/fhir/cdaHeaderTemplateId",
                    "code": "1.2.246.777.11.2023.3"
                  }
                ]
              },
              "contained": [
                {
                  "resourceType": "Medication",
                  "id": "1",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedication"
                    ]
                  },
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/StructureDefinition/extension/pharmaceuticalProductStrength",
                      "valueString": "600 mg"
                    },
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/medicationKnowledgeReference",
                      "valueReference": {
                        "reference": "#2"
                      }
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.6.32.2007",
                        "code": "M01AE01",
                        "display": "ibuprofeeni"
                      }
                    ]
                  }
                },
                {
                  "resourceType": "MedicationKnowledge",
                  "id": "2",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedicationKnowledge"
                    ]
                  },
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.6.55.2004",
                        "code": "552190",
                        "display": "BURANA"
                      }
                    ]
                  },
                  "doseForm": {
                    "text": "tabletti, kalvopäällysteinen"
                  }
                },
                {
                  "resourceType": "Patient",
                  "id": "3",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListPatient"
                    ]
                  },
                  "identifier": [
                    {
                      "use": "official",
                      "system": "urn:oid:1.2.246.21",
                      "value": "050566-909R"
                    }
                  ],
                  "name": [
                    {
                      "use": "official",
                      "family": "Potilas",
                      "_family": {
                        "extension": [
                          {
                            "url": "http://hl7.org/fhir/StructureDefinition/humanname-own-name",
                            "valueString": "Potilas"
                          }
                        ]
                      },
                      "given": [
                        "Mikko"
                      ]
                    },
                    {
                      "use": "nickname",
                      "given": [
                        "Mikko"
                      ]
                    }
                  ],
                  "gender": "male",
                  "birthDate": "1966-05-05"
                },
                {
                  "resourceType": "PractitionerRole",
                  "id": "4",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListPractitionerRole"
                    ]
                  },
                  "practitioner": {
                    "reference": "#5"
                  },
                  "organization": {
                    "reference": "#6"
                  },
                  "code": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LLL"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Practitioner",
                  "id": "5",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListPractitioner"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:oid:1.2.246.537.25",
                      "value": "030429"
                    },
                    {
                      "system": "urn:oid:1.2.246.537.26",
                      "value": "01098701780"
                    }
                  ],
                  "name": [
                    {
                      "use": "official",
                      "family": "Meikäläinen",
                      "given": [
                        "Matti"
                      ]
                    }
                  ],
                  "qualification": [
                    {
                      "code": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.140.2008",
                            "code": "034"
                          }
                        ]
                      }
                    },
                    {
                      "code": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.148.2008",
                            "code": "86161-580"
                          }
                        ]
                      }
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "6",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListOrganization"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.537.26.1098701780"
                    }
                  ],
                  "name": "Testi terveysasema, palveluyksikkö",
                  "partOf": {
                    "reference": "#7"
                  },
                  "contact": [
                    {
                      "telecom": [
                        {
                          "system": "phone",
                          "value": "tel:02063411"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "7",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListOrganization"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.537.26.1098701780"
                    }
                  ]
                }
              ],
              "extension": [
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/continuum",
                  "extension": [
                    {
                      "url": "medicineId",
                      "valueIdentifier": {
                        "system": "urn:ietf:rfc:3986",
                        "value": "urn:oid:1.2.246.10.11111111.93001.2024.11889663514872133.0"
                      }
                    },
                    {
                      "url": "medicineIdPart",
                      "valuePositiveInt": 1728648970
                    }
                  ]
                },
                {
                  "url": "http://resepti.kanta.fi/StructureDefinition/extension/versionNumber",
                  "valuePositiveInt": 1
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/effectiveTime",
                  "valueDateTime": "2024-03-01T11:43:01+02:00"
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/stopDate",
                  "valueDateTime": "2024-03-01T11:43:01+02:00"
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/stopReasonCode",
                  "valueCoding": {
                    "system": "urn:oid:1.2.246.537.6.600.2013",
                    "code": "5"
                  }
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/stopReasonText",
                  "valueString": "Lääkkeen lopetuksen lisätiedot"
                }
              ],
              "identifier": [
                {
                  "system": "http://resepti.kanta.fi/fhir/id/id",
                  "value": "urn:oid:1.2.246.10.11111111.93001.2024.365985521475872134"
                },
                {
                  "system": "http://resepti.kanta.fi/fhir/id/setId",
                  "value": "urn:oid:1.2.246.10.11111111.93001.2024.365985521475872134"
                }
              ],
              "status": "completed",
              "statusReason": {
                "coding": [
                  {
                    "system": "urn:oid:1.2.246.537.5.40105.2006",
                    "code": "23"
                  }
                ]
              },
              "intent": "order",
              "medicationReference": {
                "reference": "#1"
              },
              "subject": {
                "reference": "#3"
              },
              "requester": {
                "reference": "#4"
              }
            }
          },
          {
            "fullUrl": "urn:uuid:ce33fff8-e41a-9898-adaf-8f3d3abfda19",
            "resource": {
              "resourceType": "Provenance",
              "id": "ce33fff8-e41a-9898-adaf-8f3d3abfda19",
              "meta": {
                "profile": [
                  "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListProvenance"
                ]
              },
              "contained": [
                {
                  "resourceType": "PractitionerRole",
                  "id": "1",
                  "organization": {
                    "reference": "#2"
                  },
                  "code": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LLL"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "2",
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.537.26.1098701780"
                    }
                  ],
                  "name": "Testi terveysasema, palveluyksikkö",
                  "contact": [
                    {
                      "telecom": [
                        {
                          "system": "phone",
                          "value": "tel:02063411"
                        }
                      ]
                    }
                  ]
                }
              ],
              "extension": [
                {
                  "url": "https://gen.kanta.fi/fhir/StructureDefinition/extension/serviceEvent",
                  "valueIdentifier": {
                    "system": "urn:ietf:rfc:3986",
                    "value": "urn:oid:1.2.246.10.1602257.14.2019.860"
                  }
                }
              ],
              "target": [
                {
                  "reference": "urn:oid:1.2.246.10.11111111.93001.2024.365985521475872134",
                  "type": "MedicationRequest"
                }
              ],
              "recorded": "2024-03-01T11:43:01+02:00",
              "agent": [
                {
                  "role": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LLL"
                        }
                      ]
                    }
                  ],
                  "who": {
                    "reference": "#1"
                  }
                }
              ]
            }
          },
          {
            "fullUrl": "urn:oid:1.2.246.10.11111111.93001.2023.11711543513963258",
            "resource": {
              "resourceType": "MedicationRequest",
              "id": "1.2.246.10.11111111.93001.2023.11711543513963258",
              "meta": {
                "profile": [
                  "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedicationRequest"
                ],
                "tag": [
                  {
                    "system": "http://resepti.kanta.fi/fhir/cdaHeaderTemplateId",
                    "code": "1.2.246.777.11.2023.3"
                  }
                ]
              },
              "contained": [
                {
                  "resourceType": "Medication",
                  "id": "1",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedication"
                    ]
                  },
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/StructureDefinition/extension/pharmaceuticalProductStrength",
                      "valueString": "10 mg"
                    },
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/medicationKnowledgeReference",
                      "valueReference": {
                        "reference": "#2"
                      }
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.6.32.2007",
                        "code": "C10AA05",
                        "display": "atorvastatiini"
                      }
                    ]
                  },
                  "ingredient": [
                    {
                      "itemCodeableConcept": {
                        "text": "atorvastatiini"
                      },
                      "isActive": true
                    }
                  ]
                },
                {
                  "resourceType": "MedicationKnowledge",
                  "id": "2",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedicationKnowledge"
                    ]
                  },
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/marketingAuthorizationHolder",
                      "valueString": "UPJOHN EESV"
                    },
                    {
                      "url": "http://resepti.kanta.fi/StructureDefinition/extension/narcotic",
                      "valueBoolean": false
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.6.55.2004",
                        "code": "166175",
                        "display": "ORBEOS"
                      }
                    ]
                  },
                  "doseForm": {
                    "text": "tabletti, kalvopäällysteinen"
                  },
                  "amount": {
                    "extension": [
                      {
                        "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/packageFactor",
                        "valuePositiveInt": 1
                      },
                      {
                        "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/packageAmountText",
                        "valueString": "100 fol"
                      }
                    ],
                    "value": 100,
                    "unit": "fol"
                  },
                  "packaging": {
                    "type": {
                      "text": "läpipainopakkaus"
                    }
                  },
                  "medicineClassification": [
                    {
                      "type": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.12.2002.126",
                            "code": "164",
                            "display": "valmisteen laji"
                          }
                        ]
                      },
                      "classification": [
                        {
                          "coding": [
                            {
                              "system": "urn:oid:1.2.246.537.6.604.2014",
                              "code": "1"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Patient",
                  "id": "3",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListPatient"
                    ]
                  },
                  "identifier": [
                    {
                      "use": "official",
                      "system": "urn:oid:1.2.246.21",
                      "value": "050566-909R"
                    }
                  ],
                  "name": [
                    {
                      "use": "official",
                      "family": "Potilas",
                      "_family": {
                        "extension": [
                          {
                            "url": "http://hl7.org/fhir/StructureDefinition/humanname-own-name",
                            "valueString": "Potilas"
                          }
                        ]
                      },
                      "given": [
                        "Mikko"
                      ]
                    },
                    {
                      "use": "nickname",
                      "given": [
                        "Mikko"
                      ]
                    }
                  ],
                  "gender": "male",
                  "birthDate": "1966-05-05"
                },
                {
                  "resourceType": "PractitionerRole",
                  "id": "4",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListPractitionerRole"
                    ]
                  },
                  "practitioner": {
                    "reference": "#5"
                  },
                  "organization": {
                    "reference": "#6"
                  },
                  "code": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LAL"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Practitioner",
                  "id": "5",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListPractitioner"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:oid:1.2.246.537.25",
                      "value": "030429"
                    },
                    {
                      "system": "urn:oid:1.2.246.537.26",
                      "value": "01098701780"
                    }
                  ],
                  "name": [
                    {
                      "use": "official",
                      "family": "Meikäläinen",
                      "given": [
                        "Matti"
                      ]
                    }
                  ],
                  "qualification": [
                    {
                      "code": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.140.2008",
                            "code": "034"
                          }
                        ]
                      }
                    },
                    {
                      "code": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.148.2008",
                            "code": "86161-580"
                          }
                        ]
                      }
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "6",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListOrganization"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.537.26.1098701780"
                    }
                  ],
                  "name": "Testi terveysasema, palveluyksikkö",
                  "partOf": {
                    "reference": "#7"
                  },
                  "contact": [
                    {
                      "telecom": [
                        {
                          "system": "phone",
                          "value": "tel:02063411"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "7",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListOrganization"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.537.26.1098701780"
                    }
                  ]
                }
              ],
              "extension": [
                {
                  "url": "http://resepti.kanta.fi/StructureDefinition/extension/versionNumber",
                  "valuePositiveInt": 2
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/effectiveTime",
                  "valueDateTime": "2023-12-19T10:00:30+02:00"
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/continuum",
                  "extension": [
                    {
                      "url": "medicineId",
                      "valueIdentifier": {
                        "system": "urn:ietf:rfc:3986",
                        "value": "urn:oid:1.2.246.10.11111111.93001.2023.11711543513963258.0"
                      }
                    },
                    {
                      "url": "medicineIdPart",
                      "valuePositiveInt": 2111352112
                    },
                    {
                      "url": "newest",
                      "valueBoolean": true
                    }
                  ]
                },
                {
                  "url": "http://resepti.kanta.fi/StructureDefinition/extension/dosageIfNeeded",
                  "valueBoolean": false
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/dosageInfo",
                  "extension": [
                    {
                      "url": "sicLabel",
                      "valueBoolean": true
                    },
                    {
                      "url": "sicReasonCode",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.6.615.202301",
                        "code": "99"
                      }
                    },
                    {
                      "url": "sicReasonText",
                      "valueString": "Annostus ainoastaan akuuttihoitoon"
                    },
                    {
                      "url": "onlyTextDosageInUse",
                      "valueBoolean": false
                    },
                    {
                      "url": "dosageChangesAllowed",
                      "valueBoolean": true
                    }
                  ]
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/structuredIndication",
                  "valueCoding": {
                    "system": "urn:oid:1.2.246.537.6.1.1999",
                    "code": "E78.01"
                  }
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/administrativeInformation",
                  "extension": [
                    {
                      "url": "doctorFee",
                      "valueMoney": {
                        "value": 125,
                        "currency": "EUR"
                      }
                    },
                    {
                      "url": "specialDoctorFee",
                      "valueBoolean": false
                    },
                    {
                      "url": "treatmentType",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.5.40101.2006",
                        "code": "S"
                      }
                    },
                    {
                      "url": "dosePackaging",
                      "valueBoolean": false
                    }
                  ]
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/initiationOfMedication",
                  "valueBoolean": true
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/renewalNotAllowed",
                  "extension": [
                    {
                      "url": "renewalNotAllowed",
                      "valueBoolean": false
                    }
                  ]
                },
                {
                  "url": "http://resepti.kanta.fi/StructureDefinition/extension/usage",
                  "valueString": "Kolesterolilääke."
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/contagiousDiseaseMedicine",
                  "valueBoolean": false
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/statusInformation",
                  "extension": [
                    {
                      "url": "lockStatus",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.5.40124.2006",
                        "code": "1"
                      }
                    },
                    {
                      "url": "reservedStatus",
                      "extension": [
                        {
                          "url": "reservedStatus",
                          "valueCoding": {
                            "system": "urn:oid:1.2.246.537.5.40122.2006",
                            "code": "1"
                          }
                        }
                      ]
                    },
                    {
                      "url": "renewalStatus",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.5.40106.2006",
                        "code": "1"
                      }
                    },
                    {
                      "url": "dispenseStatus",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.5.40123.2006",
                        "code": "2"
                      }
                    }
                  ]
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/originalStartdate",
                  "valueDateTime": "2023-12-19T10:00:30+02:00"
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/useRegularity",
                  "valueCoding": {
                    "system": "urn:oid:1.2.246.537.6.613.202301",
                    "code": "1"
                  }
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/invalidation",
                  "extension": [
                    {
                      "url": "invalidationType",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.5.40103.2006",
                        "code": "1"
                      }
                    },
                    {
                      "url": "invalidationInfo",
                      "valueString": "Lääkemääräyksen mitätöintiin liittyvä lisätieto"
                    },
                    {
                      "url": "invalidator",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.5.40102.2006",
                        "code": "1"
                      }
                    },
                    {
                      "url": "invalidationConsent",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.5.40119.2006",
                        "code": "6"
                      }
                    }
                  ]
                }
              ],
              "identifier": [
                {
                  "system": "http://resepti.kanta.fi/fhir/id/id",
                  "value": "urn:oid:1.2.246.10.11111111.93001.2023.11711543513963258"
                },
                {
                  "system": "http://resepti.kanta.fi/fhir/id/setId",
                  "value": "urn:oid:1.2.246.10.11111111.93001.2023.22356897844588462"
                }
              ],
              "status": "cancelled",
              "statusReason": {
                "coding": [
                  {
                    "system": "urn:oid:1.2.246.537.5.40105.2006",
                    "code": "2"
                  }
                ]
              },
              "intent": "order",
              "category": [
                {
                  "coding": [
                    {
                      "system": "urn:oid:1.2.246.537.6.605.2014",
                      "code": "1"
                    }
                  ]
                }
              ],
              "medicationReference": {
                "reference": "#1"
              },
              "subject": {
                "reference": "#3"
              },
              "authoredOn": "2024-12-19T10:00:30+02:00",
              "requester": {
                "reference": "#4"
              },
              "courseOfTherapyType": {
                "coding": [
                  {
                    "system": "urn:oid:1.2.246.537.5.40003.2003",
                    "code": "PYS"
                  }
                ]
              },
              "dosageInstruction": [
                {
                  "sequence": 1,
                  "text": "1-2 tablettia kerran päivässä. Aterian yhteydessä.",
                  "additionalInstruction": [
                    {
                      "text": "Aterian yhteydessä."
                    }
                  ],
                  "timing": {
                    "repeat": {
                      "frequency": 1,
                      "period": 1,
                      "periodUnit": "d"
                    }
                  },
                  "asNeededBoolean": false,
                  "route": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.6.1403.202001",
                        "code": "1055"
                      }
                    ]
                  },
                  "doseAndRate": [
                    {
                      "doseRange": {
                        "low": {
                          "value": 1,
                          "unit": "tabletti",
                          "system": "urn:oid:1.2.246.537.6.138.202001",
                          "code": "18"
                        },
                        "high": {
                          "value": 2,
                          "unit": "tabletti",
                          "system": "urn:oid:1.2.246.537.6.138.202001",
                          "code": "18"
                        }
                      }
                    }
                  ]
                }
              ],
              "dispenseRequest": {
                "extension": [
                  {
                    "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/dispenserInstruction",
                    "valueString": "viesti apteekille"
                  },
                  {
                    "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/prescribedAmount",
                    "extension": [
                      {
                        "url": "prescriptionType",
                        "valueCoding": {
                          "system": "urn:oid:1.2.246.537.5.40100.2006",
                          "code": "1"
                        }
                      },
                      {
                        "url": "package",
                        "valuePositiveInt": 1
                      }
                    ]
                  },
                  {
                    "url": "http://resepti.kanta.fi/StructureDefinition/extension/realDispenseStatus",
                    "valueCoding": {
                      "system": "urn:oid:1.2.246.537.5.40123.2006",
                      "code": "2"
                    }
                  }
                ],
                "dispenseInterval": {
                  "value": 10,
                  "unit": "d"
                },
                "validityPeriod": {
                  "start": "2024-03-19",
                  "end": "2024-06-19"
                },
                "numberOfRepeatsAllowed": 1
              },
              "substitution": {
                "allowedBoolean": true
              }
            }
          },
          {
            "fullUrl": "urn:uuid:c6b04680-18b8-4cba-b62c-99bda6981eca",
            "resource": {
              "resourceType": "Provenance",
              "id": "c6b04680-18b8-4cba-b62c-99bda6981eca",
              "meta": {
                "profile": [
                  "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListProvenance"
                ]
              },
              "contained": [
                {
                  "resourceType": "PractitionerRole",
                  "id": "1",
                  "practitioner": {
                    "reference": "#2"
                  },
                  "organization": {
                    "reference": "#3"
                  },
                  "code": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LAL"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Practitioner",
                  "id": "2",
                  "identifier": [
                    {
                      "system": "urn:oid:1.2.246.537.25",
                      "value": "030429"
                    },
                    {
                      "system": "urn:oid:1.2.246.537.26",
                      "value": "01098701780"
                    }
                  ],
                  "name": [
                    {
                      "use": "official",
                      "family": "Meikäläinen",
                      "given": [
                        "Matti"
                      ]
                    }
                  ],
                  "qualification": [
                    {
                      "code": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.140.2008",
                            "code": "034"
                          }
                        ]
                      }
                    },
                    {
                      "code": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.148.2008",
                            "code": "86161-580"
                          }
                        ]
                      }
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "3",
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.537.26.1098701780"
                    }
                  ],
                  "name": "Testi terveysasema, palveluyksikkö",
                  "contact": [
                    {
                      "telecom": [
                        {
                          "system": "phone",
                          "value": "tel:02063411"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "PractitionerRole",
                  "id": "4",
                  "practitioner": {
                    "reference": "#5"
                  },
                  "organization": {
                    "reference": "#6"
                  },
                  "code": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "MIT"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Practitioner",
                  "id": "5",
                  "identifier": [
                    {
                      "system": "urn:oid:1.2.246.537.25",
                      "value": "030429"
                    },
                    {
                      "system": "urn:oid:1.2.246.537.26",
                      "value": "01098701780"
                    }
                  ],
                  "name": [
                    {
                      "use": "official",
                      "family": "Meikäläinen",
                      "given": [
                        "Matti"
                      ]
                    }
                  ],
                  "qualification": [
                    {
                      "code": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.140.2008",
                            "code": "034"
                          }
                        ]
                      }
                    },
                    {
                      "code": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.148.2008",
                            "code": "86161-580"
                          }
                        ]
                      }
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "6",
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.537.26.1098701780"
                    }
                  ],
                  "name": "Testi terveysasema, palveluyksikkö",
                  "contact": [
                    {
                      "telecom": [
                        {
                          "system": "phone",
                          "value": "tel:02063411"
                        }
                      ]
                    }
                  ]
                }
              ],
              "extension": [
                {
                  "url": "https://gen.kanta.fi/fhir/StructureDefinition/extension/serviceEvent",
                  "valueIdentifier": {
                    "system": "urn:ietf:rfc:3986",
                    "value": "urn:oid:1.2.246.10.1602257.14.2019.860"
                  }
                }
              ],
              "target": [
                {
                  "reference": "urn:oid:1.2.246.10.11111111.93001.2023.11711543513963258",
                  "type": "MedicationRequest"
                }
              ],
              "recorded": "2023-12-19T10:00:30+02:00",
              "agent": [
                {
                  "role": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LAL"
                        }
                      ]
                    }
                  ],
                  "who": {
                    "reference": "#1"
                  }
                },
                {
                  "role": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "MIT"
                        }
                      ]
                    }
                  ],
                  "who": {
                    "reference": "#4"
                  }
                }
              ]
            }
          },
          {
            "fullUrl": "urn:uuid:867434a8-1174-425a-81a1-96ac145aebf0",
            "resource": {
              "resourceType": "List",
              "id": "867434a8-1174-425a-81a1-96ac145aebf0",
              "meta": {
                "profile": [
                  "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListList"
                ]
              },
              "extension": [
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/continuum",
                  "extension": [
                    {
                      "url": "medicineId",
                      "valueIdentifier": {
                        "system": "urn:ietf:rfc:3986",
                        "value": "urn:oid:1.2.246.10.11111111.93001.2024.11711543513872123.0"
                      }
                    },
                    {
                      "url": "medicineIdPart",
                      "valuePositiveInt": 2135345448
                    }
                  ]
                }
              ],
              "status": "current",
              "mode": "working",
              "entry": [
                {
                  "item": {
                    "reference": "urn:oid:1.2.246.10.11111111.93001.2024.11711543513872123",
                    "type": "MedicationRequest"
                  }
                },
                {
                  "item": {
                    "reference": "urn:oid:1.2.246.10.11111111.93001.2024.11711545645149123",
                    "type": "MedicationDispense"
                  }
                },
                {
                  "item": {
                    "reference": "urn:oid:1.2.246.10.11111111.93001.2024.11712309571038123",
                    "type": "MedicationRequest"
                  }
                }
              ]
            }
          },
          {
            "fullUrl": "urn:uuid:652312a5-2235-425a-81b2-74ac185acdf2",
            "resource": {
              "resourceType": "List",
              "id": "652312a5-2235-425a-81b2-74ac185acdf2",
              "meta": {
                "profile": [
                  "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListList"
                ]
              },
              "extension": [
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/continuum",
                  "extension": [
                    {
                      "url": "medicineId",
                      "valueIdentifier": {
                        "system": "urn:ietf:rfc:3986",
                        "value": "urn:oid:1.2.246.10.11111111.93001.2024.11889663514872133.0"
                      }
                    },
                    {
                      "url": "medicineIdPart",
                      "valuePositiveInt": 1728648970
                    }
                  ]
                }
              ],
              "status": "current",
              "mode": "working",
              "entry": [
                {
                  "item": {
                    "reference": "urn:oid:1.2.246.10.11111111.93001.2024.11889663514872133",
                    "type": "MedicationRequest"
                  }
                },
                {
                  "item": {
                    "reference": "urn:oid:1.2.246.10.11111111.93001.2024.88915563368271567",
                    "type": "MedicationDispense"
                  }
                },
                {
                  "item": {
                    "reference": "urn:oid:1.2.246.10.11111111.93001.2024.365985521475872134",
                    "type": "MedicationRequest"
                  }
                }
              ]
            }
          },
          {
            "fullUrl": "urn:uuid:422312a5-5114-254a-72b2-64ac145acba5",
            "resource": {
              "resourceType": "List",
              "id": "422312a5-5114-254a-72b2-64ac145acba5",
              "meta": {
                "profile": [
                  "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListList"
                ]
              },
              "extension": [
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/continuum",
                  "extension": [
                    {
                      "url": "medicineId",
                      "valueIdentifier": {
                        "system": "urn:ietf:rfc:3986",
                        "value": "urn:oid:1.2.246.10.11111111.93001.2023.11711543513963258.0"
                      }
                    },
                    {
                      "url": "medicineIdPart",
                      "valuePositiveInt": 2111352112
                    }
                  ]
                }
              ],
              "status": "current",
              "mode": "working",
              "entry": [
                {
                  "item": {
                    "reference": "urn:oid:1.2.246.10.11111111.93001.2023.11711543513963258",
                    "type": "MedicationRequest"
                  }
                }
              ]
            }
          }
        ]
      }
    },
    {
      "name": "old-prescriptions",
      "resource": {
        "resourceType": "Bundle",
        "id": "348b01e0-1ea5-4936-b924-488df0df3877",
        "type": "searchset",
        "total": 8,
        "entry": [
          {
            "fullUrl": "urn:oid:1.2.246.10.11111111.93001.2024.22355658125589347",
            "resource": {
              "resourceType": "MedicationRequest",
              "id": "1.2.246.10.11111111.93001.2024.22355658125589347",
              "meta": {
                "profile": [
                  "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedicationRequest"
                ],
                "tag": [
                  {
                    "system": "http://resepti.kanta.fi/fhir/cdaHeaderTemplateId",
                    "code": "1.2.246.777.11.2020.2"
                  }
                ]
              },
              "contained": [
                {
                  "resourceType": "Medication",
                  "id": "1",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedication"
                    ]
                  },
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/StructureDefinition/extension/pharmaceuticalProductStrength",
                      "valueString": "40 mg"
                    },
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/medicationKnowledgeReference",
                      "valueReference": {
                        "reference": "#2"
                      }
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.6.32.2007",
                        "code": "A02BC02",
                        "display": "pantopratsoli"
                      }
                    ]
                  },
                  "ingredient": [
                    {
                      "itemCodeableConcept": {
                        "text": "pantopratsoli"
                      },
                      "isActive": true
                    }
                  ]
                },
                {
                  "resourceType": "MedicationKnowledge",
                  "id": "2",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedicationKnowledge"
                    ]
                  },
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/marketingAuthorizationHolder",
                      "valueString": "TAKEDA"
                    },
                    {
                      "url": "http://resepti.kanta.fi/StructureDefinition/extension/narcotic",
                      "valueBoolean": false
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.6.55.2004",
                        "code": "490086",
                        "display": "SOMAC"
                      }
                    ]
                  },
                  "doseForm": {
                    "text": "enterotabletti"
                  },
                  "amount": {
                    "extension": [
                      {
                        "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/packageFactor",
                        "valuePositiveInt": 1
                      },
                      {
                        "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/packageAmountText",
                        "valueString": "100 kpl"
                      }
                    ],
                    "value": 100,
                    "unit": "kpl"
                  },
                  "packaging": {
                    "type": {
                      "text": "tablettipurkki, muovi"
                    }
                  },
                  "medicineClassification": [
                    {
                      "type": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.12.2002.126",
                            "code": "164",
                            "display": "valmisteen laji"
                          }
                        ]
                      },
                      "classification": [
                        {
                          "coding": [
                            {
                              "system": "urn:oid:1.2.246.537.6.604.2014",
                              "code": "1"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Patient",
                  "id": "3",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListPatient"
                    ]
                  },
                  "identifier": [
                    {
                      "use": "official",
                      "system": "urn:oid:1.2.246.21",
                      "value": "050566-909R"
                    }
                  ],
                  "name": [
                    {
                      "use": "official",
                      "family": "Potilas",
                      "_family": {
                        "extension": [
                          {
                            "url": "http://hl7.org/fhir/StructureDefinition/humanname-own-name",
                            "valueString": "Potilas"
                          }
                        ]
                      },
                      "given": [
                        "Mikko"
                      ]
                    },
                    {
                      "use": "nickname",
                      "given": [
                        "Mikko"
                      ]
                    }
                  ],
                  "gender": "male",
                  "birthDate": "1966-05-05"
                },
                {
                  "resourceType": "PractitionerRole",
                  "id": "4",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListPractitionerRole"
                    ]
                  },
                  "practitioner": {
                    "reference": "#5"
                  },
                  "organization": {
                    "reference": "#6"
                  },
                  "code": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LAL"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Practitioner",
                  "id": "5",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListPractitioner"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:oid:1.2.246.537.25",
                      "value": "030429"
                    },
                    {
                      "system": "urn:oid:1.2.246.537.26",
                      "value": "01098701780"
                    }
                  ],
                  "name": [
                    {
                      "use": "official",
                      "family": "Meikäläinen",
                      "given": [
                        "Matti"
                      ]
                    }
                  ],
                  "qualification": [
                    {
                      "code": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.140.2008",
                            "code": "034"
                          }
                        ]
                      }
                    },
                    {
                      "code": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.148.2008",
                            "code": "86161-580"
                          }
                        ]
                      }
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "6",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListOrganization"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.537.26.1098701780"
                    }
                  ],
                  "name": "Testi terveysasema, palveluyksikkö",
                  "partOf": {
                    "reference": "#7"
                  },
                  "contact": [
                    {
                      "telecom": [
                        {
                          "system": "phone",
                          "value": "tel:02063411"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "7",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListOrganization"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.537.26.1098701780"
                    }
                  ]
                },
                {
                  "resourceType": "Basic",
                  "id": "8",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListRenewalBasic"
                    ],
                    "tag": [
                      {
                        "system": "http://resepti.kanta.fi/fhir/cdaHeaderTemplateId",
                        "code": "1.2.246.777.11.2023.3"
                      }
                    ]
                  },
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/effectiveTime",
                      "valueDateTime": "2024-03-01T11:45:14+02:00"
                    },
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/note",
                      "valueString": "Potilas käynyt verikokeissa"
                    },
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/patientTelecom",
                      "valueContactPoint": {
                        "system": "phone",
                        "value": "tel:0401332011"
                      }
                    },
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/renewalRecorder",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.5.40129.202301",
                        "code": "2"
                      }
                    }
                  ],
                  "identifier": [
                    {
                      "system": "http://resepti.kanta.fi/fhir/id/id",
                      "value": "urn:oid:1.2.246.10.11111111.93001.2024.117286489685961232160310007"
                    },
                    {
                      "system": "http://resepti.kanta.fi/fhir/id/setId",
                      "value": "urn:oid:1.2.246.10.11111111.93001.2024.117286489685961232160310007"
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.5.40105.2006",
                        "code": "8"
                      }
                    ]
                  },
                  "subject": {
                    "reference": "#9"
                  }
                },
                {
                  "resourceType": "Organization",
                  "id": "9",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListOrganization"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.537.26.1098701780"
                    }
                  ],
                  "name": "Uusimispyynnön vastaanottaja organisaation nimi"
                },
                {
                  "resourceType": "Basic",
                  "id": "10",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListStatusBasic"
                    ],
                    "tag": [
                      {
                        "system": "http://resepti.kanta.fi/fhir/cdaHeaderTemplateId",
                        "code": "1.2.246.777.11.2023.3"
                      }
                    ]
                  },
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/effectiveTime",
                      "valueDateTime": "2024-03-27T12:15:14+02:00"
                    },
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/comment",
                      "valueString": "Annosjakeluvarattu"
                    }
                  ],
                  "identifier": [
                    {
                      "system": "http://resepti.kanta.fi/fhir/id/id",
                      "value": "urn:oid:1.2.246.10.11111111.93001.2024.117286489685961232160880008"
                    },
                    {
                      "system": "http://resepti.kanta.fi/fhir/id/setId",
                      "value": "urn:oid:1.2.246.10.11111111.93001.2024.117286489685961232160880008"
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.5.40105.2006",
                        "code": "16"
                      }
                    ]
                  },
                  "author": {
                    "reference": "#11"
                  }
                },
                {
                  "resourceType": "Organization",
                  "id": "11",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListOrganization"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.10.818238.10.1"
                    }
                  ]
                }
              ],
              "extension": [
                {
                  "url": "http://resepti.kanta.fi/StructureDefinition/extension/versionNumber",
                  "valuePositiveInt": 1
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/effectiveTime",
                  "valueDateTime": "2024-03-19T10:57:30+02:00"
                },
                {
                  "url": "http://resepti.kanta.fi/StructureDefinition/extension/dosageIfNeeded",
                  "valueBoolean": false
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/dosageInfo",
                  "extension": [
                    {
                      "url": "sicLabel",
                      "valueBoolean": false
                    },
                    {
                      "url": "onlyTextDosageInUse",
                      "valueBoolean": false
                    }
                  ]
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/administrativeInformation",
                  "extension": [
                    {
                      "url": "doctorFee",
                      "valueMoney": {
                        "value": 125,
                        "currency": "EUR"
                      }
                    },
                    {
                      "url": "specialDoctorFee",
                      "valueBoolean": false
                    },
                    {
                      "url": "treatmentType",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.5.40101.2006",
                        "code": "S"
                      }
                    },
                    {
                      "url": "dosePackaging",
                      "valueBoolean": true
                    }
                  ]
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/initiationOfMedication",
                  "valueBoolean": true
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/renewalNotAllowed",
                  "extension": [
                    {
                      "url": "renewalNotAllowed",
                      "valueBoolean": false
                    }
                  ]
                },
                {
                  "url": "http://resepti.kanta.fi/StructureDefinition/extension/usage",
                  "valueString": "Närästyksen hoitoon"
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/contagiousDiseaseMedicine",
                  "valueBoolean": false
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/statusInformation",
                  "extension": [
                    {
                      "url": "lockStatus",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.5.40124.2006",
                        "code": "1"
                      }
                    },
                    {
                      "url": "reservedStatus",
                      "extension": [
                        {
                          "url": "reservedStatus",
                          "valueCoding": {
                            "system": "urn:oid:1.2.246.537.5.40122.2006",
                            "code": "4"
                          }
                        }
                      ]
                    },
                    {
                      "url": "renewalStatus",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.5.40106.2006",
                        "code": "4"
                      }
                    },
                    {
                      "url": "dispenseStatus",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.5.40123.2006",
                        "code": "2"
                      }
                    }
                  ]
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/renewalBasicReference",
                  "valueReference": {
                    "reference": "#8"
                  }
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/statusBasicReference",
                  "valueReference": {
                    "reference": "#10"
                  }
                }
              ],
              "identifier": [
                {
                  "system": "http://resepti.kanta.fi/fhir/id/id",
                  "value": "urn:oid:1.2.246.10.11111111.93001.2024.22355658125589347"
                },
                {
                  "system": "http://resepti.kanta.fi/fhir/id/setId",
                  "value": "urn:oid:1.2.246.10.11111111.93001.2024.22355658125589347"
                }
              ],
              "status": "active",
              "statusReason": {
                "coding": [
                  {
                    "system": "urn:oid:1.2.246.537.5.40105.2006",
                    "code": "1"
                  }
                ]
              },
              "intent": "order",
              "category": [
                {
                  "coding": [
                    {
                      "system": "urn:oid:1.2.246.537.6.605.2014",
                      "code": "1"
                    }
                  ]
                }
              ],
              "medicationReference": {
                "reference": "#1"
              },
              "subject": {
                "reference": "#3"
              },
              "authoredOn": "2025-03-19T10:57:30+02:00",
              "requester": {
                "reference": "#4"
              },
              "dosageInstruction": [
                {
                  "sequence": 1,
                  "text": "1 tabletti kerran päivässä.",
                  "timing": {
                    "repeat": {
                      "frequency": 1,
                      "period": 1,
                      "periodUnit": "d"
                    }
                  },
                  "asNeededBoolean": false,
                  "route": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.6.1403.202001",
                        "code": "1055"
                      }
                    ]
                  },
                  "doseAndRate": [
                    {
                      "doseQuantity": {
                        "value": 1,
                        "unit": "tabletti",
                        "system": "urn:oid:1.2.246.537.6.138.202001",
                        "code": "18"
                      }
                    }
                  ]
                }
              ],
              "dispenseRequest": {
                "extension": [
                  {
                    "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/dispenserInstruction",
                    "valueString": "viesti apteekille"
                  },
                  {
                    "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/prescribedAmount",
                    "extension": [
                      {
                        "url": "prescriptionType",
                        "valueCoding": {
                          "system": "urn:oid:1.2.246.537.5.40100.2006",
                          "code": "1"
                        }
                      },
                      {
                        "url": "package",
                        "valuePositiveInt": 2
                      }
                    ]
                  },
                  {
                    "url": "http://resepti.kanta.fi/StructureDefinition/extension/realDispenseStatus",
                    "valueCoding": {
                      "system": "urn:oid:1.2.246.537.5.40123.2006",
                      "code": "2"
                    }
                  }
                ],
                "dispenseInterval": {
                  "value": 10,
                  "unit": "d"
                },
                "validityPeriod": {
                  "end": "2027-03-19"
                },
                "numberOfRepeatsAllowed": 1
              },
              "substitution": {
                "allowedBoolean": true
              }
            }
          },
          {
            "fullUrl": "urn:uuid:b6b04680-15b8-4cfa-b82c-89bda6981efa",
            "resource": {
              "resourceType": "Provenance",
              "id": "b6b04680-15b8-4cfa-b82c-89bda6981efa",
              "meta": {
                "profile": [
                  "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListProvenance"
                ]
              },
              "contained": [
                {
                  "resourceType": "PractitionerRole",
                  "id": "1",
                  "practitioner": {
                    "reference": "#2"
                  },
                  "organization": {
                    "reference": "#3"
                  },
                  "code": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LAL"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Practitioner",
                  "id": "2",
                  "identifier": [
                    {
                      "system": "urn:oid:1.2.246.537.25",
                      "value": "030429"
                    },
                    {
                      "system": "urn:oid:1.2.246.537.26",
                      "value": "01098701780"
                    }
                  ],
                  "name": [
                    {
                      "use": "official",
                      "family": "Meikäläinen",
                      "given": [
                        "Matti"
                      ]
                    }
                  ],
                  "qualification": [
                    {
                      "code": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.140.2008",
                            "code": "034"
                          }
                        ]
                      }
                    },
                    {
                      "code": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.148.2008",
                            "code": "86161-580"
                          }
                        ]
                      }
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "3",
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.537.26.1098701780"
                    }
                  ],
                  "name": "Testi terveysasema, palveluyksikkö",
                  "contact": [
                    {
                      "telecom": [
                        {
                          "system": "phone",
                          "value": "tel:02063411"
                        }
                      ]
                    }
                  ]
                }
              ],
              "extension": [
                {
                  "url": "https://gen.kanta.fi/fhir/StructureDefinition/extension/serviceEvent",
                  "valueIdentifier": {
                    "system": "urn:ietf:rfc:3986",
                    "value": "urn:oid:1.2.246.10.1602257.14.2019.860"
                  }
                }
              ],
              "target": [
                {
                  "reference": "urn:oid:1.2.246.10.11111111.93001.2024.22355658125589347",
                  "type": "MedicationRequest"
                }
              ],
              "recorded": "2024-03-19T10:57:30+02:00",
              "agent": [
                {
                  "role": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LAL"
                        }
                      ]
                    }
                  ],
                  "who": {
                    "reference": "#1"
                  }
                }
              ]
            }
          },
          {
            "fullUrl": "urn:oid:1.2.246.10.11111111.93001.2024.23145678898562432",
            "resource": {
              "resourceType": "MedicationDispense",
              "id": "1.2.246.10.11111111.93001.2024.23145678898562432",
              "meta": {
                "profile": [
                  "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedicationDispense"
                ],
                "tag": [
                  {
                    "system": "http://resepti.kanta.fi/fhir/cdaHeaderTemplateId",
                    "code": "1.2.246.777.11.2020.2"
                  }
                ]
              },
              "contained": [
                {
                  "resourceType": "Medication",
                  "id": "1",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedication"
                    ]
                  },
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/StructureDefinition/extension/pharmaceuticalProductStrength",
                      "valueString": "40 mg"
                    },
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/medicationKnowledgeReference",
                      "valueReference": {
                        "reference": "#2"
                      }
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.6.32.2007",
                        "code": "A02BC02",
                        "display": "pantopratsoli"
                      }
                    ]
                  },
                  "ingredient": [
                    {
                      "itemCodeableConcept": {
                        "text": "pantopratsoli"
                      },
                      "isActive": true
                    }
                  ]
                },
                {
                  "resourceType": "MedicationKnowledge",
                  "id": "2",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedicationKnowledge"
                    ]
                  },
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/marketingAuthorizationHolder",
                      "valueString": "TAKEDA"
                    },
                    {
                      "url": "http://resepti.kanta.fi/StructureDefinition/extension/narcotic",
                      "valueBoolean": false
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.6.55.2004",
                        "code": "490086",
                        "display": "SOMAC"
                      }
                    ]
                  },
                  "doseForm": {
                    "text": "enterotabletti"
                  },
                  "amount": {
                    "extension": [
                      {
                        "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/packageFactor",
                        "valuePositiveInt": 1
                      },
                      {
                        "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/packageAmountText",
                        "valueString": "100 kpl"
                      }
                    ],
                    "value": 100,
                    "unit": "kpl"
                  },
                  "packaging": {
                    "type": {
                      "text": "tablettipurkki, muovi"
                    }
                  },
                  "medicineClassification": [
                    {
                      "type": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.12.2002.126",
                            "code": "164",
                            "display": "valmisteen laji"
                          }
                        ]
                      },
                      "classification": [
                        {
                          "coding": [
                            {
                              "system": "urn:oid:1.2.246.537.6.604.2014",
                              "code": "1"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "PractitionerRole",
                  "id": "3",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListPractitionerRole"
                    ]
                  },
                  "organization": {
                    "reference": "#5"
                  },
                  "code": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LTE"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "5",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListOrganization"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.10.818238.10.1"
                    }
                  ],
                  "name": "Testi apteekki",
                  "contact": [
                    {
                      "telecom": [
                        {
                          "system": "phone",
                          "value": "tel:02063488"
                        }
                      ]
                    }
                  ]
                }
              ],
              "extension": [
                {
                  "url": "http://resepti.kanta.fi/StructureDefinition/extension/versionNumber",
                  "valuePositiveInt": 1
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/effectiveTime",
                  "valueDateTime": "2024-03-27T13:20:45+02:00"
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/cost",
                  "valueMoney": {
                    "value": 5.68,
                    "currency": "EUR"
                  }
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/dosePackaging",
                  "valueBoolean": true
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/fullyDispensed",
                  "valueBoolean": false
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/additionalInformation",
                  "valueString": "Lääketoimituksen lisäselvitys Kelalle"
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/amountOfPackages",
                  "valuePositiveInt": 1
                }
              ],
              "identifier": [
                {
                  "system": "http://resepti.kanta.fi/fhir/id/id",
                  "value": "urn:oid:1.2.246.10.11111111.93001.2024.23145678898562432"
                },
                {
                  "system": "http://resepti.kanta.fi/fhir/id/setId",
                  "value": "urn:oid:1.2.246.10.11111111.93001.2024.23145678898562432"
                }
              ],
              "status": "completed",
              "statusReasonCodeableConcept": {
                "coding": [
                  {
                    "system": "urn:oid:1.2.246.537.5.40105.2006",
                    "code": "10"
                  }
                ]
              },
              "medicationReference": {
                "reference": "#1"
              },
              "performer": [
                {
                  "actor": {
                    "reference": "#3"
                  }
                }
              ],
              "authorizingPrescription": [
                {
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/prescriptionSetId",
                      "valueIdentifier": {
                        "system": "http://resepti.kanta.fi/fhir/id/setId",
                        "value": "urn:oid:1.2.246.10.11111111.93001.2024.22355658125589347"
                      }
                    }
                  ],
                  "identifier": {
                    "system": "http://resepti.kanta.fi/fhir/id/id",
                    "value": "urn:oid:1.2.246.10.11111111.93001.2024.22355658125589347"
                  }
                }
              ],
              "quantity": {
                "extension": [
                  {
                    "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/remainingAmount",
                    "extension": [
                      {
                        "url": "amountFormula",
                        "extension": [
                          {
                            "url": "value",
                            "valueString": "1X100"
                          },
                          {
                            "url": "unit",
                            "valueString": "kpl"
                          }
                        ]
                      }
                    ]
                  }
                ],
                "value": 100,
                "unit": "kpl"
              },
              "whenHandedOver": "2024-03-27T13:20:45+02:00",
              "note": [
                {
                  "text": "Apteekin huomautus lääketoimitukseen"
                }
              ],
              "dosageInstruction": [
                {
                  "text": "Närästyksen hoitoon.",
                  "patientInstruction": "1 tabletti kerran päivässä."
                }
              ],
              "substitution": {
                "wasSubstituted": false
              }
            }
          },
          {
            "fullUrl": "urn:uuid:04637b4c-ff64-4cd8-b042-fd228c749979",
            "resource": {
              "resourceType": "Provenance",
              "id": "04637b4c-ff64-4cd8-b042-fd228c749979",
              "meta": {
                "profile": [
                  "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListProvenance"
                ]
              },
              "contained": [
                {
                  "resourceType": "PractitionerRole",
                  "id": "1",
                  "organization": {
                    "reference": "#2"
                  },
                  "code": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LTE"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "2",
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.10.818238.10.1"
                    }
                  ],
                  "name": "Testi apteekki",
                  "contact": [
                    {
                      "telecom": [
                        {
                          "system": "phone",
                          "value": "tel:02063488"
                        }
                      ]
                    }
                  ]
                }
              ],
              "extension": [
                {
                  "url": "https://gen.kanta.fi/fhir/StructureDefinition/extension/serviceEvent",
                  "valueIdentifier": {
                    "system": "urn:ietf:rfc:3986",
                    "value": "urn:oid:1.2.246.10.1602257.14.2019.860"
                  }
                }
              ],
              "target": [
                {
                  "reference": "urn:oid:1.2.246.10.11111111.93001.2024.23145678898562432",
                  "type": "MedicationDispense"
                }
              ],
              "recorded": "2024-03-27T13:20:45+02:00",
              "agent": [
                {
                  "role": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LTE"
                        }
                      ]
                    }
                  ],
                  "who": {
                    "reference": "#1"
                  }
                }
              ]
            }
          },
          {
            "fullUrl": "urn:oid:1.2.246.10.11111111.93001.2024.11256844586723211",
            "resource": {
              "resourceType": "MedicationRequest",
              "id": "1.2.246.10.11111111.93001.2024.11256844586723211",
              "meta": {
                "profile": [
                  "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedicationRequest"
                ],
                "tag": [
                  {
                    "system": "http://resepti.kanta.fi/fhir/cdaHeaderTemplateId",
                    "code": "1.2.246.777.11.2020.2"
                  }
                ]
              },
              "contained": [
                {
                  "resourceType": "Medication",
                  "id": "1",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedication"
                    ]
                  },
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/StructureDefinition/extension/pharmaceuticalProductStrength",
                      "valueString": "0,25 mg"
                    },
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/medicationKnowledgeReference",
                      "valueReference": {
                        "reference": "#2"
                      }
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.6.32.2007",
                        "code": "C01AA05",
                        "display": "digoksiini"
                      }
                    ]
                  },
                  "ingredient": [
                    {
                      "itemCodeableConcept": {
                        "text": "digoksiini"
                      },
                      "isActive": true
                    }
                  ]
                },
                {
                  "resourceType": "MedicationKnowledge",
                  "id": "2",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedicationKnowledge"
                    ]
                  },
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/marketingAuthorizationHolder",
                      "valueString": "ORION PHARMA"
                    },
                    {
                      "url": "http://resepti.kanta.fi/StructureDefinition/extension/narcotic",
                      "valueBoolean": false
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.6.55.2004",
                        "code": "085603",
                        "display": "DIGOXIN ORION"
                      }
                    ]
                  },
                  "doseForm": {
                    "text": "tabletti"
                  },
                  "amount": {
                    "extension": [
                      {
                        "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/packageFactor",
                        "valuePositiveInt": 1
                      },
                      {
                        "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/packageAmountText",
                        "valueString": "90 fol"
                      }
                    ],
                    "value": 90,
                    "unit": "fol"
                  },
                  "packaging": {
                    "type": {
                      "text": "läpipainopakkaus"
                    }
                  },
                  "medicineClassification": [
                    {
                      "type": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.12.2002.126",
                            "code": "164",
                            "display": "valmisteen laji"
                          }
                        ]
                      },
                      "classification": [
                        {
                          "coding": [
                            {
                              "system": "urn:oid:1.2.246.537.6.604.2014",
                              "code": "1"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Patient",
                  "id": "3",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListPatient"
                    ]
                  },
                  "identifier": [
                    {
                      "use": "official",
                      "system": "urn:oid:1.2.246.21",
                      "value": "050566-909R"
                    }
                  ],
                  "name": [
                    {
                      "use": "official",
                      "family": "Potilas",
                      "_family": {
                        "extension": [
                          {
                            "url": "http://hl7.org/fhir/StructureDefinition/humanname-own-name",
                            "valueString": "Potilas"
                          }
                        ]
                      },
                      "given": [
                        "Mikko"
                      ]
                    },
                    {
                      "use": "nickname",
                      "given": [
                        "Mikko"
                      ]
                    }
                  ],
                  "gender": "male",
                  "birthDate": "1966-05-05"
                },
                {
                  "resourceType": "PractitionerRole",
                  "id": "4",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListPractitionerRole"
                    ]
                  },
                  "practitioner": {
                    "reference": "#5"
                  },
                  "organization": {
                    "reference": "#6"
                  },
                  "code": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LAL"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Practitioner",
                  "id": "5",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListPractitioner"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:oid:1.2.246.537.25",
                      "value": "030429"
                    },
                    {
                      "system": "urn:oid:1.2.246.537.26",
                      "value": "01098701780"
                    }
                  ],
                  "name": [
                    {
                      "use": "official",
                      "family": "Meikäläinen",
                      "given": [
                        "Matti"
                      ]
                    }
                  ],
                  "qualification": [
                    {
                      "code": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.140.2008",
                            "code": "034"
                          }
                        ]
                      }
                    },
                    {
                      "code": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.148.2008",
                            "code": "86161-580"
                          }
                        ]
                      }
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "6",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListOrganization"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.537.26.1098701780"
                    }
                  ],
                  "name": "Testi terveysasema, palveluyksikkö",
                  "partOf": {
                    "reference": "#7"
                  },
                  "contact": [
                    {
                      "telecom": [
                        {
                          "system": "phone",
                          "value": "tel:02063411"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "7",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListOrganization"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.537.26.1098701780"
                    }
                  ]
                },
                {
                  "resourceType": "Basic",
                  "id": "8",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListRenewalBasic"
                    ],
                    "tag": [
                      {
                        "system": "http://resepti.kanta.fi/fhir/cdaHeaderTemplateId",
                        "code": "1.2.246.777.11.2023.3"
                      }
                    ]
                  },
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/effectiveTime",
                      "valueDateTime": "2024-03-01T11:45:14+02:00"
                    },
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/infoText",
                      "valueString": "Lääkärin kirjoittama perustelu uusimispyynnön hylkäämiselle"
                    },
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/patientInformed",
                      "valueBoolean": false
                    },
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/renewalRecorder",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.5.40129.202301",
                        "code": "2"
                      }
                    }
                  ],
                  "identifier": [
                    {
                      "system": "http://resepti.kanta.fi/fhir/id/id",
                      "value": "urn:oid:1.2.246.10.11111111.93001.2024.117286489685961232160310007"
                    },
                    {
                      "system": "http://resepti.kanta.fi/fhir/id/setId",
                      "value": "urn:oid:1.2.246.10.11111111.93001.2024.117286489685961232160310007"
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.5.40105.2006",
                        "code": "9"
                      }
                    ]
                  },
                  "author": {
                    "reference": "#9"
                  }
                },
                {
                  "resourceType": "Organization",
                  "id": "9",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListOrganization"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.537.26.1098701780"
                    }
                  ],
                  "name": "Uusimispyynnön käsittelijän organisaation nimi"
                },
                {
                  "resourceType": "Basic",
                  "id": "10",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListStatusBasic"
                    ],
                    "tag": [
                      {
                        "system": "http://resepti.kanta.fi/fhir/cdaHeaderTemplateId",
                        "code": "1.2.246.777.11.2023.3"
                      }
                    ]
                  },
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/effectiveTime",
                      "valueDateTime": "2024-03-27T12:15:14+02:00"
                    },
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/comment",
                      "valueString": "Annosjakeluvarattu"
                    }
                  ],
                  "identifier": [
                    {
                      "system": "http://resepti.kanta.fi/fhir/id/id",
                      "value": "urn:oid:1.2.246.10.11111111.93001.2024.117286489685961232160880008"
                    },
                    {
                      "system": "http://resepti.kanta.fi/fhir/id/setId",
                      "value": "urn:oid:1.2.246.10.11111111.93001.2024.117286489685961232160880008"
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.5.40105.2006",
                        "code": "16"
                      }
                    ]
                  },
                  "author": {
                    "reference": "#11"
                  }
                },
                {
                  "resourceType": "Organization",
                  "id": "11",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListOrganization"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.10.818238.10.1"
                    }
                  ]
                }
              ],
              "extension": [
                {
                  "url": "http://resepti.kanta.fi/StructureDefinition/extension/versionNumber",
                  "valuePositiveInt": 1
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/effectiveTime",
                  "valueDateTime": "2024-01-31T10:57:30+02:00"
                },
                {
                  "url": "http://resepti.kanta.fi/StructureDefinition/extension/dosageIfNeeded",
                  "valueBoolean": false
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/dosageInfo",
                  "extension": [
                    {
                      "url": "sicLabel",
                      "valueBoolean": true
                    },
                    {
                      "url": "onlyTextDosageInUse",
                      "valueBoolean": false
                    }
                  ]
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/administrativeInformation",
                  "extension": [
                    {
                      "url": "doctorFee",
                      "valueMoney": {
                        "value": 125,
                        "currency": "EUR"
                      }
                    },
                    {
                      "url": "specialDoctorFee",
                      "valueBoolean": false
                    },
                    {
                      "url": "treatmentType",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.5.40101.2006",
                        "code": "S"
                      }
                    },
                    {
                      "url": "dosePackaging",
                      "valueBoolean": false
                    }
                  ]
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/initiationOfMedication",
                  "valueBoolean": true
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/renewalNotAllowed",
                  "extension": [
                    {
                      "url": "renewalNotAllowed",
                      "valueBoolean": false
                    }
                  ]
                },
                {
                  "url": "http://resepti.kanta.fi/StructureDefinition/extension/usage",
                  "valueString": "Sydämen vajaatoiminnan hoitoon."
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/contagiousDiseaseMedicine",
                  "valueBoolean": false
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/statusInformation",
                  "extension": [
                    {
                      "url": "lockStatus",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.5.40124.2006",
                        "code": "1"
                      }
                    },
                    {
                      "url": "reservedStatus",
                      "extension": [
                        {
                          "url": "reservedStatus",
                          "valueCoding": {
                            "system": "urn:oid:1.2.246.537.5.40122.2006",
                            "code": "4"
                          }
                        }
                      ]
                    },
                    {
                      "url": "renewalStatus",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.5.40106.2006",
                        "code": "2"
                      }
                    },
                    {
                      "url": "dispenseStatus",
                      "valueCoding": {
                        "system": "urn:oid:1.2.246.537.5.40123.2006",
                        "code": "3"
                      }
                    }
                  ]
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/renewalBasicReference",
                  "valueReference": {
                    "reference": "#8"
                  }
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/statusBasicReference",
                  "valueReference": {
                    "reference": "#10"
                  }
                }
              ],
              "identifier": [
                {
                  "system": "http://resepti.kanta.fi/fhir/id/id",
                  "value": "urn:oid:1.2.246.10.11111111.93001.2024.11256844586723211"
                },
                {
                  "system": "http://resepti.kanta.fi/fhir/id/setId",
                  "value": "urn:oid:1.2.246.10.11111111.93001.2024.11256844586723211"
                }
              ],
              "status": "active",
              "statusReason": {
                "coding": [
                  {
                    "system": "urn:oid:1.2.246.537.5.40105.2006",
                    "code": "1"
                  }
                ]
              },
              "intent": "order",
              "category": [
                {
                  "coding": [
                    {
                      "system": "urn:oid:1.2.246.537.6.605.2014",
                      "code": "1"
                    }
                  ]
                }
              ],
              "medicationReference": {
                "reference": "#1"
              },
              "subject": {
                "reference": "#3"
              },
              "authoredOn": "2025-01-31T10:57:30+02:00",
              "requester": {
                "reference": "#4"
              },
              "dosageInstruction": [
                {
                  "sequence": 1,
                  "text": "1 tabletti kerran päivässä. Ei tyhjään vatsaan.",
                  "additionalInstruction": [
                    {
                      "text": "Ei tyhjään vatsaan."
                    }
                  ],
                  "timing": {
                    "repeat": {
                      "frequency": 1,
                      "period": 1,
                      "periodUnit": "d"
                    }
                  },
                  "asNeededBoolean": false,
                  "route": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.6.1403.202001",
                        "code": "1055"
                      }
                    ]
                  },
                  "doseAndRate": [
                    {
                      "doseQuantity": {
                        "value": 1,
                        "unit": "tabletti",
                        "system": "urn:oid:1.2.246.537.6.138.202001",
                        "code": "18"
                      }
                    }
                  ]
                }
              ],
              "dispenseRequest": {
                "extension": [
                  {
                    "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/dispenserInstruction",
                    "valueString": "viesti apteekille"
                  },
                  {
                    "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/prescribedAmount",
                    "extension": [
                      {
                        "url": "prescriptionType",
                        "valueCoding": {
                          "system": "urn:oid:1.2.246.537.5.40100.2006",
                          "code": "1"
                        }
                      },
                      {
                        "url": "package",
                        "valuePositiveInt": 4
                      }
                    ]
                  },
                  {
                    "url": "http://resepti.kanta.fi/StructureDefinition/extension/realDispenseStatus",
                    "valueCoding": {
                      "system": "urn:oid:1.2.246.537.5.40123.2006",
                      "code": "3"
                    }
                  }
                ],
                "validityPeriod": {
                  "end": "2027-01-31"
                }
              },
              "substitution": {
                "allowedBoolean": true
              }
            }
          },
          {
            "fullUrl": "urn:uuid:659f469e-4520-4e34-82b6-f088899bf229",
            "resource": {
              "resourceType": "Provenance",
              "id": "659f469e-4520-4e34-82b6-f088899bf229",
              "meta": {
                "profile": [
                  "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListProvenance"
                ]
              },
              "contained": [
                {
                  "resourceType": "PractitionerRole",
                  "id": "1",
                  "practitioner": {
                    "reference": "#2"
                  },
                  "organization": {
                    "reference": "#3"
                  },
                  "code": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LAL"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Practitioner",
                  "id": "2",
                  "identifier": [
                    {
                      "system": "urn:oid:1.2.246.537.25",
                      "value": "030429"
                    },
                    {
                      "system": "urn:oid:1.2.246.537.26",
                      "value": "01098701780"
                    }
                  ],
                  "name": [
                    {
                      "use": "official",
                      "family": "Meikäläinen",
                      "given": [
                        "Matti"
                      ]
                    }
                  ],
                  "qualification": [
                    {
                      "code": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.140.2008",
                            "code": "034"
                          }
                        ]
                      }
                    },
                    {
                      "code": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.148.2008",
                            "code": "86161-580"
                          }
                        ]
                      }
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "3",
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.537.26.1098701780"
                    }
                  ],
                  "name": "Testi terveysasema, palveluyksikkö",
                  "contact": [
                    {
                      "telecom": [
                        {
                          "system": "phone",
                          "value": "tel:02063411"
                        }
                      ]
                    }
                  ]
                }
              ],
              "extension": [
                {
                  "url": "https://gen.kanta.fi/fhir/StructureDefinition/extension/serviceEvent",
                  "valueIdentifier": {
                    "system": "urn:ietf:rfc:3986",
                    "value": "urn:oid:1.2.246.10.1602257.14.2019.860"
                  }
                }
              ],
              "target": [
                {
                  "reference": "urn:oid:1.2.246.10.11111111.93001.2024.11256844586723211",
                  "type": "MedicationRequest"
                }
              ],
              "recorded": "2024-01-31T10:57:30+02:00",
              "agent": [
                {
                  "role": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LAL"
                        }
                      ]
                    }
                  ],
                  "who": {
                    "reference": "#1"
                  }
                }
              ]
            }
          },
          {
            "fullUrl": "urn:oid:1.2.246.10.11111111.93001.2024.456512356123456124",
            "resource": {
              "resourceType": "MedicationDispense",
              "id": "1.2.246.10.11111111.93001.2024.456512356123456124",
              "meta": {
                "profile": [
                  "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedicationDispense"
                ],
                "tag": [
                  {
                    "system": "http://resepti.kanta.fi/fhir/cdaHeaderTemplateId",
                    "code": "1.2.246.777.11.2020.2"
                  }
                ]
              },
              "contained": [
                {
                  "resourceType": "Medication",
                  "id": "1",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedication"
                    ]
                  },
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/StructureDefinition/extension/pharmaceuticalProductStrength",
                      "valueString": "0,25 mg"
                    },
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/medicationKnowledgeReference",
                      "valueReference": {
                        "reference": "#2"
                      }
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.6.32.2007",
                        "code": "C01AA05",
                        "display": "digoksiini"
                      }
                    ]
                  },
                  "ingredient": [
                    {
                      "itemCodeableConcept": {
                        "text": "digoksiini"
                      },
                      "isActive": true
                    }
                  ]
                },
                {
                  "resourceType": "MedicationKnowledge",
                  "id": "2",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedicationKnowledge"
                    ]
                  },
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/marketingAuthorizationHolder",
                      "valueString": "ORION PHARMA"
                    },
                    {
                      "url": "http://resepti.kanta.fi/StructureDefinition/extension/narcotic",
                      "valueBoolean": false
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "urn:oid:1.2.246.537.6.55.2004",
                        "code": "085603",
                        "display": "DIGOXIN ORION"
                      }
                    ]
                  },
                  "doseForm": {
                    "text": "tabletti"
                  },
                  "amount": {
                    "extension": [
                      {
                        "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/packageFactor",
                        "valuePositiveInt": 1
                      },
                      {
                        "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/packageAmountText",
                        "valueString": "90 fol"
                      }
                    ],
                    "value": 90,
                    "unit": "fol"
                  },
                  "packaging": {
                    "type": {
                      "text": "läpipainopakkaus"
                    }
                  },
                  "medicineClassification": [
                    {
                      "type": {
                        "coding": [
                          {
                            "system": "urn:oid:1.2.246.537.6.12.2002.126",
                            "code": "164",
                            "display": "valmisteen laji"
                          }
                        ]
                      },
                      "classification": [
                        {
                          "coding": [
                            {
                              "system": "urn:oid:1.2.246.537.6.604.2014",
                              "code": "1"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "PractitionerRole",
                  "id": "3",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListPractitionerRole"
                    ]
                  },
                  "organization": {
                    "reference": "#5"
                  },
                  "code": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LTE"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "5",
                  "meta": {
                    "profile": [
                      "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListOrganization"
                    ]
                  },
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.10.818238.10.1"
                    }
                  ],
                  "name": "Testi apteekki",
                  "contact": [
                    {
                      "telecom": [
                        {
                          "system": "phone",
                          "value": "tel:02063488"
                        }
                      ]
                    }
                  ]
                }
              ],
              "extension": [
                {
                  "url": "http://resepti.kanta.fi/StructureDefinition/extension/versionNumber",
                  "valuePositiveInt": 1
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/effectiveTime",
                  "valueDateTime": "2024-01-31T16:00:05+02:00"
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/cost",
                  "valueMoney": {
                    "value": 15.98,
                    "currency": "EUR"
                  }
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/dosePackaging",
                  "valueBoolean": false
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/fullyDispensed",
                  "valueBoolean": true
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/additionalInformation",
                  "valueString": "Lääketoimituksen lisäselvitys Kelalle"
                },
                {
                  "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/amountOfPackages",
                  "valuePositiveInt": 1
                }
              ],
              "identifier": [
                {
                  "system": "http://resepti.kanta.fi/fhir/id/id",
                  "value": "urn:oid:1.2.246.10.11111111.93001.2024.456512356123456124"
                },
                {
                  "system": "http://resepti.kanta.fi/fhir/id/setId",
                  "value": "urn:oid:1.2.246.10.11111111.93001.2024.456512356123456124"
                }
              ],
              "status": "completed",
              "statusReasonCodeableConcept": {
                "coding": [
                  {
                    "system": "urn:oid:1.2.246.537.5.40105.2006",
                    "code": "10"
                  }
                ]
              },
              "medicationReference": {
                "reference": "#1"
              },
              "performer": [
                {
                  "actor": {
                    "reference": "#3"
                  }
                }
              ],
              "authorizingPrescription": [
                {
                  "extension": [
                    {
                      "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/prescriptionSetId",
                      "valueIdentifier": {
                        "system": "http://resepti.kanta.fi/fhir/id/setId",
                        "value": "urn:oid:1.2.246.10.11111111.93001.2024.11256844586723211"
                      }
                    }
                  ],
                  "identifier": {
                    "system": "http://resepti.kanta.fi/fhir/id/id",
                    "value": "urn:oid:1.2.246.10.11111111.93001.2024.11256844586723211"
                  }
                }
              ],
              "quantity": {
                "extension": [
                  {
                    "url": "http://resepti.kanta.fi/fhir/StructureDefinition/extension/remainingAmount",
                    "extension": [
                      {
                        "url": "amountFormula",
                        "extension": [
                          {
                            "url": "value",
                            "valueString": "0"
                          },
                          {
                            "url": "unit",
                            "valueString": "fol"
                          }
                        ]
                      }
                    ]
                  }
                ],
                "value": 90,
                "unit": "fol"
              },
              "whenHandedOver": "2024-01-31T16:00:05+02:00",
              "note": [
                {
                  "text": "Apteekin huomautus lääketoimitukseen"
                }
              ],
              "dosageInstruction": [
                {
                  "text": "Sydämen vajaatoiminnan hoitoon.",
                  "patientInstruction": "1 tabletti kerran päivässä. Ei tyhjään vatsaan.."
                }
              ],
              "substitution": {
                "wasSubstituted": false
              }
            }
          },
          {
            "fullUrl": "urn:uuid:04637b4c-cd64-4cd8-b042-fd228c759876",
            "resource": {
              "resourceType": "Provenance",
              "id": "04637b4c-cd64-4cd8-b042-fd228c759876",
              "meta": {
                "profile": [
                  "http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListProvenance"
                ]
              },
              "contained": [
                {
                  "resourceType": "PractitionerRole",
                  "id": "1",
                  "organization": {
                    "reference": "#2"
                  },
                  "code": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LTE"
                        }
                      ]
                    }
                  ]
                },
                {
                  "resourceType": "Organization",
                  "id": "2",
                  "identifier": [
                    {
                      "system": "urn:ietf:rfc:3986",
                      "value": "urn:oid:1.2.246.10.818238.10.1"
                    }
                  ],
                  "name": "Testi apteekki",
                  "contact": [
                    {
                      "telecom": [
                        {
                          "system": "phone",
                          "value": "tel:02063488"
                        }
                      ]
                    }
                  ]
                }
              ],
              "extension": [
                {
                  "url": "https://gen.kanta.fi/fhir/StructureDefinition/extension/serviceEvent",
                  "valueIdentifier": {
                    "system": "urn:ietf:rfc:3986",
                    "value": "urn:oid:1.2.246.10.1602257.14.2019.860"
                  }
                }
              ],
              "target": [
                {
                  "reference": "urn:oid:1.2.246.10.11111111.93001.2024.456512356123456124",
                  "type": "MedicationDispense"
                }
              ],
              "recorded": "2024-01-31T16:00:05+02:00",
              "agent": [
                {
                  "role": [
                    {
                      "coding": [
                        {
                          "system": "urn:oid:1.2.246.537.5.40006.2003",
                          "code": "LTE"
                        }
                      ]
                    }
                  ],
                  "who": {
                    "reference": "#1"
                  }
                }
              ]
            }
          }
        ]
      }
    }
  ]
}