{
  "resourceType": "Bundle",
  "entry": [
    {
      "resource": {
        "resourceType": "Practitioner",
        "id": "43c77ece-0653-4f4b-b29f-f7e6ae397cb8",
        "identifier": [
          {
            "system": "http://mef.gov.it/cf",
            "value": "  "
          }
        ],
        "practitionerRole": [
          {
            "managingOrganization": {
              "reference": "Organization/85996edf-3a1f-49cf-a5b2-0c6262be273a"
            },
            "specialty": [
              {
                "coding": [
                  {
                    "system": "http://mef.gov.it/ts/tipo_medico",
                    "code": "01"
                  }
                ]
              }
            ]
          }
        ]
      }
    },
    {
      "resource": {
        "resourceType": "Organization",
        "id": "85996edf-3a1f-49cf-a5b2-0c6262be273a",
        "identifier": [
          {
            "system": "http://salute.gov.it/ausl",
            "value": "080114"
          }
        ]
      }
    },
    {
      "resource": {
        "resourceType": "Organization",
        "id": "6d3db1db-f90f-4707-b9f1-83163c0a2007",
        "identifier": [
          {
            "system": "http://salute.gov.it/ausl",
            "value": "080105"
          }
        ]
      }
    },
    {
      "resource": {
        "resourceType": "Organization",
        "id": "94c2e2f8-7c90-421c-9a9f-8efdd789d50d",
        "identifier": [
          {
            "system": "http://salute.gov.it/ausl",
            "value": "080104"
          }
        ]
      }
    },
    {
      "resource": {
        "resourceType": "Order",
        "extension": [
          {
            "url": "http://progetto-sole.it/fhir/posizione_ticket",
            "valueCoding": {
              "system": "http://salute.regione.emilia-romagna.it/posizione_ticket",
              "code": "04"
            }
          },
          {
            "url": "http://progetto-sole.it/fhir/modulistica_prescrittiva",
            "valueCoding": {
              "system": "http://salute.regione.emilia-romagna.it/modulistica_prescrittiva",
              "code": "1"
            }
          },
          {
            "url": "http://progetto-sole.it/fhir/regime_erogazione",
            "valueCoding": {
              "system": "http://salute.regione.emilia-romagna.it/regime_erogazione",
              "code": "01"
            }
          }
        ],
        "contained": [
          {
            "resourceType": "Patient",
            "id": "1",
            "extension": [
              {
                "url": "http://progetto-sole.it/fhir/assistito/dati_istat_nascita",
                "extension": [
                  {
                    "url": "http://progetto-sole.it/fhir/istat_comune",
                    "valueCoding": {
                      "system": "http://istat.it/comune",
                      "code": "036023",
                      "display": "MODENA"
                    }
                  },
                  {
                    "url": "http://progetto-sole.it/fhir/istat_nazione",
                    "valueCoding": {
                      "system": "http://istat.it/nazione",
                      "code": "100"
                    }
                  }
                ]
              },
              {
                "url": "http://progetto-sole.it/fhir/assistito/cittadinanza",
                "extension": [
                  {
                    "url": "http://progetto-sole.it/fhir/istat_nazione",
                    "valueCoding": {
                      "system": "http://istat.it/nazione",
                      "code": "100",
                      "display": "ITALIA"
                    }
                  }
                ]
              }
            ],
            "identifier": [
              {
                "system": "http://mef.gov.it/cf",
                "value": "SSSMNN75B01F257L"
              },
              {
                "system": "http://salute.regione.emilia-romagna.it/codice_sanitario",
                "value": "D078045"
              }
            ],
            "name": [
              {
                "family": [
                  "ASSISTITOPROVA"
                ],
                "given": [
                  "MODENA UNO"
                ]
              }
            ],
            "gender": "male",
            "birthDate": "1975-02-01",
            "address": [
              {
                "extension": [
                  {
                    "url": "http://progetto-sole.it/fhir/istat_comune",
                    "valueCoding": {
                      "system": "http://istat.it/comune",
                      "code": "036023"
                    }
                  },
                  {
                    "url": "http://progetto-sole.it/fhir/istat_nazione",
                    "valueCoding": {
                      "system": "http://istat.it/nazione",
                      "code": "100"
                    }
                  }
                ],
                "use": "home",
                "line": [
                  "VIA RESIDENZA, 14"
                ],
                "city": "MODENA",
                "district": "MO",
                "postalCode": "41121"
              },
              {
                "extension": [
                  {
                    "url": "http://progetto-sole.it/fhir/istat_comune",
                    "valueCoding": {
                      "system": "http://istat.it/comune",
                      "code": "037006"
                    }
                  },
                  {
                    "url": "http://progetto-sole.it/fhir/istat_nazione",
                    "valueCoding": {
                      "system": "http://istat.it/nazione",
                      "code": "100"
                    }
                  }
                ],
                "use": "temp",
                "line": [
                  "VIA DOMICILIO, 1"
                ],
                "city": "BOLOGNA",
                "district": "BO",
                "postalCode": "40125"
              }
            ],
            "contact": [
              {
                "telecom": [
                  {
                    "system": "email",
                    "value": "modenauno@gmail.com"
                  },
                  {
                    "system": "phone",
                    "value": "3351358726"
                  }
                ]
              }
            ],
            "careProvider": [
              {
                "reference": "Organization/6d3db1db-f90f-4707-b9f1-83163c0a2007"
              }
            ],
            "managingOrganization": {
              "reference": "Organization/94c2e2f8-7c90-421c-9a9f-8efdd789d50d"
            }
          },
          {
            "resourceType": "DiagnosticOrder",
            "id": "orderDiagnosticOrder",
            "status": "proposed",
            "item": [
              {
                "code": {
                  "extension": [
                    {
                      "url": "http://progetto-sole.it/fhir/progressivo_prestazione",
                      "valueInteger": 1
                    }
                  ],
                  "coding": [
                    {
                      "system": "http://salute.regione.emilia-romagna.it/codifica_primaria_prestazione",
                      "code": "0647.054",
                      "display": "RX GOMITO dx"
                    },
                    {
                      "system": "http://salute.regione.emilia-romagna.it/codifica_secondaria_prestazione",
                      "code": "88.22"
                    }
                  ]
                }
              },
              {
                "code": {
                  "extension": [
                    {
                      "url": "http://progetto-sole.it/fhir/progressivo_prestazione",
                      "valueInteger": 2
                    }
                  ],
                  "coding": [
                    {
                      "system": "http://salute.regione.emilia-romagna.it/codifica_primaria_prestazione",
                      "code": "0650.001",
                      "display": "RX BACINO"
                    },
                    {
                      "system": "http://salute.regione.emilia-romagna.it/codifica_secondaria_prestazione",
                      "code": "88.26"
                    }
                  ]
                }
              }
            ]
          }
        ],
        "identifier": [
          {
            "system": "http://mef.gov.it/ricetta",
            "value": "080A03001716551"
          },
          {
            "system": "http://progetto-sole.it/ricetta",
            "value": "114X201902061521"
          },
          {
            "system": "http://mef.gov.it/ricetta/cod_auth",
            "value": "060220191522036860000022825985"
          }
        ],
        "date": "2019-01-02",
        "subject": {
          "reference": "#1"
        },
        "source": {
          "reference": "Practitioner/43c77ece-0653-4f4b-b29f-f7e6ae397cb8"
        },
        "reasonCodeableConcept": {
          "coding": [
            {
              "system": "http://salute.gov.it/ICD9CM",
              "code": "592.0",
              "display": "QUESITO"
            }
          ]
        },
        "when": {
          "code": {
            "coding": [
              {
                "system": "http://mef.gov.it/ricetta/priorita",
                "code": "01"
              }
            ]
          }
        },
        "detail": [
          {
            "reference": "#orderDiagnosticOrder"
          }
        ]
      }
    },
    {
      "resource": {
        "resourceType": "Organization",
        "identifier": [
          {
            "system": "http://salute.gov.it/ausl",
            "value": "080105"
          }
        ]
      }
    },
    {
      "resource": {
        "resourceType": "Parameters",
        "parameter": [
          {
            "name": "data_da",
            "valueDate": "2019-02-23"
          },
          {
            "name": "data_a",
            "valueDate": "2019-04-08"
          }
        ]
      }
    },
    {
      "resource": {
        "resourceType": "Practitioner",
        "identifier": [
          {
            "system": "http://salute.regione.emilia-romagna.it/operatore/username",
            "value": "operatore.prova.dxc"
          }
        ],
        "name": [
          {
            "family": [
              "OPERATORE PROVA"
            ],
            "given": [
              "MODENA UNO"
            ]
          }
        ],
        "practitionerRole": [
          {
            "managingOrganization": {
              "reference": "Organization/6d3db1db-f90f-4707-b9f1-83163c0a2007"
            },
            "role": {
              "coding": [
                {
                  "system": "http://salute.regione.emilia-romagna.it/operatore/ruolo",
                  "code": "  ",
                  "display": "RUOLO TEST 2"
                }
              ]
            }
          }
        ]
      }
    }
  ]
}