{
  "resourceType" : "https://sql-on-fhir.org/ig/StructureDefinition/ViewDefinition",
  "name" : "Location",
  "status" : "draft",
  "description" : "Vue se rapprochant de la table OMOP location",
  "resource" : "Patient",
  "select" : [{
    "column" : [{
      "path" : "id",
      "name" : "location_id"
    },
    {
      "path" : "id",
      "name" : "person_id"
    },
    {
      "path" : "address.first().extension.where(url='http://hl7.org/fhir/StructureDefinition/geolocation').first().extension.where(url='latitude').first().valueDecimal",
      "name" : "latitude"
    },
    {
      "path" : "address.first().extension.where(url='http://hl7.org/fhir/StructureDefinition/geolocation').first().extension.where(url='longitude').first().valueDecimal",
      "name" : "longitude"
    }]
  }]
}