{
  "resourceType": "StructureDefinition",
  "url": "https://example.org/fhir/StructureDefinition/MariaObservation",
  "name": "MariaObservation",
  "status": "draft",
  "description": "Test observation profile for the training on 16/05/2024",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "definition": "Test observation profile for the training on 16/05/2024",
        "constraint": [
          {
            "key": "Maria-1",
            "severity": "error",
            "human": "ValueQuantity or Note is not available",
            "expression": "Value.ofType(Quantity).exists() or note.exists()"
          }
        ]
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://example.org/fhir/StructureDefinition/MariaPatient"
            ]
          }
        ]
      },
      {
        "id": "Observation.subject.reference",
        "path": "Observation.subject.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "min": 1,
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "Maria-1"
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.note",
        "path": "Observation.note",
        "condition": [
          "Maria-1"
        ],
        "mustSupport": false
      },
      {
        "id": "Observation.note.text",
        "path": "Observation.note.text",
        "mustSupport": true
      },
      {
        "id": "Observation.method",
        "path": "Observation.method",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.device",
        "path": "Observation.device",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.device.reference",
        "path": "Observation.device.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.derivedFrom",
        "path": "Observation.derivedFrom",
        "min": 1,
        "max": "1",
        "mustSupport": true
      }
    ]
  }
}