{
  "resourceType": "StructureDefinition",
  "id": "sgrdv-base-find-response-location",
  "url": "http://sante.quebec/fhir/StructureDefinition/sgrdv-base-find-response-location",
  "name": "SGRDVBaseFindResponseLocation",
  "title": "Lieu dans la réponse $find (Base)",
  "status": "active",
  "experimental": true,
  "description": "Profil neutre du lieu associé à un Appointment retourné par $find.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Location",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Location",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Location.extension",
        "path": "Location.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Location.extension:distanceDeplacement",
        "path": "Location.extension",
        "sliceName": "distanceDeplacement",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://sante.quebec/fhir/StructureDefinition/sgrdv-location-distance-deplacement"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Location.extension:distanceDeplacement.value[x]",
        "path": "Location.extension.value[x]",
        "mustSupport": true
      },
      {
        "id": "Location.type",
        "path": "Location.type",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "http://sante.quebec/fhir/ValueSet/sgrdv-site-type-vs"
        }
      },
      {
        "id": "Location.type.coding",
        "path": "Location.type.coding",
        "mustSupport": true
      },
      {
        "id": "Location.type.coding.system",
        "path": "Location.type.coding.system",
        "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-RoleCode"
      },
      {
        "id": "Location.type.coding.code",
        "path": "Location.type.coding.code",
        "mustSupport": true
      },
      {
        "id": "Location.address",
        "path": "Location.address",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Location.address.text",
        "path": "Location.address.text",
        "short": "Lignes d'adresse (équivalent de address.line)",
        "definition": "Partie civique de l'adresse : numéro civique, rue, et appartement ou bureau le cas échéant. N'inclut pas la ville, la province ni le code postal — ces informations sont transmises dans les champs distincts city, state et postalCode.",
        "comment": "Utilisé à la place de address.line pour simplifier la représentation. Ne doit contenir que les lignes d'adresse, sans la ville, la province ni le code postal.",
        "example": [
          {
            "label": "Lignes d'adresse",
            "valueString": "1234 rue Saint-Denis, App 4"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Location.address.city",
        "path": "Location.address.city",
        "mustSupport": true
      },
      {
        "id": "Location.address.postalCode",
        "path": "Location.address.postalCode",
        "mustSupport": true
      },
      {
        "id": "Location.physicalType",
        "path": "Location.physicalType",
        "max": "0"
      },
      {
        "id": "Location.position",
        "path": "Location.position",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Location.position.longitude",
        "path": "Location.position.longitude",
        "mustSupport": true
      },
      {
        "id": "Location.position.latitude",
        "path": "Location.position.latitude",
        "mustSupport": true
      },
      {
        "id": "Location.managingOrganization",
        "path": "Location.managingOrganization",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://sante.quebec/fhir/StructureDefinition/sgrdv-base-find-organization"
            ]
          }
        ],
        "mustSupport": true
      }
    ]
  }
}