<?xml version="1.0"?>
<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:process="http://www.daml.org/services/owl-s/1.1/Process.owl#"
    xmlns="http://127.0.0.1/services/1.1/AuthorizePhysician_service.owls"
    xmlns:service="http://www.daml.org/services/owl-s/1.1/Service.owl#"
    xmlns:list="http://www.daml.org/services/owl-s/1.1/generic/ObjectList.owl#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns:profile="http://www.daml.org/services/owl-s/1.1/Profile.owl#"
    xmlns:swrl="http://www.w3.org/2003/11/swrl#"
    xmlns:grounding="http://www.daml.org/services/owl-s/1.1/Grounding.owl#"
    xmlns:daml="http://www.daml.org/2001/03/daml+oil#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
	xmlns:expr      = "http://www.daml.org/services/owl-s/1.1/generic/Expression.owl#"
    xmlns:pddlexpr  = "http://127.0.0.1/ontology/PDDLExpression.owl#"
  xml:base="http://127.0.0.1/services/1.1/AuthorizePhysician_service.owls">
  <owl:Ontology rdf:about="">
    <owl:imports rdf:resource="http://127.0.0.1/ontology/Process.owl"/>
    <owl:imports rdf:resource="http://127.0.0.1/ontology/Profile.owl"/>
    <owl:imports rdf:resource="http://127.0.0.1/ontology/Grounding.owl"/>
	<owl:imports rdf:resource="http://127.0.0.1/ontology/Expression.owl" />
    <owl:imports rdf:resource="http://127.0.0.1/ontology/PDDLExpression.owl" />
    <owl:imports rdf:resource="http://127.0.0.1/ontology/PatientOntology.owl"/>
    <owl:imports rdf:resource="http://127.0.0.1/ontology/Service.owl"/>
	<owl:imports rdf:resource="http://127.0.0.1/ontology/core-plus-office.owl" />
  </owl:Ontology>
  <service:Service rdf:ID="AuthorizePhysicianService">
    <service:presents>
      <profile:Profile rdf:ID="AuthorizePhysicianProfile"/>
    </service:presents>
    <service:describedBy>
      <process:AtomicProcess rdf:ID="AuthorizePhysicianProcess"/>
    </service:describedBy>
    <service:supports>
      <grounding:WsdlGrounding rdf:ID="AuthorizePhysicianGrounding"/>
    </service:supports>
  </service:Service>
  <profile:Profile rdf:about="#AuthorizePhysicianProfile">
    <profile:hasOutput>
      <process:Output rdf:ID="AuthorizePhysician_PhysicianAuthorization">
        <rdfs:label>AuthorizePhysician_PhysicianAuthorization</rdfs:label>
        <process:parameterType rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/ontology/PatientOntology.owl#Authorization</process:parameterType>
      </process:Output>
    </profile:hasOutput>
    <profile:hasInput>
      <process:Input rdf:ID="AuthorizePhysician_PhysicianID">
        <rdfs:label>AuthorizePhysician_PhysicianID</rdfs:label>
        <process:parameterType rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/ontology/PatientOntology.owl#PhysicianID</process:parameterType>
      </process:Input>
    </profile:hasInput>
    <profile:hasInput>
      <process:Input rdf:ID="AuthorizePhysician_PatientMedicalRecords">
        <rdfs:label>AuthorizePhysician_PatientMedicalRecords</rdfs:label>
        <process:parameterType rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/ontology/PatientOntology.owl#MedicalRecords</process:parameterType>
      </process:Input>
    </profile:hasInput>
    <service:presentedBy rdf:resource="#AuthorizePhysicianService"/>
    <profile:hasOutput>
      <process:Output rdf:ID="AcceptCostAndHealingPlan_CostAndHealingPlanAcceptanceAnswer">
        <rdfs:label>AcceptCostAndHealingPlan_CostAndHealingPlanAcceptanceAnswer</rdfs:label>
        <process:parameterType rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/ontology/PatientOntology.owl#Acknowledgement</process:parameterType>
      </process:Output>
    </profile:hasOutput>
    <profile:serviceName>AuthorizePhysician</profile:serviceName>
    <profile:hasOutput>
      <process:Output rdf:ID="ContactEMA_AmbulanceArrivalTime">
        <rdfs:label>ContactEMA_AmbulanceArrivalTime</rdfs:label>
        <process:parameterType rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/ontology/PatientOntology.owl#DateTime</process:parameterType>
      </process:Output>
    </profile:hasOutput>
    <profile:textDescription>If a doctor wants to see a patient's medical records, he must get an authorization before. This service handles physician authorizations.</profile:textDescription>
    <profile:hasInput>
      <process:Input rdf:ID="AuthorizePhysician_AuthorizationTimeInterval">
        <rdfs:label>AuthorizePhysician_AuthorizationTimeInterval</rdfs:label>
        <process:parameterType rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/ontology/PatientOntology.owl#DateTime</process:parameterType>
      </process:Input>
    </profile:hasInput>
  </profile:Profile>
  <process:AtomicProcess rdf:about="#AuthorizePhysicianProcess">
    <rdfs:label>AuthorizePhysicianProcess</rdfs:label>
    <service:describes rdf:resource="#AuthorizePhysicianService"/>
    <process:hasInput rdf:resource="#AuthorizePhysician_AuthorizationTimeInterval"/>
    <process:hasInput rdf:resource="#AuthorizePhysician_PhysicianID"/>
    <process:hasInput rdf:resource="#AuthorizePhysician_PatientMedicalRecords"/>
    <process:hasOutput rdf:resource="#ContactEMA_AmbulanceArrivalTime"/>
    <process:hasOutput rdf:resource="#AcceptCostAndHealingPlan_CostAndHealingPlanAcceptanceAnswer"/>
    <process:hasOutput rdf:resource="#AuthorizePhysician_PhysicianAuthorization"/>
	<process:hasPrecondition>
          <pddlexpr:PDDL-Expression>
            <expr:expressionBody rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
			      (http://127.0.0.1/ontology/core-plus-office.owl#Authorized ?http://127.0.0.1/services/1.1/AuthorizePhysician_service.owls#AuthorizePhysician_PhysicianID)
			</expr:expressionBody>
          </pddlexpr:PDDL-Expression>
    </process:hasPrecondition>
  </process:AtomicProcess>
  <grounding:WsdlGrounding rdf:about="#AuthorizePhysicianGrounding">
    <service:supportedBy rdf:resource="#AuthorizePhysicianService"/>
    <grounding:hasAtomicProcessGrounding>
      <grounding:WsdlAtomicProcessGrounding rdf:ID="AuthorizePhysicianAtomicProcessGrounding"/>
    </grounding:hasAtomicProcessGrounding>
  </grounding:WsdlGrounding>
  <grounding:WsdlAtomicProcessGrounding rdf:about="#AuthorizePhysicianAtomicProcessGrounding">
    <grounding:owlsProcess rdf:resource="#AuthorizePhysicianProcess"/>
    <grounding:wsdlOutput>
      <grounding:WsdlOutputMessageMap>
        <grounding:owlsParameter rdf:resource="#AuthorizePhysician_PhysicianAuthorization"/>
        <grounding:wsdlMessagePart rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/wsdl/Authorizephysician#AuthorizePhysician_PhysicianAuthorization</grounding:wsdlMessagePart>
        <grounding:xsltTransformationString>None (XSL)</grounding:xsltTransformationString>
      </grounding:WsdlOutputMessageMap>
    </grounding:wsdlOutput>
    <grounding:wsdlInput>
      <grounding:WsdlInputMessageMap>
        <grounding:owlsParameter rdf:resource="#AuthorizePhysician_PhysicianID"/>
        <grounding:wsdlMessagePart rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/wsdl/Authorizephysician#AuthorizePhysician_PhysicianID</grounding:wsdlMessagePart>
        <grounding:xsltTransformationString>None (XSL)</grounding:xsltTransformationString>
      </grounding:WsdlInputMessageMap>
    </grounding:wsdlInput>
    <grounding:wsdlOutput>
      <grounding:WsdlOutputMessageMap>
        <grounding:owlsParameter rdf:resource="#ContactEMA_AmbulanceArrivalTime"/>
        <grounding:wsdlMessagePart rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/wsdl/Authorizephysician#ContactEMA_AmbulanceArrivalTime</grounding:wsdlMessagePart>
        <grounding:xsltTransformationString>None (XSL)</grounding:xsltTransformationString>
      </grounding:WsdlOutputMessageMap>
    </grounding:wsdlOutput>
    <grounding:wsdlInputMessage rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
    >http://127.0.0.1/wsdl/Authorizephysician#getContactEMA_AmbulanceArrivalTimeAcceptCostAndHealingPlan_CostAndHealingPlanAcceptanceAnswerAuthorizePhysician_PhysicianAuthorizationRequest</grounding:wsdlInputMessage>
    <grounding:wsdlOutputMessage rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
    >http://127.0.0.1/wsdl/Authorizephysician#getContactEMA_AmbulanceArrivalTimeAcceptCostAndHealingPlan_CostAndHealingPlanAcceptanceAnswerAuthorizePhysician_PhysicianAuthorizationResponse</grounding:wsdlOutputMessage>
    <grounding:wsdlDocument rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
    >http://127.0.0.1/wsdl/Authorizephysician.wsdl</grounding:wsdlDocument>
    <grounding:wsdlOutput>
      <grounding:WsdlOutputMessageMap>
        <grounding:owlsParameter rdf:resource="#AcceptCostAndHealingPlan_CostAndHealingPlanAcceptanceAnswer"/>
        <grounding:wsdlMessagePart rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/wsdl/Authorizephysician#AcceptCostAndHealingPlan_CostAndHealingPlanAcceptanceAnswer</grounding:wsdlMessagePart>
        <grounding:xsltTransformationString>None (XSL)</grounding:xsltTransformationString>
      </grounding:WsdlOutputMessageMap>
    </grounding:wsdlOutput>
    <grounding:wsdlInput>
      <grounding:WsdlInputMessageMap>
        <grounding:owlsParameter rdf:resource="#AuthorizePhysician_AuthorizationTimeInterval"/>
        <grounding:wsdlMessagePart rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/wsdl/Authorizephysician#AuthorizePhysician_AuthorizationTimeInterval</grounding:wsdlMessagePart>
        <grounding:xsltTransformationString>None (XSL)</grounding:xsltTransformationString>
      </grounding:WsdlInputMessageMap>
    </grounding:wsdlInput>
    <grounding:wsdlInput>
      <grounding:WsdlInputMessageMap>
        <grounding:owlsParameter rdf:resource="#AuthorizePhysician_PatientMedicalRecords"/>
        <grounding:wsdlMessagePart rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/wsdl/Authorizephysician#AuthorizePhysician_PatientMedicalRecords</grounding:wsdlMessagePart>
        <grounding:xsltTransformationString>None (XSL)</grounding:xsltTransformationString>
      </grounding:WsdlInputMessageMap>
    </grounding:wsdlInput>
    <grounding:wsdlOperation>
      <grounding:WsdlOperationRef>
        <grounding:operation rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/wsdl/Authorizephysician#getContactEMA_AmbulanceArrivalTimeAcceptCostAndHealingPlan_CostAndHealingPlanAcceptanceAnswerAuthorizePhysician_PhysicianAuthorization</grounding:operation>
        <grounding:portType rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/wsdl/Authorizephysician#AuthorizephysicianSoap</grounding:portType>
      </grounding:WsdlOperationRef>
    </grounding:wsdlOperation>
  </grounding:WsdlAtomicProcessGrounding>
  <owl:Class rdf:about="/ontology/PatientOntology.owl#DateTime"/>
  <owl:Class rdf:about="/ontology/PatientOntology.owl#PhysicianID"/>
  <owl:Class rdf:about="/ontology/PatientOntology.owl#Acknowledgement"/>
  <owl:Class rdf:about="/ontology/PatientOntology.owl#Authorization"/>
  <owl:Class rdf:about="/ontology/PatientOntology.owl#MedicalRecords"/>
</rdf:RDF>
