关于创建“消费品”的建议Coldfusion 中的数据服务 - 使用 Web 服务/WDDX/HTTPS?

发布于 09-13 02:11 字数 822 浏览 7 评论 0原文

我有一个内置于 Coldfusion 中的网络应用程序,可以接收初级保健医生(家庭医生)的医疗转介信,然后传输给医院和专家。数据进入 MySQL 数据库,格式为

Referral_ID(自动增量)

Patient_FirstName(字符串) 患者姓氏(字符串)

...其他患者标识符

org_from_ID(数字) org_to_ID(数字) datetime_add(日期时间) message_status(反映待处理或医院已收到的布尔值)

...以及其他“元”数据

消息(备忘录,这是实际转诊信的 1-2 页文本、rtf 或 Word 类型文件)

我想让医院获取针对他们的推荐。大多数可能是早期采用者的医院似乎都在其医院患者管理系统 (PAS) 中使用 MS 技术,并且我假设最大的程序员库正在使用 .NET,因此他们很可能会使用精通 .NET 的程序员来选择将此信息存入他们的系统?

API 需要的功能是

  1. 只能从预定义的医院系统访问,因此某种登录传递

  2. 数据之间加密我的应用程序和医院,例如通过 https

  3. 为 Hospital_ID xyz 提供 #startdate# 和 #enddate# 之间的转诊数据列表

  4. 提供之前已通知医院但现在已取消的转诊列表。

    提供

我并不担心 API 的编码,只是想找出最简单的最佳格式是什么,让他们能够为其组织使用数据源,是否将逻辑放在 cfc access="remote" 作为网络中服务,使用 URL 变量通过网页简单地提供 HTTPS 访问,使用 WDDX 还是什么?

I have a web app built in coldfusion that receives medical referral letters from primary care doctors (family doctors) for transmission to hospitals and specialists. The data comes in to a MySQL database and is the format

referral_ID (autoincrement)

patient_firstname (string)
patient_lastname (string)

... other patient identifiers

org_from_ID (numeric)
org_to_ID (numeric)
datetime_added (datetime)
message_status ( a bool reflecting pending or received by hospital)

... and other "meta" data

message (memo , this is a 1-2 page text, rtf or Word type file of the actual referral letter)

I want to allow hospitals to pick up the referrals directed to them. Most of the hospitals who are likely early adopters seem to be using MS technologies for their hospital Patient Administration Systems (PAS) and I'm assuming that the biggest programmer pool is using .NET so they are likely to use .NET savvy programmers to pick up this information into their systems ?

The functionality the API will need is

  1. only be accessible from the predefined hospital system , so some sort of login passed

  2. data encrypted between my app and hospital e.g via https

  3. provide list of referral data between #startdate# and #enddate# for hospital_ID xyz

  4. provide list of referrals that have been previously notified to the hospital that have now been cancelled.

I'm not worried about the coding of the API, just trying to work out what the is best format that easiest lets them consume the data feed for their organisation, whether to put the logic in a cfc access="remote" as a web service, provide HTTPS access simply via a web page using URL variables, use WDDX or what?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

双手揣兜2024-09-20 02:11:45

首先,忘掉 WDDX。仅使用 JSON 或 plain,您的 .NET 伙伴将会感谢您。 :)

如果您不想使用繁重的 SOAP Web 服务,您可以尝试使用 PowerNap 的 RESTful 服务。

http://cfcommons.org/index.cfm/blog/2010/3/31/cfcommons-visuals--rest-web-services-with-powernap---part-1

First of all, forget about WDDX. Use only JSON or plain and your .NET buddies will thank you. :)

If you don't want to use heavy SOAP webservices, you can try RESTful services with PowerNap.

http://cfcommons.org/index.cfm/blog/2010/3/31/cfcommons-visuals--rest-web-services-with-powernap---part-1

ま柒月2024-09-20 02:11:45

如果您使用cfc提供网络服务,那么您可以让您的客户医院选择。 CFC 方法可以通过将 returnformat 属性附加到它们发出的请求来返回 json、plain 或 WDDX。

您需要对 JSON 返回格式小心一点,因为 CF 是无类型的,因此很难以正确的数据类型返回数据,除非您非常规范。

如果您使用像 ColdSpring 这样的东西,那么使用 远程代理 可以帮助在完整的应用程序和您想要向客户医院公开的部分之间提供一个外观。

希望对一些人有所帮助。

If you use cfc's to provide the web services, then you can let your client hospitals choose. CFC methods can return json, plain or WDDX by attaching returnformat attribute to the request they make.

You need to be a little careful with the JSON return format, because CF is typeless and it so does struggle to return data in the correct data types unless you are very prescriptive.

If you use something like ColdSpring, then using the remote proxies can help provide a facade between the full application and the bits you want to expose to your client hospitals.

Hope that helps some.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文