{
  "resourceType": "StructureDefinition",
  "id": "mesures-bundle-flux-alimentation",
  "url": "https://interop.esante.gouv.fr/ig/fhir/mesures/StructureDefinition/mesures-bundle-flux-alimentation",
  "name": "MesBundleFluxAlimentation",
  "title": "Bundle d'alimentation",
  "status": "active",
  "description": "Profil de la ressource Bundle du flux d'alimentation à envoyer au serveur",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Bundle.type",
        "path": "Bundle.type",
        "patternCode": "transaction"
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "request.url"
            }
          ],
          "rules": "open",
          "description": "Slice based on the request.url pattern"
        },
        "min": 1
      },
      {
        "id": "Bundle.entry:mes-observation",
        "path": "Bundle.entry",
        "sliceName": "mes-observation",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:mes-observation.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Observation",
            "profile": [
              "https://interop.esante.gouv.fr/ig/fhir/mesures/StructureDefinition/mesures-fr-observation-bmi",
              "https://interop.esante.gouv.fr/ig/fhir/mesures/StructureDefinition/mesures-fr-observation-bodyheight",
              "https://interop.esante.gouv.fr/ig/fhir/mesures/StructureDefinition/mesures-fr-observation-body-temperature",
              "https://interop.esante.gouv.fr/ig/fhir/mesures/StructureDefinition/mesures-fr-observation-body-weight",
              "https://interop.esante.gouv.fr/ig/fhir/mesures/StructureDefinition/mesures-fr-observation-bp",
              "https://interop.esante.gouv.fr/ig/fhir/mesures/StructureDefinition/mesures-fr-observation-heartrate",
              "https://interop.esante.gouv.fr/ig/fhir/mesures/StructureDefinition/mesures-observation-head-circumference",
              "https://interop.esante.gouv.fr/ig/fhir/mesures/StructureDefinition/mesures-observation-pain-severity",
              "https://interop.esante.gouv.fr/ig/fhir/mesures/StructureDefinition/mesures-observation-steps-by-day",
              "https://interop.esante.gouv.fr/ig/fhir/mesures/StructureDefinition/mesures-observation-waist-circumference",
              "https://interop.esante.gouv.fr/ig/fhir/mesures/StructureDefinition/mesures-fr-observation-oxygen-sat"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:mes-observation.request",
        "path": "Bundle.entry.request",
        "min": 1
      },
      {
        "id": "Bundle.entry:mes-observation.request.method",
        "path": "Bundle.entry.request.method",
        "patternCode": "POST"
      },
      {
        "id": "Bundle.entry:mes-observation.request.url",
        "path": "Bundle.entry.request.url",
        "patternUri": "Observation"
      },
      {
        "id": "Bundle.entry:mes-device",
        "path": "Bundle.entry",
        "sliceName": "mes-device",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Bundle.entry:mes-device.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Device",
            "profile": [
              "http://hl7.org/fhir/uv/phd/StructureDefinition/PhdDevice"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:mes-device.request",
        "path": "Bundle.entry.request",
        "min": 1
      },
      {
        "id": "Bundle.entry:mes-device.request.method",
        "path": "Bundle.entry.request.method",
        "patternCode": "POST"
      },
      {
        "id": "Bundle.entry:mes-device.request.url",
        "path": "Bundle.entry.request.url",
        "patternUri": "Device"
      }
    ]
  }
}
