{
  "resourceType": "StructureDefinition",
  "id": "andpunkt-logical-er",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics",
      "valueCode": "can-be-target"
    }
  ],
  "url": "http://electronichealth.se/fhir/NDI/StructureDefinition/andpunkt-logical-er",
  "name": "AndpunktLogicalEr",
  "title": "Ändpunkt",
  "status": "active",
  "description": "Klassen ändpunkt håller information om teknisk adress till API implementerat på fysisk enhet.",
  "fhirVersion": "5.0.0",
  "mapping": [
    {
      "identity": "AndpunktToEndpointEr",
      "uri": "EndpointEr"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "http://electronichealth.se/fhir/NDI/StructureDefinition/andpunkt-logical-er",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
  "derivation": "specialization",
  "snapshot": {
    "element": [
      {
        "id": "andpunkt-logical-er",
        "path": "andpunkt-logical-er",
        "short": "Ändpunkt",
        "definition": "Klassen ändpunkt håller information om teknisk adress till API implementerat på fysisk enhet.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "andpunkt-logical-er",
          "min": 0,
          "max": "*"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "andpunkt-logical-er.id",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "andpunkt-logical-er.id",
        "short": "id",
        "definition": "Angivelse av identifierare för en ändpunkt.",
        "comment": "The rules of the identifier.type  determine if a check digit is part of the ID value or sent separately, such as through the checkDigit extension.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "andpunkt-logical-er.id",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ident-1",
            "severity": "warning",
            "human": "Identifier with no value has limited utility.  If communicating that an identifier value has been suppressed or missing, the value element SHOULD be present with an extension indicating the missing semantic - e.g. data-absent-reason",
            "expression": "value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "v2",
            "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
          },
          {
            "identity": "rim",
            "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]"
          },
          {
            "identity": "servd",
            "map": "Identifier"
          },
          {
            "identity": "AndpunktToEndpointEr",
            "map": "EndpointEr.id"
          }
        ]
      },
      {
        "id": "andpunkt-logical-er.status",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "andpunkt-logical-er.status",
        "short": "status",
        "definition": "Angivelse av kod som anger status för ändpunkt.",
        "comment": "Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "andpunkt-logical-er.status",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Coding"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "cod-1",
            "severity": "warning",
            "human": "A Coding SHOULD NOT have a display unless a code is also present.  Computation on Coding.display alone is generally unsafe.  Consider using CodeableConcept.text",
            "expression": "code.exists().not() implies display.exists().not()",
            "source": "http://hl7.org/fhir/StructureDefinition/Coding"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "v2",
            "map": "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"
          },
          {
            "identity": "rim",
            "map": "CV"
          },
          {
            "identity": "orim",
            "map": "fhir:Coding rdfs:subClassOf dt:CDCoding"
          },
          {
            "identity": "AndpunktToEndpointEr",
            "map": "EndpointEr.status"
          }
        ]
      },
      {
        "id": "andpunkt-logical-er.adress",
        "path": "andpunkt-logical-er.adress",
        "short": "adress",
        "definition": "Angivelse av adress för en ändpunkt.",
        "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
        "min": 1,
        "max": "1",
        "base": {
          "path": "andpunkt-logical-er.adress",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "url"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "AndpunktToEndpointEr",
            "map": "EndpointEr.address"
          }
        ]
      },
      {
        "id": "andpunkt-logical-er.giltigFrom",
        "path": "andpunkt-logical-er.giltigFrom",
        "short": "giltigFrom",
        "definition": "Angivelse av den tidpunkt från och med vilken ändpunkt är tillgänglig.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "andpunkt-logical-er.giltigFrom",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "time"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "AndpunktToEndpointEr",
            "map": ""
          }
        ]
      },
      {
        "id": "andpunkt-logical-er.giltigTom",
        "path": "andpunkt-logical-er.giltigTom",
        "short": "giltigTom",
        "definition": "Angivelse av den tidpunkt då ändpunkt upphör att vara tillgänglig.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "andpunkt-logical-er.giltigTom",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "time"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "AndpunktToEndpointEr",
            "map": ""
          }
        ]
      },
      {
        "id": "andpunkt-logical-er.forvaltasAv",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "andpunkt-logical-er.forvaltasAv",
        "short": "förvaltas av",
        "definition": "förvaltas av",
        "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolvable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "andpunkt-logical-er.forvaltasAv",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ref-1",
            "severity": "error",
            "human": "SHALL have a contained resource if a local reference is provided",
            "expression": "reference.exists()  implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))",
            "source": "http://hl7.org/fhir/StructureDefinition/Reference"
          },
          {
            "key": "ref-2",
            "severity": "error",
            "human": "At least one of reference, identifier and display SHALL be present (unless an extension is provided).",
            "expression": "reference.exists() or identifier.exists() or display.exists() or extension.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Reference"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
          }
        ]
      },
      {
        "id": "andpunkt-logical-er.tillgangliggor",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "andpunkt-logical-er.tillgangliggor",
        "short": "tillgängliggör",
        "definition": "tillgängliggör",
        "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolvable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "andpunkt-logical-er.tillgangliggor",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/NDI/StructureDefinition/apilogical-er"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ref-1",
            "severity": "error",
            "human": "SHALL have a contained resource if a local reference is provided",
            "expression": "reference.exists()  implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))",
            "source": "http://hl7.org/fhir/StructureDefinition/Reference"
          },
          {
            "key": "ref-2",
            "severity": "error",
            "human": "At least one of reference, identifier and display SHALL be present (unless an extension is provided).",
            "expression": "reference.exists() or identifier.exists() or display.exists() or extension.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Reference"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
          },
          {
            "identity": "AndpunktToEndpointEr",
            "map": ""
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "andpunkt-logical-er",
        "path": "andpunkt-logical-er",
        "short": "Ändpunkt",
        "definition": "Klassen ändpunkt håller information om teknisk adress till API implementerat på fysisk enhet."
      },
      {
        "id": "andpunkt-logical-er.id",
        "path": "andpunkt-logical-er.id",
        "short": "id",
        "definition": "Angivelse av identifierare för en ändpunkt.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mapping": [
          {
            "identity": "AndpunktToEndpointEr",
            "map": "EndpointEr.id"
          }
        ]
      },
      {
        "id": "andpunkt-logical-er.status",
        "path": "andpunkt-logical-er.status",
        "short": "status",
        "definition": "Angivelse av kod som anger status för ändpunkt.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "mapping": [
          {
            "identity": "AndpunktToEndpointEr",
            "map": "EndpointEr.status"
          }
        ]
      },
      {
        "id": "andpunkt-logical-er.adress",
        "path": "andpunkt-logical-er.adress",
        "short": "adress",
        "definition": "Angivelse av adress för en ändpunkt.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "url"
          }
        ],
        "mapping": [
          {
            "identity": "AndpunktToEndpointEr",
            "map": "EndpointEr.address"
          }
        ]
      },
      {
        "id": "andpunkt-logical-er.giltigFrom",
        "path": "andpunkt-logical-er.giltigFrom",
        "short": "giltigFrom",
        "definition": "Angivelse av den tidpunkt från och med vilken ändpunkt är tillgänglig.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "time"
          }
        ],
        "mapping": [
          {
            "identity": "AndpunktToEndpointEr",
            "map": ""
          }
        ]
      },
      {
        "id": "andpunkt-logical-er.giltigTom",
        "path": "andpunkt-logical-er.giltigTom",
        "short": "giltigTom",
        "definition": "Angivelse av den tidpunkt då ändpunkt upphör att vara tillgänglig.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "time"
          }
        ],
        "mapping": [
          {
            "identity": "AndpunktToEndpointEr",
            "map": ""
          }
        ]
      },
      {
        "id": "andpunkt-logical-er.forvaltasAv",
        "path": "andpunkt-logical-er.forvaltasAv",
        "short": "förvaltas av",
        "definition": "förvaltas av",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          }
        ]
      },
      {
        "id": "andpunkt-logical-er.tillgangliggor",
        "path": "andpunkt-logical-er.tillgangliggor",
        "short": "tillgängliggör",
        "definition": "tillgängliggör",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/NDI/StructureDefinition/apilogical-er"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "AndpunktToEndpointEr",
            "map": ""
          }
        ]
      }
    ]
  }
}