{
  "resourceType": "StructureDefinition",
  "id": "HVOContractTransactionBundle",
  "url": "http://electronichealth.se/fhir/hvo/StructureDefinition/HVOContractTransactionBundle",
  "version": "0.1.0",
  "name": "HVOContractTransactionBundle",
  "title": "HVOContract transaction Bundle",
  "status": "draft",
  "description": "HVO profile for Bundle consisting of a HVOContract with related resources to use for a transaction",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Bundle.type",
        "path": "Bundle.type",
        "fixedCode": "transaction",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resource"
            }
          ],
          "rules": "open",
          "ordered": false
        },
        "min": 2,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:HVOContract",
        "path": "Bundle.entry",
        "sliceName": "HVOContract",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:HVOContract.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "short": "Temporary ID when creating a HVOContract for other resources in the Bundle to reference",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:HVOContract.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Contract",
            "profile": [
              "http://electronichealth.se/fhir/hvo/StructureDefinition/HVOContract"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:HVOContract.resource.id",
        "path": "Bundle.entry.resource.id",
        "short": "Logical ID of resource to use when updating it"
      },
      {
        "id": "Bundle.entry:HVOContract.request",
        "path": "Bundle.entry.request",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:HVOContract.request.method",
        "path": "Bundle.entry.request.method",
        "short": "PUT | POST",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:HVOContract.request.url",
        "path": "Bundle.entry.request.url",
        "fixedUri": "Contract",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:HVOOrganizationAffiliation",
        "path": "Bundle.entry",
        "sliceName": "HVOOrganizationAffiliation",
        "min": 1,
        "max": "*",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:HVOOrganizationAffiliation.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "short": "Temporary ID when creating a HVOOrganizationAffiliation for other resources in the Bundle to reference",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:HVOOrganizationAffiliation.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "OrganizationAffiliation",
            "profile": [
              "http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationAffiliation"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:HVOOrganizationAffiliation.resource.id",
        "path": "Bundle.entry.resource.id",
        "short": "Logical ID of resource to use when updating it"
      },
      {
        "id": "Bundle.entry:HVOOrganizationAffiliation.request",
        "path": "Bundle.entry.request",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:HVOOrganizationAffiliation.request.method",
        "path": "Bundle.entry.request.method",
        "short": "PUT | POST",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:HVOOrganizationAffiliation.request.url",
        "path": "Bundle.entry.request.url",
        "fixedUri": "OrganizationAffiliation",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:HVOService",
        "path": "Bundle.entry",
        "sliceName": "HVOService",
        "min": 0,
        "max": "*",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:HVOService.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "short": "Temporary ID when creating a HVOService for other resources in the Bundle to reference",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:HVOService.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "HealthcareService",
            "profile": [
              "http://electronichealth.se/fhir/hvo/StructureDefinition/HVOService"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:HVOService.resource.id",
        "path": "Bundle.entry.resource.id",
        "short": "Logical ID of resource to use when updating it"
      },
      {
        "id": "Bundle.entry:HVOService.request",
        "path": "Bundle.entry.request",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:HVOService.request.method",
        "path": "Bundle.entry.request.method",
        "short": "PUT | POST",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:HVOService.request.url",
        "path": "Bundle.entry.request.url",
        "fixedUri": "HealthcareService",
        "mustSupport": true
      }
    ]
  }
}